reset: microchip-sparx5: issue a reset on startup
authorMichael Walle <michael@walle.cc>
Fri, 26 Aug 2022 11:56:05 +0000 (13:56 +0200)
committerPhilipp Zabel <p.zabel@pengutronix.de>
Tue, 30 Aug 2022 14:29:41 +0000 (16:29 +0200)
commit51fd191422d987dfd75a711aae592069ebb03ec9
treeaa7432480ef944ee5e9a281f0002cd6ed022fc34
parent051d9eb403887bb11852b7a4f744728a6a4b1b58
reset: microchip-sparx5: issue a reset on startup

Originally this was used in by the switch core driver to issue a reset.
But it turns out, this isn't just a switch core reset but instead it
will reset almost the complete SoC.

Instead of adding almost all devices of the SoC a shared reset line,
issue the reset once early on startup. Keep the reset controller for
backwards compatibility, but make the actual reset a noop.

Suggested-by: Philipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: Michael Walle <michael@walle.cc>
Tested-by: Steen Hegelund <Steen.Hegelund@microchip.com> on Sparx5
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Link: https://lore.kernel.org/r/20220826115607.1148489-2-michael@walle.cc
drivers/reset/reset-microchip-sparx5.c