From: John Youn <John.Youn-HKixBCOQz3hWk0Htik3J/w@public.gmane.org>
To: Caesar Wang
<caesar.upstream-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>,
John Youn <John.Youn-HKixBCOQz3hWk0Htik3J/w@public.gmane.org>
Cc: "Huang, Tao" <huangtao-TNX95d0MmH7DzftRWevZcw@public.gmane.org>,
"Heiko Stuebner" <heiko-4mtYJXux2i+zQB+pC5nmwQ@public.gmane.org>,
"Doug Anderson"
<dianders-F7+t8E8rja9g9hUCZPvPmw@public.gmane.org>,
"Felipe Balbi" <balbi-l0cyMroinI0@public.gmane.org>,
"open list:ARM/Rockchip SoC..."
<linux-rockchip-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org>,
吴良峰 <wulf-TNX95d0MmH7DzftRWevZcw@public.gmane.org>,
CaesarWang <wxt-TNX95d0MmH7DzftRWevZcw@public.gmane.org>
Subject: Re: [Bug] usb: dwc2: Add functions to set and clear force mode
Date: Wed, 3 Feb 2016 00:03:40 +0000 [thread overview]
Message-ID: <2B3535C5ECE8B5419E3ECBE30077290901DC431FDB@US01WEMBX2.internal.synopsys.com> (raw)
In-Reply-To: 56B01A0C.3070801@gmail.com
On 2/1/2016 6:53 PM, Caesar Wang wrote:
> John,
>
> I will suggest the msleep(25) delay should put in
> 'dwc2_force_dr_mode()' instead of the 'dwc2_clear_force_mode()'
>
Hi Caesar,
Are you saying that just msleep(25) in that function like this solves
your issue?
diff --git a/drivers/usb/dwc2/core.c b/drivers/usb/dwc2/core.c
index 39a0fa8..e8a9688 100644
--- a/drivers/usb/dwc2/core.c
+++ b/drivers/usb/dwc2/core.c
@@ -625,6 +625,8 @@ void dwc2_force_dr_mode(struct dwc2_hsotg *hsotg)
__func__, hsotg->dr_mode);
break;
}
+
+ msleep(25);
}
Although that is still not ideal, it's better than the alternative.
Regards,
John
next prev parent reply other threads:[~2016-02-03 0:03 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <56A7603C.1000409@rock-chips.com>
[not found] ` <56A7603C.1000409-TNX95d0MmH7DzftRWevZcw@public.gmane.org>
2016-01-26 16:05 ` [Bug] usb: dwc2: Add functions to set and clear force mode Doug Anderson
[not found] ` <CAD=FV=Xk4v=1QMYG9XmXh6hJLKU6i_wVakOArF1du-Z_4_+Neg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2016-01-27 2:12 ` Caesar Wang
[not found] ` <56A8277F.9-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2016-01-29 19:11 ` Doug Anderson
[not found] ` <CAD=FV=Uab6H6sFVj_bPRs7H4HcBi2pqZK3HDCHQxC+EDk=inDA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2016-02-01 11:12 ` Caesar Wang
[not found] ` <56AF3D80.90807-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2016-02-01 11:13 ` Caesar Wang
2016-02-01 23:31 ` John Youn
[not found] ` <2B3535C5ECE8B5419E3ECBE30077290901DC42FD26-Yu2iAY70zvrYN67daEjeMPufCSb+aD3WLzEdoUbNIic@public.gmane.org>
2016-02-02 2:42 ` Caesar Wang
[not found] ` <56B01785.3030803-9Onoh4P/yGk@public.gmane.org>
2016-02-02 2:53 ` Caesar Wang
2016-02-03 0:03 ` John Youn [this message]
[not found] ` <2B3535C5ECE8B5419E3ECBE30077290901DC431FDB-Yu2iAY70zvrYN67daEjeMPufCSb+aD3WLzEdoUbNIic@public.gmane.org>
2016-02-03 0:35 ` Caesar Wang
2016-02-03 1:08 ` John Youn
[not found] ` <2B3535C5ECE8B5419E3ECBE30077290901DC4322F0-Yu2iAY70zvrYN67daEjeMPufCSb+aD3WLzEdoUbNIic@public.gmane.org>
2016-02-03 1:10 ` Caesar Wang
2016-02-03 1:32 ` John Youn
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=2B3535C5ECE8B5419E3ECBE30077290901DC431FDB@US01WEMBX2.internal.synopsys.com \
--to=john.youn-hkixbcoqz3hwk0htik3j/w@public.gmane.org \
--cc=balbi-l0cyMroinI0@public.gmane.org \
--cc=caesar.upstream-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
--cc=dianders-F7+t8E8rja9g9hUCZPvPmw@public.gmane.org \
--cc=heiko-4mtYJXux2i+zQB+pC5nmwQ@public.gmane.org \
--cc=huangtao-TNX95d0MmH7DzftRWevZcw@public.gmane.org \
--cc=linux-rockchip-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org \
--cc=wulf-TNX95d0MmH7DzftRWevZcw@public.gmane.org \
--cc=wxt-TNX95d0MmH7DzftRWevZcw@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.