usb: xhci: fixes for OTG/DRD use
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest5 patches 14 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/5 | usb: xhci: cleanup xhci_hcd allocationdrivers/ drivers/ drivers/ +1 more | +52 | 8 replies | |
| 2/5 | usb: xhci: plat: Create both HCDs before adding themdrivers/ | +11 | 6 replies | |
| 3/5 | usb: xhci: Allow usb_add/remove_hcd() to be called repeatedlydrivers/ | +0 | 0 replies | |
| 4/5 | usb: xhci: fix xhci locking up during hcd removedrivers/ | +4 | 0 replies | |
| 5/5 | usb: xhci: Fix suspend/resume when used with OTG coredrivers/ drivers/ drivers/ | +8 | 3 replies |
Reviews trailers per patch
1 of 5 patches has a Reviewed-by or Acked-by.
| Patch | Roger Quadros |
|---|---|
| 1/5 | |
| 2/5 | |
| 3/5 | |
| 4/5 | |
| 5/5 | A-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH 0/5] usb: xhci: fixes for OTG/DRD use
Hi,
While testing for OTG/DRD [1], I encountered a couple of problems with the XHCI driver.
The first 2 patches clean up the HCD allocation logic as we want both primary and shared HCDs to be allocated before the primary HCD registers for OTG use. That's the only way the OTG core will know that it needs to wait for the shared HCD to register before firing up the OTG state machine. We let the HCD core allocate memory for the xhci private structure.
For OTG/DRD case we want usb_add/remove_hcd() to work reliably when called repeatedly. Patches 3 and 4 fix issues with usb_add/remove_hcd() on xhci.
The last patch fixes an issue with suspend/resume.
[1] - OTG core support
http://thread.gmane.org/gmane.linux.kernel/1911689
cheers,
-roger
Roger Quadros (5):
usb: xhci: cleanup xhci_hcd allocation
usb: xhci: plat: Create both HCDs before adding them
usb: xhci: Allow usb_add/remove_hcd() to be called repeatedly
usb: xhci: fix xhci locking up during hcd remove
usb: xhci: Fix suspend/resume when used with OTG core
drivers/usb/host/xhci-pci.c | 18 +++++++++--------- drivers/usb/host/xhci-plat.c | 43 ++++++++++++++++++++++--------------------- drivers/usb/host/xhci-ring.c | 5 ++++- drivers/usb/host/xhci.c | 43 +++++++++++++++++++++++-------------------- drivers/usb/host/xhci.h | 19 +++++++++++++++++-- 5 files changed, 75 insertions(+), 53 deletions(-)
Signature · 1 line
2.1.0