summaryrefslogtreecommitdiff
path: root/scripts/Makefile.thinlto
diff options
context:
space:
mode:
authorGuangshuo Li <lgs201920130244@gmail.com>2026-09-14 21:42:11 +0800
committerThomas Gleixner <tglx@kernel.org>2026-10-15 11:50:47 +0200
commitb167c1a30e9e020e4c5e102c7a555943742c024b (patch)
tree78d9e9f6e94c5bf45af2cae50a15ea7cd3a0e2c0 /scripts/Makefile.thinlto
parentdd6abfd40c6d8788efe81a7023886a8e0b595e29 (diff)
downloadlinux-b167c1a30e9e020e4c5e102c7a555943742c024b.tar.gz
linux-b167c1a30e9e020e4c5e102c7a555943742c024b.zip
irqchip/imx-intmux: Fix runtime PM teardown on remove
imx_intmux_probe() enables the IPG clock and then drops its runtime PM reference with pm_runtime_put(). With CONFIG_PM enabled, the runtime suspend callback disables the IPG clock. With CONFIG_PM disabled, the clock remains enabled after probe. imx_intmux_remove() accesses the CHANIER registers without first making sure that the device is runtime active. The device may therefore be runtime suspended with the IPG clock disabled when these registers are accessed. In addition, the remove path only calls pm_runtime_disable() and does not balance the clock enable when CONFIG_PM is disabled. Resume the device and acquire a runtime PM reference before accessing the registers. If resume fails, skip the register accesses but still tear down the chained handlers and IRQ domains. Disable runtime PM afterwards, drop the acquired reference without triggering another runtime suspend, and explicitly disable the IPG clock. This keeps the clock enabled while the hardware registers are accessed and balances the clk_prepare_enable() performed during probe for both CONFIG_PM configurations. This issue was found by manual code inspection. Fixes: bb403111e017 ("irqchip/imx-intmux: Implement intmux runtime power management") Signed-off-by: Guangshuo Li <lgs201920130244@gmail.com> Signed-off-by: Thomas Gleixner <tglx@kernel.org> Reviewed-by: Frank Li <Frank.Li@nxp.com> Reviewed-by: Radu Rendec <radu@rendec.net> Cc: stable@vger.kernel.org Link: https://patch.msgid.link/20260914134211.1734163-1-lgs201920130244@gmail.com
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions