linux-rockchip.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: Minas Harutyunyan <Minas.Harutyunyan-HKixBCOQz3hWk0Htik3J/w@public.gmane.org>
To: Otavio Salvador
	<otavio.salvador-fKevB0iiKLMBZ+LybsDmbA@public.gmane.org>,
	Minas Harutyunyan
	<Minas.Harutyunyan-HKixBCOQz3hWk0Htik3J/w@public.gmane.org>
Cc: Greg Kroah-Hartman
	<gregkh-hQyY1W1yCW8ekmWlsbkhG0B+6BGkLq7r@public.gmane.org>,
	"linux-usb-u79uwXL29TY76Z2rM5mHXA@public.gmane.org"
	<linux-usb-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
	Felipe Balbi <balbi-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>,
	Heiko Stuebner <heiko-4mtYJXux2i+zQB+pC5nmwQ@public.gmane.org>,
	"linux-rockchip-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org"
	<linux-rockchip-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org>,
	Johan Hovold <johan-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
Subject: Re: USB DWC2 stops responding when insert/remove cable multiple times
Date: Wed, 19 Feb 2020 12:26:48 +0000	[thread overview]
Message-ID: <380d765b-8867-a899-b67a-c016c09fa27b@synopsys.com> (raw)
In-Reply-To: <CAP9ODKqa_4NSsFMUpyFDt3ohgGBCMgbOyKaVjYfSjmcZLmmC+A-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>

Hi Otavio,

On 2/17/2020 11:53 PM, Otavio Salvador wrote:
> Hello Minas,
> 
> On Mon, Feb 17, 2020 at 10:26 AM Minas Harutyunyan
> <Minas.Harutyunyan@synopsys.com> wrote:
>> Enable debug prints to get full dwc2 debug prints to see what happen
>> with dwc2.
> 

> [ 1054.529774] dwc2 30180000.usb: ep0 state:0
> [ 1054.529785] dwc2 30180000.usb: dwc2_hsotg_start_req: DxEPCTL=0x84088200
> [ 1054.529801] dwc2 30180000.usb: dwc2_hsotg_start_req: DXEPCTL=0x80088200
> [ 1054.529928] dwc2 30180000.usb: ep2out: req 26bd9b9f: 512@06b7dbca,
> noi=0, zero=0, snok=0
> [ 1054.537095] dwc2 30180000.usb: dwc2_hsotg_irq: 04008428 00000400
> (d88c3cc4) retry 8
> [ 1054.537119] dwc2 30180000.usb: GINTSTS_ErlySusp
> [ 1054.540147] dwc2 30180000.usb: gintsts=04008828  gintmsk=d88c3cc4
> [ 1054.540172] dwc2 30180000.usb: USB SUSPEND
> [ 1054.540191] dwc2 30180000.usb: dwc2_handle_usb_suspend_intr: DSTS=0x5ad801
> [ 1054.540211] dwc2 30180000.usb: DSTS.Suspend Status=1 HWCFG4.Power
> Optimize=1 HWCFG4.Hibernation=0
> [ 1054.540242] dwc2 30180000.usb: dwc2_hsotg_irq: 04008028 00000000
> (d88c3cc4) retry 8
> [ 1054.585402] dwc2 30180000.usb: ep1in: req 01eff31b: 353@bf8d62d8,
> noi=0, zero=1, snok=0
> [ 1054.585422] dwc2 30180000.usb: dwc2_hsotg_ep_queue: submit request
> only in active state
> [ 1054.661667] dwc2 30180000.usb: dwc2_hsotg_irq: 04008428 00000400
> (d88c3cc4) retry 8
> [ 1054.661694] dwc2 30180000.usb: GINTSTS_ErlySusp
> [ 1054.664715] dwc2 30180000.usb: gintsts=04008828  gintmsk=d88c3cc4
> [ 1054.664741] dwc2 30180000.usb: USB SUSPEND
> [ 1054.664760] dwc2 30180000.usb: dwc2_handle_usb_suspend_intr: DSTS=0x5ad801
> [ 1054.664781] dwc2 30180000.usb: DSTS.Suspend Status=1 HWCFG4.Power
> 

Actually, I don't see any issue with dwc2 from the log. Only not clear 
why SUSPEND happen hear. Is it because of disconnect/connect or 
reloading g_serial?
Is this log recorded when issue seen?
Anyway, before SUSPEND and after dwc2 successfully perform transfers on 
all EP's - ep1in bulk, ep2out bulk and ep3in interrupt.
Can you provide dmesg with dwc2 debug prints with exception case inside.

> Is this information you need? If need we can gather more info.
> 


Thanks,
Minas

  parent reply	other threads:[~2020-02-19 12:26 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-02-14 13:40 USB DWC2 stops responding when insert/remove cable multiple times Otavio Salvador
     [not found] ` <CAP9ODKprPi8N-dU8NaKwneXH-3b0ipSEDpU5mDbGntxuyhGhJw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2020-02-17  8:58   ` Minas Harutyunyan
     [not found]     ` <41a7bfe7-54b1-84eb-091f-469d971ab968-HKixBCOQz3hWk0Htik3J/w@public.gmane.org>
2020-02-17 12:30       ` Otavio Salvador
     [not found]         ` <CAP9ODKoUH=Cc=uuhfaUy7fkSVdfBHhX-6oS9_hi3Wd6GgDiZYw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2020-02-17 13:26           ` Minas Harutyunyan
     [not found]             ` <ee47be28-ba9f-750f-65d2-51a722ce291d-HKixBCOQz3hWk0Htik3J/w@public.gmane.org>
2020-02-17 19:53               ` Otavio Salvador
     [not found]                 ` <CAP9ODKqa_4NSsFMUpyFDt3ohgGBCMgbOyKaVjYfSjmcZLmmC+A-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2020-02-19 12:26                   ` Minas Harutyunyan [this message]
     [not found]                     ` <380d765b-8867-a899-b67a-c016c09fa27b-HKixBCOQz3hWk0Htik3J/w@public.gmane.org>
2020-02-19 15:10                       ` Otavio Salvador
     [not found]                         ` <CAP9ODKqL_GN+iebL3wPX_9fEUtUVP8Ahv03yJ1R-JLDr=Cn0BA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2020-02-20  6:59                           ` Minas Harutyunyan
     [not found]                             ` <beddbc55-fd22-96b7-c980-e4ea207a42f5-HKixBCOQz3hWk0Htik3J/w@public.gmane.org>
2020-02-20 13:16                               ` Otavio Salvador
     [not found]                                 ` <CAP9ODKq2nEHz_rbwwCv-94LSBOq0it2Kc4yhCqrLT-XxoXommg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2020-02-21  6:52                                   ` Minas Harutyunyan
     [not found]                                     ` <1d2ee918-57e4-53b2-6953-0107d7720c59-HKixBCOQz3hWk0Htik3J/w@public.gmane.org>
2020-02-21 14:06                                       ` Otavio Salvador
     [not found]                                         ` <CAP9ODKoS5KQrhTrUvahHEhQG-WA+bfLnP4tTFxzrQaGh1nTcZw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2020-02-21 14:07                                           ` Otavio Salvador
     [not found]                                             ` <CAP9ODKoRuB-nyjr1ksGU61PVMjFTMMWKwgpHQ=e7bChAu5Okhg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2020-02-28  9:01                                               ` Minas Harutyunyan
     [not found]                                                 ` <665fe49e-ebfa-bcb0-fcd1-ea1e9252b306-HKixBCOQz3hWk0Htik3J/w@public.gmane.org>
2020-02-28 17:35                                                   ` Otavio Salvador
     [not found]                                                     ` <CAP9ODKo=YSNa-uNgzwP2X5yDy_qDzYjLogZLg11rRcSXr+wrFw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2020-03-05  6:45                                                       ` Minas Harutyunyan

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=380d765b-8867-a899-b67a-c016c09fa27b@synopsys.com \
    --to=minas.harutyunyan-hkixbcoqz3hwk0htik3j/w@public.gmane.org \
    --cc=balbi-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org \
    --cc=gregkh-hQyY1W1yCW8ekmWlsbkhG0B+6BGkLq7r@public.gmane.org \
    --cc=heiko-4mtYJXux2i+zQB+pC5nmwQ@public.gmane.org \
    --cc=johan-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org \
    --cc=linux-rockchip-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org \
    --cc=linux-usb-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=otavio.salvador-fKevB0iiKLMBZ+LybsDmbA@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 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).