diff mbox

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

Message ID 1468380868-16683-1-git-send-email-henryc.chen@mediatek.com (mailing list archive)
State New, archived
Headers show

Commit Message

Henry Chen July 13, 2016, 3:34 a.m. UTC
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>
---
Resend to fixed the typo on commit message
---
 drivers/soc/mediatek/mtk-pmic-wrap.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Matthias Brugger Aug. 22, 2016, 5:31 p.m. UTC | #1
On 13/07/16 05:34, Henry Chen wrote:
> 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>
> ---

Applied, thanks
diff mbox

Patch

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))