[PATCH 2/2] soc: mediatek: PMIC wrap: Fix register state machine handling

Matthias Brugger matthias.bgg at gmail.com
Wed May 27 05:32:35 PDT 2015


2015-05-26 11:37 GMT+02:00 Sascha Hauer <s.hauer at pengutronix.de>:
> 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 at pengutronix.de>
> ---
>  drivers/soc/mediatek/mtk-pmic-wrap.c | 12 ++----------
>  1 file changed, 2 insertions(+), 10 deletions(-)
>

Applied, thanks.
Matthias



More information about the Linux-mediatek mailing list