OSDN Git Service

pinctrl: ingenic: Add irq_{request,release}_resources callbacks
authorPaul Cercueil <paul@crapouillou.net>
Sun, 3 May 2020 16:45:49 +0000 (18:45 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 12 May 2020 13:05:02 +0000 (15:05 +0200)
commit9a0f1341df7d555eb50a826d1f6f4191a78eabea
tree13705ccecefe8b450f0eb9e6305c9ffeb4b49102
parent8068071c09e546e6c13e728da0531b56917802e7
pinctrl: ingenic: Add irq_{request,release}_resources callbacks

These are called when a GPIO is to be used as IRQ.

Without these custom callbacks, when an interrupt is requested directly
and not through gpiod_to_irq(), the request fails because the GPIO is
not necesarily in input mode. These callbacks simply enforce that the
requested GPIO is in input mode.

Signed-off-by: Paul Cercueil <paul@crapouillou.net>
Link: https://lore.kernel.org/r/20200503164549.163884-1-paul@crapouillou.net
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/pinctrl-ingenic.c