]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitca56443697dc47fe7c1f6bb8de8697e7d8c7d3d7
treefdcf7e7ac510835bf8328be21cad48654209eee7
parent1400511a1fc9ddb6d8c3b7852d2ec3e5e2cc50da
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