xhci: avoid futile stop endpoint command and host teardown
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest3 patches 3 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | xhci: include all root port children in recovery prevention on link errordrivers/ drivers/ drivers/ | +17 | 0 replies | |
| 2/3 | xhci: prevent endpoint recovery after roothub disconnectdrivers/ drivers/ | +9 | 0 replies | |
| 3/3 | xhci: avoid xHC endpoint changes after disconnect or link error.drivers/ drivers/ drivers/ | +21 | 0 replies |
Reviews trailers per patch
None of the 3 patches has a Reviewed-by or Acked-by.
| Patch | Xu Rao |
|---|---|
| Series | T-b |
| 1/3 | |
| 2/3 | |
| 3/3 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [RFT PATCH 0/3] xhci: avoid futile stop endpoint command and host teardown
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/[email protected]/
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(-)
Signature · 1 line
2.43.0