OSDN Git Service

pinctrl: at91: don't use the same irqchip with multiple gpiochips
authorLudovic Desroches <ludovic.desroches@microchip.com>
Thu, 13 Sep 2018 12:42:13 +0000 (14:42 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 25 Nov 2019 14:53:58 +0000 (15:53 +0100)
commit1a66e50c45e6abb6fc14509a44d2eb210f7f2957
tree99daaf19f3feb67140b1cf5d5e26d11b5afc509c
parenta05541487b89f3f8e475bce6f57543a64e13228d
pinctrl: at91: don't use the same irqchip with multiple gpiochips

[ Upstream commit 0c3dfa176912b5f87732545598200fb55e9c1978 ]

Sharing the same irqchip with multiple gpiochips is not a good
practice. For instance, when installing hooks, we change the state
of the irqchip. The initial state of the irqchip for the second
gpiochip to register is then disrupted.

Signed-off-by: Ludovic Desroches <ludovic.desroches@microchip.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/pinctrl/pinctrl-at91.c