soc: mediatek: PMIC wrap: Extend the waiting time to 10ms.
authorHenry Chen <henryc.chen@mediatek.com>
Wed, 13 Jul 2016 03:34:28 +0000 (11:34 +0800)
committerMatthias Brugger <matthias.bgg@gmail.com>
Mon, 22 Aug 2016 17:31:36 +0000 (19:31 +0200)
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: Henry Chen <henryc.chen@mediatek.com>
Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com>
drivers/soc/mediatek/mtk-pmic-wrap.c

index a003ba26ca6e7ec6b0bfadaeb2932d504381419b..a5f10936fb9cbe15c0b7338108ee7e1cf830bb13 100644 (file)
@@ -583,7 +583,7 @@ static int pwrap_wait_for_state(struct pmic_wrapper *wrp,
 {
        unsigned long timeout;
 
-       timeout = jiffies + usecs_to_jiffies(255);
+       timeout = jiffies + usecs_to_jiffies(10000);
 
        do {
                if (time_after(jiffies, timeout))