All of lore.kernel.org
 help / color / mirror / Atom feed
* USB device disconnects on resume
@ 2022-04-19  9:28 Martin Kepplinger
  2022-04-19 14:32 ` Alan Stern
  0 siblings, 1 reply; 15+ messages in thread
From: Martin Kepplinger @ 2022-04-19  9:28 UTC (permalink / raw)
  To: linux-usb

hi,

I'm seeing resets and re-enumerations on runtime-resume for one device
a lot. It's a modem connected to the USB2642 Microchip (SMSC) USB2 hub,
that's connected to an xhci HC.

A remote wakeup *sometimes* makes the hub say "physically disconnected"
during resume in hub_activate(), and thus sets reset_resume. Then the
device comes up as low-speed device once, which again is not allowed
during normal runtime resume, so would itself trigger a reset.

The Hub and device is permanently connected on the PCB, so the hub is
interpreting it in a wrong way. I found an email that describes what I
see from Sarah Sharp in 2013 here:
https://marc.info/?l=linux-usb&m=137754385421825&w=2 Where she says:

"Occasionally, the host controller was sending the SoFs too soon on
resume, and the device would interpret it as a low-speed chirp.  The
device would disconnect, and transform from a high speed device to a
low speed device.  I don't think increasing the 10 ms time out will
help at all in this case, but you did ask what USB device disconnect
scenarios I've seen."

I can't find any reference to that bug yet. Has anyone experienced
something (similar) and knows where I can at least try to work around
that?

I don't know Sarahs' current email, could we forward this question to
her?

thank a lot,

                             martin


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

end of thread, other threads:[~2022-05-03 13:57 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-19  9:28 USB device disconnects on resume Martin Kepplinger
2022-04-19 14:32 ` Alan Stern
2022-04-20 10:37   ` Martin Kepplinger
2022-04-20 14:40     ` Alan Stern
2022-04-21 10:38       ` Martin Kepplinger
2022-04-21 14:24         ` Alan Stern
2022-04-25  9:45           ` Martin Kepplinger
2022-04-26 14:58             ` Alan Stern
2022-04-28  7:01               ` Martin Kepplinger
2022-04-28 19:13                 ` Alan Stern
2022-04-29 10:15                   ` Martin Kepplinger
2022-04-29 20:21                     ` Alan Stern
     [not found]                       ` <fdc8354e39f9162bcc63ab99f237bdbbe30d6017.camel@puri.sm>
2022-05-02 19:32                         ` Alan Stern
2022-05-03  7:36                           ` Oliver Neukum
2022-05-03 13:56                             ` Alan Stern

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.