soc: mediatek: PMIC wrap: Clear the vldclr if state machine stay on FSM_VLDCLR state.
authorHenry Chen <henryc.chen@mediatek.com>
Mon, 4 Jan 2016 12:02:52 +0000 (20:02 +0800)
committerMatthias Brugger <matthias.bgg@gmail.com>
Mon, 25 Jan 2016 17:59:41 +0000 (18:59 +0100)
commit73efe5792bfa73589a7e04abf773f8b7a4c01650
treeb751f509e291a7f84a4235af95cdbb9fa6b50dc4
parent92e963f50fc74041b5e9e744c330dca48e04f08d
soc: mediatek: PMIC wrap: Clear the vldclr if state machine stay on FSM_VLDCLR state.

Sometimes PMIC is too busy to send data in time to cause pmic wrap timeout,
because pmic wrap is waiting for FSM_VLDCLR after finishing WACS2_CMD. It
just return error when issue happened, so the state machine will stay on
FSM_VLDCLR state when data send back later by PMIC and timeout again in next
time because pmic wrap waiting for FSM_IDLE state at the beginning of the
read/write function.

Clear the vldclr when timeout if state machine stay on FSM_VLDCLR.

Signed-off-by: Henry Chen <henryc.chen@mediatek.com>
Tested-by: Ricky Liang <jcliang@chromium.org>
Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com>
drivers/soc/mediatek/mtk-pmic-wrap.c
This page took 0.025019 seconds and 5 git commands to generate.