diff options
author | Henry Chen <henryc.chen@mediatek.com> | 2016-07-13 11:34:28 +0800 |
---|---|---|
committer | Matthias Brugger <matthias.bgg@gmail.com> | 2016-08-22 19:31:36 +0200 |
commit | e180f887ba40a916153e29e6ad48c34d28966740 (patch) | |
tree | 843c74e0aeb9a3a2517914b22d55ea11715e8ae3 /drivers/soc | |
parent | 29b4817d4018df78086157ea3a55c1d9424a7cfc (diff) | |
download | op-kernel-dev-e180f887ba40a916153e29e6ad48c34d28966740.zip op-kernel-dev-e180f887ba40a916153e29e6ad48c34d28966740.tar.gz |
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')
-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 a003ba2..a5f1093 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)) |