Repository navigation
pinctrl: s5l8940x: select GPIO IRQ support used by the controller - #156
Merged
Merged
Conversation
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>
|
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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The S5L8940X GPIO driver uses
gc->irq.domainand fills astruct gpio_irq_chipthroughgc->irq. Theirqmember ofstruct gpio_chipexists only withCONFIG_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 indrivers/pinctrl/Kconfigdo.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