]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
soc: mediatek: PMIC wrap: Fix register state machine handling
authorSascha Hauer <s.hauer@pengutronix.de>
Tue, 26 May 2015 09:37:44 +0000 (11:37 +0200)
committerMatthias Brugger <matthias.bgg@gmail.com>
Wed, 27 May 2015 12:11:41 +0000 (14:11 +0200)
commitd956b80ac7a6ba6ee45ac46e969f68dd15b4b729
tree82549b48bea1100cfb38584422189426ab21b334
parentd71c11f3bd2bb0c09e3f08169f5b75dba4b800ea
soc: mediatek: PMIC wrap: Fix register state machine handling

When the PMIC wrapper state machine has read a register it goes into the
"wait for valid clear" (vldclr) state. The state machine stays in this
state until the VLDCLR bit is written to. We should write this bit after
reading a register because the SCPSYS won't let the system go into
suspend as long as the state machine waits for valid clear.

Since now we never leave the state machine in vldclr state we no longer
have to check for this state on pwrap_read/pwrap_write entry and can
remove the corresponding code.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com>
drivers/soc/mediatek/mtk-pmic-wrap.c