[PATCH] pinctrl: sunxi: Implement gpiochip::get_direction()
Chen-Yu Tsai
wens at kernel.org
Tue Feb 24 00:48:20 PST 2026
Hi Linus,
On Tue, Feb 24, 2026 at 4:43 PM Linus Walleij <linusw at kernel.org> wrote:
>
> On Mon, Feb 16, 2026 at 5:09 PM Chen-Yu Tsai <wens at kernel.org> wrote:
>
> > After commit e623c4303ed1 ("gpiolib: sanitize the return value of
> > gpio_chip::get_direction()"), a warning will be printed if the
> > gpio driver does not implement this callback.
> >
> > Implement it for the sunxi driver. This is simply a matter of reading
> > out the mux value from the registers, then checking if it is one of
> > the GPIO functions and which direction it is.
> >
> > Signed-off-by: Chen-Yu Tsai <wens at kernel.org>
>
> Patch applied for fixes since everyone likes this patch and
> everyone is unhappy with the warning.
I was about to send v2 with an updated commit message but didn't get around
to sending it out. Would you consider dropping this one?
Sorry about the delay.
ChenYu
More information about the linux-arm-kernel
mailing list