]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc7933944d54925779f8deeb74285badb917ae6b0
treeb751f509e291a7f84a4235af95cdbb9fa6b50dc4
parent5367e65a538f2d59834d845f582bc1f1ae9599b8
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