Linux USB
 help / color / mirror / Atom feed
From: Mathias Nyman <mathias.nyman@linux.intel.com>
To: <linux-usb@vger.kernel.org>
Cc: raoxu@uniontech.com, michal.pecio@gmail.com,
	Mathias Nyman <mathias.nyman@linux.intel.com>
Subject: [RFT PATCH 0/3] xhci: avoid futile stop endpoint command and host teardown
Date: Mon, 29 Jun 2026 15:30:28 +0300	[thread overview]
Message-ID: <20260629123031.142133-1-mathias.nyman@linux.intel.com> (raw)

This series is an attempt to avoid stop endpoint command failure
leading to xhci teardown with messages:

xHCI host not responding to stop endpoint command
xHCI host controller not responding, assume dead

Series is based on a discussion with Michal and Xu Rao:

https://lore.kernel.org/linux-usb/D9BA02889D046D23+20260617100957.2888108-1-raoxu@uniontech.com/

A Renesas xHC host with a device behind a disconnected hub failed to
complete a stop endoint command immediately after a endpoint soft
reset and restart. Michal had some plausible theories why stop endpoint
command issued immediately after endpoint restart fails after disconnect.

Many of these cases can be avoided as xhci driver knows the rootport
link state and can avoid futile transfer retry and recovery on link
error or disconnect

I don't have a easy way to reproduce this myself, all testing is
welcome

Thanks
Mathias

Mathias Nyman (3):
  xhci: include all root port children in recovery prevention on link
    error
  xhci: prevent endpoint recovery after roothub disconnect
  xhci: avoid xHC endpoint changes after disconnect or link error.

 drivers/usb/host/xhci-ring.c | 50 +++++++++++++++++++++++++-----------
 drivers/usb/host/xhci.c      |  9 ++++---
 drivers/usb/host/xhci.h      | 11 +++-----
 3 files changed, 43 insertions(+), 27 deletions(-)

-- 
2.43.0


             reply	other threads:[~2026-06-29 12:30 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-06-29 12:30 Mathias Nyman [this message]
2026-06-29 12:30 ` [RFT PATCH 1/3] xhci: include all root port children in recovery prevention on link error Mathias Nyman
2026-06-29 12:30 ` [RFT PATCH 2/3] xhci: prevent endpoint recovery after roothub disconnect Mathias Nyman
2026-06-29 12:30 ` [RFT PATCH 3/3] xhci: avoid xHC endpoint changes after disconnect or link error Mathias Nyman

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=20260629123031.142133-1-mathias.nyman@linux.intel.com \
    --to=mathias.nyman@linux.intel.com \
    --cc=linux-usb@vger.kernel.org \
    --cc=michal.pecio@gmail.com \
    --cc=raoxu@uniontech.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