From: Henry Chen Date: Wed, 13 Jul 2016 03:34:28 +0000 (+0800) Subject: soc: mediatek: PMIC wrap: Extend the waiting time to 10ms. X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=e180f887ba40a916153e29e6ad48c34d28966740;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git 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: Henry Chen Signed-off-by: Matthias Brugger --- diff --git a/drivers/soc/mediatek/mtk-pmic-wrap.c b/drivers/soc/mediatek/mtk-pmic-wrap.c index a003ba26ca6e..a5f10936fb9c 100644 --- a/drivers/soc/mediatek/mtk-pmic-wrap.c +++ b/drivers/soc/mediatek/mtk-pmic-wrap.c @@ -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))