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>
Wed, 20 Nov 2019 17:00:00 +0000 (18:00 +0100)
commitce87ef651769f2276bbbd5e62d5f4ef3d4b87b6c
tree2e7e5a085cb2da0a3a7dbf84cd74b6ea24fd6009
parentb8ba110d14bccb47371e8b790414e2fddc47e9a3
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