diff options
author | Henry Chen <henryc.chen@mediatek.com> | 2016-07-13 05:34:28 +0200 |
---|---|---|
committer | Matthias Brugger <matthias.bgg@gmail.com> | 2016-08-22 19:31:36 +0200 |
commit | e180f887ba40a916153e29e6ad48c34d28966740 (patch) | |
tree | 843c74e0aeb9a3a2517914b22d55ea11715e8ae3 /drivers/soc/mediatek | |
parent | Linux 4.8-rc1 (diff) | |
download | linux-e180f887ba40a916153e29e6ad48c34d28966740.tar.xz linux-e180f887ba40a916153e29e6ad48c34d28966740.zip |
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 <henryc.chen@mediatek.com>
Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com>
Diffstat (limited to 'drivers/soc/mediatek')
-rw-r--r-- | drivers/soc/mediatek/mtk-pmic-wrap.c | 2 |
1 files changed, 1 insertions, 1 deletions
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)) |