diff options
| author | Praveen Talari <praveen.talari@oss.qualcomm.com> | 2025-11-10 15:40:41 +0530 |
|---|---|---|
| committer | Linus Walleij <linus.walleij@linaro.org> | 2025-11-12 13:41:34 +0100 |
| commit | 1c2e70397b4125022dba80f6111271a37fb36bae (patch) | |
| tree | cb531feb8587d23b5c0e62fbe5d853df07279268 /net/unix/af_unix.c | |
| parent | 9b07cdf86a0b90556f5b68a6b20b35833b558df3 (diff) | |
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 <prasad.sodagudi@oss.qualcomm.com>
Signed-off-by: Praveen Talari <praveen.talari@oss.qualcomm.com>
Reviewed-by: Bjorn Andersson <andersson@kernel.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions
