soc: imx: gpc: fix power up sequencing
authorLucas Stach <l.stach@pengutronix.de>
Fri, 13 Mar 2020 10:09:12 +0000 (11:09 +0100)
committerShawn Guo <shawnguo@kernel.org>
Mon, 16 Mar 2020 03:39:02 +0000 (11:39 +0800)
commite0ea2d11f8a08ba7066ff897e16c5217215d1e68
treefdcf7e7ac510835bf8328be21cad48654209eee7
parentfc40200ebf82fae3e40c4e88246496644edafe66
soc: imx: gpc: fix power up sequencing

Currently we wait only until the PGC inverts the isolation setting
before disabling the peripheral clocks. This doesn't ensure that the
reset is properly propagated through the peripheral devices in the
power domain.

Wait until the PGC signals that the power up request is done and
wait a bit for resets to propagate before disabling the clocks.

Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
drivers/soc/imx/gpc.c