pinctrl: microchip sgpio: use reset driver
authorHoratiu Vultur <horatiu.vultur@microchip.com>
Mon, 18 Oct 2021 08:57:54 +0000 (10:57 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 8 Apr 2022 12:23:49 +0000 (14:23 +0200)
commitc6f009fe90f1648cd67c636bb495e80af915c115
tree7b6ac23e6c51ac74f5728c0b20b27247df6f20ec
parenta843ba2e9c875b4ad5eb2e8ec822c46f6d8a5ece
pinctrl: microchip sgpio: use reset driver

[ Upstream commit 0b90315af7602aeb40fe7b6255ab212a19dbd78e ]

On lan966x platform when the switch gets reseted then also the sgpio
gets reseted. The fix for this is to extend also the sgpio driver to
call the reset driver which will be reseted only once by the first
driver that is probed.

Signed-off-by: Horatiu Vultur <horatiu.vultur@microchip.com>
Reviewed-by: Steen Hegelund <steen.hegelund@microchip.com>
Reviewed-by: Philipp Zabel <p.zabel@pengutronix.de>
Link: https://lore.kernel.org/r/20211018085754.1066056-3-horatiu.vultur@microchip.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/pinctrl/pinctrl-microchip-sgpio.c