[PATCH v2 0/2] pinctrl: apple: Fixup and RFC GPIO mode patch
Linus Walleij
linusw at kernel.org
Mon Jan 12 02:20:30 PST 2026
This fixes some uses of the "unsigned" type to "unsigned int"
then propose to implement the .function_is_gpio() callback.
The Apple pin control maintainers can comment on this: I
am not sure that "mode 0" is GPIO on this hardware but I
find it likely.
Toggling a pin between a certain function mode and GPIO
mode happens on any sufficiently advanced system sooner or
later and this callback was implemented because Qualcomm
ran into it, so let's add it to the Apple driver before
the users turn up.
Signed-off-by: Linus Walleij <linusw at kernel.org>
---
Changes in v2:
- function_is_gpio() returns bool not int, fixed it up.
- Collected ACKs.
- Moved driver patch out of RFC.
- Link to v1: https://lore.kernel.org/r/20260111-apple-req-gpio-func-v1-0-6deb1b695371@kernel.org
---
Linus Walleij (2):
pinctrl: apple: Use unsigned int instead of unsigned
pinctrl: apple: Implement GPIO func check callback
drivers/pinctrl/pinctrl-apple-gpio.c | 18 +++++++++++++-----
1 file changed, 13 insertions(+), 5 deletions(-)
---
base-commit: 8f0b4cce4481fb22653697cced8d0d04027cb1e8
change-id: 20260111-apple-req-gpio-func-3010ca45a118
Best regards,
--
Linus Walleij <linusw at kernel.org>
More information about the linux-arm-kernel
mailing list