Skip to content

usb: host: xhci-plat: omit shared hcd if either of the root hubs has no ports

Heiner Kallweit linux-amlogic linux-usb 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest5 patches 6 repliesIn review
  2. v15 patches 3 repliesSuperseded

Changes in v2 from the cover letter

- reordered patches
- create new helper xhci_has_one_roothub() instead of using xhci_hcd->needs_shared_hcd (proposed by Mathias)

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5xhci: factor out parts of xhci_gen_setup()drivers/usb/host/xhci.c+54 -500 replies
2/5xhci: prepare for operation w/o shared hcddrivers/usb/host/xhci-hub.c drivers/usb/host/xhci-mem.c drivers/usb/host/xhci.c +1 more+68 -250 replies
3/5usb: host: xhci-plat: create shared hcd after having added main hcddrivers/usb/host/xhci-plat.c+16 -130 replies
4/5usb: host: xhci-plat: prepare operation w/o shared hcddrivers/usb/host/xhci-plat.c+18 -136 replies
5/5usb: host: xhci-plat: omit shared hcd if either root hub has no portsdrivers/usb/host/xhci-plat.c+2 -00 replies

Reviews trailers per patch

None of the 5 patches has a Reviewed-by or Acked-by.

PatchMatthias Kaehlcke
1/5
2/5
3/5
4/5T-b
5/5

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/5] usb: host: xhci-plat: omit shared hcd if either of the root hubs has no ports

I have a system with a low-cost Amlogic S905W SoC that supports USB3 but has a USB3 root hub with no ports. This results in an error message and a hcd that is good for nothing. The USB2 root hub has ports and works normally.
I think we can do better and omit creating a shared hcd if either of the root hubs has no ports. This series is based on discussion [0].

The series works as intended for me. What I couldn't test is the case of the USB2 root hub having no ports.

Follow-up to this series could be applying the xhci-plat extension to other xhci drivers.

[0] https://www.spinics.net/lists/linux-usb/msg223416.html

v2:
- reordered patches
- create new helper xhci_has_one_roothub() instead of using xhci_hcd->needs_shared_hcd (proposed by Mathias)

Heiner Kallweit (5):
xhci: factor out parts of xhci_gen_setup()
xhci: prepare for operation w/o shared hcd
usb: host: xhci-plat: create shared hcd after having added main hcd
usb: host: xhci-plat: prepare operation w/o shared hcd
usb: host: xhci-plat: omit shared hcd if either root hub has no ports

 drivers/usb/host/xhci-hub.c  |   3 +-
 drivers/usb/host/xhci-mem.c  |  11 +--
 drivers/usb/host/xhci-plat.c |  46 +++++++----
 drivers/usb/host/xhci.c      | 155 ++++++++++++++++++++---------------
 drivers/usb/host/xhci.h      |  26 ++++++
 5 files changed, 149 insertions(+), 92 deletions(-)
Signature · 7 lines
2.35.1


_______________________________________________
linux-amlogic mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-amlogic