]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit00cf60270015124fe6af94b550ba78b13a1b789a
tree13705ccecefe8b450f0eb9e6305c9ffeb4b49102
parent9fab729402c7d8e393d7a24ee1c6355ff841add8
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