pinctrl: microchip sgpio: use reset driver
authorHoratiu Vultur <horatiu.vultur@microchip.com>
Mon, 18 Oct 2021 08:57:54 +0000 (10:57 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Sun, 24 Oct 2021 21:03:26 +0000 (23:03 +0200)
commit0b90315af7602aeb40fe7b6255ab212a19dbd78e
tree17518f98456a9f205ac7dfe9c9d524899c4fa915
parent8a097ff4b832e93cd9490f67b39a8a5a4e82e539
pinctrl: microchip sgpio: use reset driver

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>
drivers/pinctrl/pinctrl-microchip-sgpio.c