Skip to content

pinctrl: s5l8940x: select GPIO IRQ support used by the controller - #156

Merged
henrikklee merged 1 commit into
OrchardLinux:armv7from
brkosebay:a6/pr-pinctrl-gpio-irq
Dec 4, 2026
Merged

henrikklee merged 1 commit into
OrchardLinux:armv7from
brkosebay:a6/pr-pinctrl-gpio-irq

Conversation

@brkosebay

Copy link
Copy Markdown

The S5L8940X GPIO driver uses gc->irq.domain and fills a struct gpio_irq_chip through gc->irq. The irq member of struct gpio_chip exists only with CONFIG_GPIOLIB_IRQCHIP, so a config that enables this driver without another irqchip user fails to build. Depend on GPIOLIB and select GPIOLIB_IRQCHIP, as the other GPIO irqchip drivers in drivers/pinctrl/Kconfig do.

Standalone; it doesn't depend on the iPhone 5 series. The same Kconfig change is in the iPhone 5 development kernel that runs on the device, where all buttons, including the ringer switch, raise GPIO interrupts.

🤖 Generated with Claude Code

The driver uses gc->irq.domain and takes a struct gpio_irq_chip pointer
to gc->irq. The irq member of struct gpio_chip is present only with
CONFIG_GPIOLIB_IRQCHIP. Without another irqchip user to select it,
the driver fails to build. Depend on GPIOLIB and select GPIOLIB_IRQCHIP,
as other GPIO irqchip drivers in drivers/pinctrl/Kconfig do.

Assisted-by: LLM
Signed-off-by: Berkay Kösebay <brkosebay@users.noreply.github.com>
@henrikklee
henrikklee merged commit a99557e into OrchardLinux:armv7 Dec 4, 2026
3 checks passed
@henrikklee

Copy link
Copy Markdown

Merged — thank you @brkosebay for splitting it out of #65. The copies in #65, #69 and #154 will drop out when they rebase. A small follow-up could limit the pinctrl driver to Apple S5L builds instead of every 32-bit ARM build.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants