Re: [PATCH RESEND] xhci: Handle missing USB2 resume events on Etron hosts

From: Alan Stern

Date: Wed Nov 25 2026 - 09:29:38 EST


On Wed, Nov 25, 2026 at 12:05:45PM +0100, Michal Pecio wrote:
> On Wed, 25 Nov 2026 09:33:38 +0800, Kuangyi Chiang wrote:
> > I tested again on an EJ188 with three USB2 hubs connected, without the
> > proposed fix but with extra local debug messages to detect ports that
> > are in the resume state without a Port Status Change Event.
> >
> > When I connected the first mouse to hub 3, I saw the same behavior as
> > in your test: the USB core checked all root hub ports, and all three
> > hubs completed resume (evt 000e).
> >
> > However, when I connected a second mouse to hub 2, the root hub was
> > already active. Port 1 also entered the resume state without an event,
> > but only port 2 was reported in the status bitmap (evt 0004).
>
> OK, so I'm not sure how you reproduced this problem on the two-port
> chip, and commit message was wrong - the root hub must be awake.
>
> But now, if I disable root hub autosuspend (echo on > power/control),
> connect two devices which use autosuspend and remote wake one device,
> the RH wakes both ports and only generates one Port Status Change. It
> seems nobody expects the other port to be affected so it stays stuck
> in the Resume state (SW is responsible for transition to U0).
>
> I don't see similar behavior in other xHCI root hubs, nor in a few
> external hubs. Anyone knows if this violates the USB2 spec?

Yes, it does.

Alan Stern