diff options
| author | Michal Piekos <michal.piekos@mmpsystems.pl> | 2026-03-20 18:52:31 +0100 |
|---|---|---|
| committer | Linus Walleij <linusw@kernel.org> | 2026-03-23 14:23:09 +0100 |
| commit | 70f8915ea4e909826306a8567c7fa46959e278db (patch) | |
| tree | 42e93ff1b6bc5635390679ef7ade7cc2dea9369d /scripts | |
| parent | 42e06688c6cb7217578133bed67e9e3c1f061a58 (diff) | |
pinctrl: sunxi: fix gpiochip_lock_as_irq() failure when pinmux is unknown
Fixes kernel hang during boot due to inability to set up IRQ on AXP313a.
The issue is caused by gpiochip_lock_as_irq() which is failing when gpio
is in uninitialized state.
Solution is to set pinmux to GPIO INPUT in
sunxi_pinctrl_irq_request_resources() if it wasn't initialized
earlier.
Tested on Orange Pi Zero 3.
Fixes: 01e10d0272b9 ("pinctrl: sunxi: Implement gpiochip::get_direction()")
Reviewed-by: Andre Przywara <andre.przywara@arm.com>
Reviewed-by: Chen-Yu Tsai <wens@kernel.org>
Signed-off-by: Michal Piekos <michal.piekos@mmpsystems.pl>
Signed-off-by: Linus Walleij <linusw@kernel.org>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions
