Linux USB
 help / color / mirror / Atom feed
From: Michal Pecio <michal.pecio@gmail.com>
To: Kuangyi Chiang <ki.chiang65@gmail.com>
Cc: mathias.nyman@intel.com, gregkh@linuxfoundation.org,
	linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH RESEND] xhci: Handle missing USB2 resume events on Etron hosts
Date: Wed, 25 Nov 2026 12:05:45 +0100	[thread overview]
Message-ID: <20261125120545.76f07ed8.michal.pecio@gmail.com> (raw)
In-Reply-To: <CAHN5xi2dFo2NFbMb8t_5uugX56Fq2=Jj3G2_5xA0-b_NTjQsSg@mail.gmail.com>

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?

Regards,
Michal

      reply	other threads:[~2026-11-25 11:05 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-23  7:23 [PATCH RESEND] xhci: Handle missing USB2 resume events on Etron hosts Kuangyi Chiang
2026-11-23  7:30 ` sashiko-bot
2026-11-23 11:23 ` Michal Pecio
2026-11-25  1:33   ` Kuangyi Chiang
2026-11-25 11:05     ` Michal Pecio [this message]

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=20261125120545.76f07ed8.michal.pecio@gmail.com \
    --to=michal.pecio@gmail.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=ki.chiang65@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-usb@vger.kernel.org \
    --cc=mathias.nyman@intel.com \
    /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