soc: imx: gpcv2: split power up and power down sequence control
authorLucas Stach <l.stach@pengutronix.de>
Mon, 10 May 2021 04:00:36 +0000 (12:00 +0800)
committerShawn Guo <shawnguo@kernel.org>
Sun, 23 May 2021 02:58:01 +0000 (10:58 +0800)
commit256f07edbdd27d4eb0088eb895669e04f4012f9c
tree41385a8bd45399b659d8dd33339358d1c8100a0c
parentcbca0b4fd21123fc10fb23101fd4f29f5de88574
soc: imx: gpcv2: split power up and power down sequence control

The current mixed function to control both power up and power down
sequences is very hard to follow and already contains some sequence
errors like triggering the ADB400 handshake at the wrong time due to
this. Split the function into two, which results in slightly more
code, but is way easier to get right.

Tested-by: Frieder Schrempf <frieder.schrempf@kontron.de>
Reviewed-by: Frieder Schrempf <frieder.schrempf@kontron.de>
Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
drivers/soc/imx/gpcv2.c