[PATCH 0/2] pinctrl: apple: Fixup and RFC GPIO mode patch
Bartosz Golaszewski
brgl at kernel.org
Mon Jan 12 01:42:24 PST 2026
On Sun, 11 Jan 2026 21:29:20 +0100, Linus Walleij <linusw at kernel.org> said:
> 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>
> ---
> Linus Walleij (2):
> pinctrl: apple: Use unsigned int instead of unsigned
> RFC: 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>
>
>
Reviewed-by: Bartosz Golaszewski <bartosz.golaszewski at oss.qualcomm.com>
More information about the linux-arm-kernel
mailing list