]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 23 Apr 2020 08:30:17 +0000 (10:30 +0200)
commit195bd29b4fb159ac962e1df95fe40176e838b883
tree5baae4cd78b65e688f3641500ab6b484d5ff7263
parent08afbff24be3ed6c71c38c815386e22c9912f319
soc: imx: gpc: fix power up sequencing

[ Upstream commit e0ea2d11f8a08ba7066ff897e16c5217215d1e68 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/soc/imx/gpc.c