From: Sarah Sharp <sarah.a.sharp@linux.intel.com>
To: Alan Stern <stern@rowland.harvard.edu>
Cc: Julius Werner <jwerner@chromium.org>,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
LKML <linux-kernel@vger.kernel.org>,
"linux-usb@vger.kernel.org" <linux-usb@vger.kernel.org>,
Benson Leung <bleung@chromium.org>,
Vincent Palatin <vpalatin@chromium.org>,
"Alexis R. Cortes" <alexis.cortes@ti.com>
Subject: Re: [PATCH] usb: hub: Use correct reset for wedged USB3 devices that are NOTATTACHED
Date: Thu, 14 Nov 2013 15:30:55 -0800 [thread overview]
Message-ID: <20131114233055.GR10371@xanatos> (raw)
In-Reply-To: <Pine.LNX.4.44L0.1311071026480.1401-100000@iolanthe.rowland.org>
On Thu, Nov 07, 2013 at 10:32:33AM -0500, Alan Stern wrote:
> On Wed, 6 Nov 2013, Julius Werner wrote:
>
> > > What if the device is in USB_STATE_SUSPENDED?
> >
> > I'm not sure that is possible at that point in hub_events(), I don't
> > know of a way that could lead to this situation. I could still add the
> > check just to be sure if you want it, though.
>
> I don't know either. But Sarah has said that ports can spontaneously
> go into Compliance Mode for no apparent reason. If that can happen,
> maybe it can happen while the port is in U3 and the device is
> suspended. In such cases, though, you'd need to do a reset-resume
> rather than a simple reset.
Looking at commits c3897aa5386faba77e5bbdf94902a1658d3a5b11 and
71c731a296f1b08a3724bd1b514b64f1bda87a23, it seems that the TI host
controllers' ports can go into compliance mode only when a device is
inserted. Once the device is link trained by the redriver, the port
shouldn't go into compliance mode. So we should never see compliance
mode on a port with an attached USB device in suspend.
Alex, can you confirm that the TI host's port won't go into compliance
mode while a connected device is suspended?
> > > Not at all. If a device is unplugged, its state changes to NOTATTACHED
> > > before the driver is unbound. During that time, the driver will see
> > > all its URBs failing, so it may very well try to reset the device.
> > > (For example, usbhid behaves like this.) That isn't a bug.
> >
> > Oh, okay, I wasn't quite sure how that plays together. Would you think
> > it's still valuable to print it out (maybe as dev_info() instead of
> > dev_warn()) instead of just silently ignoring the reset request? It
> > would have certainly been useful for me to find this problem faster,
> > but I can take it out again if you think it would result in too much
> > noise.
>
> I think keeping dev_dbg() is best. If you're searching for the
> solution to a problem, you should have debugging enabled and so you
> ought to see the message.
>
> Alan Stern
>
next prev parent reply other threads:[~2013-11-14 23:31 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-11-06 20:27 [PATCH] usb: hub: Use correct reset for wedged USB3 devices that are NOTATTACHED Julius Werner
2013-11-06 20:45 ` Greg Kroah-Hartman
2013-11-06 21:52 ` Alan Stern
2013-11-06 22:41 ` Julius Werner
2013-11-07 15:32 ` Alan Stern
2013-11-07 18:51 ` Julius Werner
2013-11-07 18:59 ` [PATCH v2] " Julius Werner
2013-11-08 16:58 ` Alan Stern
2013-11-14 23:30 ` Sarah Sharp [this message]
2013-11-18 19:08 ` [PATCH] " Julius Werner
2013-11-19 14:53 ` Cortes, Alexis
2013-12-05 0:04 ` Sarah Sharp
2013-12-05 16:50 ` Cortes, Alexis
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=20131114233055.GR10371@xanatos \
--to=sarah.a.sharp@linux.intel.com \
--cc=alexis.cortes@ti.com \
--cc=bleung@chromium.org \
--cc=gregkh@linuxfoundation.org \
--cc=jwerner@chromium.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=stern@rowland.harvard.edu \
--cc=vpalatin@chromium.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