xhci fixes for usb-linus, revert patch that went to 4.0-rc3
Subsystems (3)
cover xhci fixes for usb-linus, revert patch that went to 4.0-rc3
Hi Greg
One xhci patch that went to 4.0-rc3 needs to be reverted
Turns out the fix for xhci connected scanners cause regression on some DVB-T devices.
The bug in the original patch is found, but I need to make sure everything works properly first, so it's better to revert this than try to fix it on the fly.
Mathias Nyman (1):
Revert "xhci: Clear the host side toggle manually when endpoint is
'soft reset'"
drivers/usb/host/xhci-ring.c | 2 +- drivers/usb/host/xhci.c | 100 ++++--------------------------------------- drivers/usb/host/xhci.h | 2 - 3 files changed, 10 insertions(+), 94 deletions(-)
Signature · 1 line
1.8.3.2
PATCH 1/1 Revert "xhci: Clear the host side toggle manually when endpoint is 'soft reset'"
This reverts commit 27082e2654dc ("xhci: Clear the host side toggle manually")
Turns out this fix to enable soft resetting endpoints wasn't mature enough. It caused regression with some usb DVB-T devices and needs some more tuning to get the endpiont ring pointers set correctly.
The original commit was tagged for stable 3.18, and should be reverted from there as well.
--- drivers/usb/host/xhci-ring.c | 2 +- drivers/usb/host/xhci.c | 100 ++++--------------------------------------- drivers/usb/host/xhci.h | 2 - 3 files changed, 10 insertions(+), 94 deletions(-)
drivers/usb/host/xhci-ring.c +1 -1
@@ -1729,7 +1729,7 @@ static void xhci_cleanup_halted_endpoint(struct xhci_hcd *xhci,if (!command)return ; - ep->ep_state |=EP_HALTED |EP_RECENTLY_HALTED ; + ep->ep_state |=EP_HALTED ; ep->stopped_stream = stream_id;xhci_queue_reset_ep (xhci, command, slot_id, ep_index);
drivers/usb/host/xhci.c +9 -91
129 lines not on this page · raw message
drivers/usb/host/xhci.h +0 -2
@@ -865,8 +865,6 @@ struct xhci_virt_ep {#define EP_HAS_STREAMS (1 << 4)/* Transitioning the endpoint to not using streams, don't enqueue URBs */ #define EP_GETTING_NO_STREAMS (1 << 5) -#define EP_RECENTLY_HALTED (1 << 6) -#define EP_CONFIG_PENDING (1 << 7)/* ---- Related to URB cancellation ---- */ struct list_head cancelled_td_list;struct xhci_td *stopped_td;
Signature · 1 line
1.8.3.2