aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/basic/docproc.c
diff options
context:
space:
mode:
authorPraveen Talari <[email protected]>2025-11-10 10:10:41 +0000
committerLinus Walleij <[email protected]>2025-11-12 12:41:34 +0000
commit1c2e70397b4125022dba80f6111271a37fb36bae (patch)
treecb531feb8587d23b5c0e62fbe5d853df07279268 /scripts/basic/docproc.c
parentpinctrl: cirrus: Fix fwnode leak in cs42l43_pin_probe() (diff)
downloadkernel-1c2e70397b4125022dba80f6111271a37fb36bae.tar.gz
kernel-1c2e70397b4125022dba80f6111271a37fb36bae.zip
pinctrl: qcom: msm: Fix deadlock in pinmux configuration
Replace disable_irq() with disable_irq_nosync() in msm_pinmux_set_mux() to prevent deadlock when wakeup IRQ is triggered on the same GPIO being reconfigured. The issue occurs when a wakeup IRQ is triggered on a GPIO and the IRQ handler attempts to reconfigure the same GPIO's pinmux. In this scenario, msm_pinmux_set_mux() calls disable_irq() which waits for the currently running IRQ handler to complete, creating a circular dependency that results in deadlock. Using disable_irq_nosync() avoids waiting for the IRQ handler to complete, preventing the deadlock condition while still properly disabling the interrupt during pinmux reconfiguration. Suggested-by: Prasad Sodagudi <[email protected]> Signed-off-by: Praveen Talari <[email protected]> Reviewed-by: Bjorn Andersson <[email protected]> Signed-off-by: Linus Walleij <[email protected]>
Diffstat (limited to 'scripts/basic/docproc.c')
0 files changed, 0 insertions, 0 deletions