[PATCH v6 0/2] fix gpiochip_lock_as_irq() failure when pinmux is unknown
From: <hidden>
Date: 2026-03-20 17:53:20
Also in:
linux-gpio, linux-sunxi, lkml
Changes in v6: - Fixed w/s - Grouped variables in reverse christmas tree - Link to v5: https://lore.kernel.org/r/20260319-rc2-boot-hang-v5-0-092834a882b1@mmpsystems.pl (local) 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@mmpsystems.pl (local) 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@arm.com/ (local) to have flags for pinctrl layout recognition - Link to v3: https://lore.kernel.org/r/20260314-rc2-boot-hang-v3-1-0b48221181a9@mmpsystems.pl (local) 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@mmpsystems.pl (local) 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@mmpsystems.pl (local) --- 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 | 43 ++++++++++++++++++++++++++--------- drivers/pinctrl/sunxi/pinctrl-sunxi.h | 4 +++- 2 files changed, 35 insertions(+), 12 deletions(-) --- base-commit: 8a30aeb0d1b4e4aaf7f7bae72f20f2ae75385ccb change-id: 20260308-rc2-boot-hang-269e8546635b Best regards, -- Michal Piekos [off-list ref]