* Re: [PATCH v2 1/1] usb: gadget: s3c-hsotg: fix core reset timeout failure [not found] <4ff3af7d.42da440a.5573.ffffe2c2@mx.google.com> @ 2012-07-23 10:41 ` Felipe Balbi 2012-07-24 0:19 ` [Resend PATCH v2] " Du, Changbin 0 siblings, 1 reply; 2+ messages in thread From: Felipe Balbi @ 2012-07-23 10:41 UTC (permalink / raw) To: Du, Changbin; +Cc: balbi, gregkh, ben, linux-usb, linux-kernel [-- Attachment #1: Type: text/plain, Size: 1106 bytes --] Hi, On Wed, Jul 04, 2012 at 10:50:30AM +0800, Du, Changbin wrote: > The timeout values were 1000 and timeout issue occurred many times on my > > s3c6410 Soc based board (mostly when booting with USB cable not > > connected). This patch increase the values to 10000 to guarantee the > > success of reset. > > > > Having set timeout to 10000, I printed the remained timeout values > > which can cause timeout issue before this change (tested several times): > > the first timeout value remained: > > timeout = 8079 > > timeout = 8079 > > timeout = 8078 > > timeout = 8081 > > the second timeout value remained: > > timeout = 7940 > > timeout = 7945 > > timeout = 7940 > > timeout = 7938 > > Seeing from above values, I think 10000 is big enough. > > > > Signed-off-by: Du, Changbin changbin.du@gmail.com > > --- > > Changes for v2: > > Fixed wrapped line done by my mail client now it' s even worse. Please use git send-email instead. -- balbi [-- Attachment #2: Digital signature --] [-- Type: application/pgp-signature, Size: 836 bytes --] ^ permalink raw reply [flat|nested] 2+ messages in thread
* [Resend PATCH v2] usb: gadget: s3c-hsotg: fix core reset timeout failure 2012-07-23 10:41 ` [PATCH v2 1/1] usb: gadget: s3c-hsotg: fix core reset timeout failure Felipe Balbi @ 2012-07-24 0:19 ` Du, Changbin 0 siblings, 0 replies; 2+ messages in thread From: Du, Changbin @ 2012-07-24 0:19 UTC (permalink / raw) To: balbi; +Cc: gregkh, linux-usb, linux-kernel, ben, Du, Changbin From: "Du, Changbin" <changbin.du@gmail.com> The timeout values were 1000 and timeout issue occured many times on my s3c6410 Soc based board (mostly when booting whith USB cable not connected). This patch increase the values to 10000 to guarantee the success of reset. Having set timeout to 10000, I printed the remained timeout values which could cause timeout issue before this change (tested several times). the first timeout value remained: timeout = 8079 timeout = 8079 timeout = 8078 timeout = 8081 the second timeout value remained: timeout = 7940 timeout = 7945 timeout = 7940 timeout = 7938 Seeing from above values, I think the value 10000 is big enough. Signed-off-by: Du, Changbin <changbin.du@gmail.com> --- Changes for v2: Fixed wrapped line done by my mail client --- drivers/usb/gadget/s3c-hsotg.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/usb/gadget/s3c-hsotg.c b/drivers/usb/gadget/s3c-hsotg.c index f4abb0e..f3e2234 100644 --- a/drivers/usb/gadget/s3c-hsotg.c +++ b/drivers/usb/gadget/s3c-hsotg.c @@ -2215,7 +2215,7 @@ static int s3c_hsotg_corereset(struct s3c_hsotg *hsotg) /* issue soft reset */ writel(GRSTCTL_CSftRst, hsotg->regs + GRSTCTL); - timeout = 1000; + timeout = 10000; do { grstctl = readl(hsotg->regs + GRSTCTL); } while ((grstctl & GRSTCTL_CSftRst) && timeout-- > 0); @@ -2225,7 +2225,7 @@ static int s3c_hsotg_corereset(struct s3c_hsotg *hsotg) return -EINVAL; } - timeout = 1000; + timeout = 10000; while (1) { u32 grstctl = readl(hsotg->regs + GRSTCTL); -- 1.7.9.5 ^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-07-24 0:22 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <4ff3af7d.42da440a.5573.ffffe2c2@mx.google.com>
2012-07-23 10:41 ` [PATCH v2 1/1] usb: gadget: s3c-hsotg: fix core reset timeout failure Felipe Balbi
2012-07-24 0:19 ` [Resend PATCH v2] " Du, Changbin
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox
Powered by JetHome