[PATCH] pinctrl: meson: amlogic-a4: fix deadlock issue
Linus Walleij
linusw at kernel.org
Tue Apr 28 02:50:41 PDT 2026
On Wed, Apr 22, 2026 at 1:44 PM Xianwei Zhao via B4 Relay
<devnull+xianwei.zhao.amlogic.com at kernel.org> wrote:
> From: Xianwei Zhao <xianwei.zhao at amlogic.com>
>
> Accessing the pinconf-pins sysfs node may deadlock.
>
> pinconf_pins_show() holds pctldev->mutex, and the platform driver
> calls pinctrl_find_gpio_range_from_pin(), which tries to acquire
> the same mutex again, leading to a deadlock.
>
> Use pinctrl_find_gpio_range_from_pin_nolock() to fix this issue.
>
> Fixes: 6e9be3abb78c ("pinctrl: Add driver support for Amlogic SoCs")
> Signed-off-by: Xianwei Zhao <xianwei.zhao at amlogic.com>
Patch applied for fixes!
Yours,
Linus Walleij
More information about the linux-amlogic
mailing list