[PATCH v5 0/2] fix gpiochip_lock_as_irq() failure when pinmux is unknown
From: michal . piekos
Date: Thu Mar 19 2026 - 13:19:19 EST
Changes in v5:
- Simplified logic checking pinmux layout
- Remove unneded curly braces
- Replace subtraction with one variable
- Fix typo in commit message
- Link to v4: https://lore.kernel.org/r/20260319-rc2-boot-hang-v4-0-4372f47cb6b8@xxxxxxxxxxxxx
Changes in v4:
- Fixed check for pinmux disabled value based on pinctrl layout
- Cherry picked
https://lore.kernel.org/linux-arm-kernel/20250821004232.8134-3-andre.przywara@xxxxxxx/
to have flags for pinctrl layout recognition
- Link to v3: https://lore.kernel.org/r/20260314-rc2-boot-hang-v3-1-0b48221181a9@xxxxxxxxxxxxx
Changes in v3:
- Drop v2 solution which was returning input instead of error when pin
is not initialized.
- Add checking pinmux configuration in
sunxi_pinctrl_irq_request_resources() and set pin to input if
uninitialized
- Link to v2: https://lore.kernel.org/r/20260308-rc2-boot-hang-v2-1-516fdb820953@xxxxxxxxxxxxx
Changes in v2:
- Dropped the previous faulty solution which was forcing the axp313 to
use r_pio as interrupt controller as pointed out by Jernej Škrabec.
- Implemented suggestion from Andrey Skvortsov to return default
direction as input
- Link to v1: https://lore.kernel.org/r/20260308-rc2-boot-hang-v1-0-d792d1a78dfd@xxxxxxxxxxxxx
---
Andre Przywara (1):
pinctrl: sunxi: pass down flags to pinctrl routines
Michal Piekos (1):
pinctrl: sunxi: fix gpiochip_lock_as_irq() failure when pinmux is unknown
drivers/pinctrl/sunxi/pinctrl-sunxi.c | 44 ++++++++++++++++++++++++++---------
drivers/pinctrl/sunxi/pinctrl-sunxi.h | 4 +++-
2 files changed, 36 insertions(+), 12 deletions(-)
---
base-commit: 8a30aeb0d1b4e4aaf7f7bae72f20f2ae75385ccb
change-id: 20260308-rc2-boot-hang-269e8546635b
Best regards,
--
Michal Piekos <michal.piekos@xxxxxxxxxxxxx>