linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RESEND PATCH] soc: mediatek: PMIC wrap: Extend the waiting time to 10ms.
@ 2016-07-13  3:34 Henry Chen
  2016-08-22 17:31 ` Matthias Brugger
  0 siblings, 1 reply; 2+ messages in thread
From: Henry Chen @ 2016-07-13  3:34 UTC (permalink / raw)
  To: Matthias Brugger
  Cc: Sascha Hauer, linux-arm-kernel, linux-mediatek, linux-kernel, Henry Chen

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

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))
-- 
1.8.1.1.dirty

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [RESEND PATCH] soc: mediatek: PMIC wrap: Extend the waiting time to 10ms.
  2016-07-13  3:34 [RESEND PATCH] soc: mediatek: PMIC wrap: Extend the waiting time to 10ms Henry Chen
@ 2016-08-22 17:31 ` Matthias Brugger
  0 siblings, 0 replies; 2+ messages in thread
From: Matthias Brugger @ 2016-08-22 17:31 UTC (permalink / raw)
  To: Henry Chen; +Cc: Sascha Hauer, linux-arm-kernel, linux-mediatek, linux-kernel



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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-08-22 17:31 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-07-13  3:34 [RESEND PATCH] soc: mediatek: PMIC wrap: Extend the waiting time to 10ms Henry Chen
2016-08-22 17:31 ` Matthias Brugger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).