Commit e180f887 authored by Henry Chen's avatar Henry Chen Committed by Matthias Brugger

soc: mediatek: PMIC wrap: Extend the waiting time to 10ms.

Read data fails sometimes because of a timeout that PMIC cannot transfer data
to PMIC wrap on time, extend the waiting time to 10ms to reduce the failed
rate.
Signed-off-by: default avatarHenry Chen <henryc.chen@mediatek.com>
Signed-off-by: default avatarMatthias Brugger <matthias.bgg@gmail.com>
parent 29b4817d
...@@ -583,7 +583,7 @@ static int pwrap_wait_for_state(struct pmic_wrapper *wrp, ...@@ -583,7 +583,7 @@ static int pwrap_wait_for_state(struct pmic_wrapper *wrp,
{ {
unsigned long timeout; unsigned long timeout;
timeout = jiffies + usecs_to_jiffies(255); timeout = jiffies + usecs_to_jiffies(10000);
do { do {
if (time_after(jiffies, timeout)) if (time_after(jiffies, timeout))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment