patch "Revert "usb: dwc3: gadget: skip Set/Clear Halt when invalid"" added to usb-linus
Subsystems (3)
This is a note to let you know that I've just added the patch titled
Revert "usb: dwc3: gadget: skip Set/Clear Halt when invalid"
to my usb git tree which can be found at
git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git
in the usb-linus branch.
The patch will show up in the next release of the linux-next tree (usually sometime within the next 24 hours during the week.)
The patch will hopefully also be merged in Linus's tree for the next -rc kernel release.
If you have any questions about this process, please let me know.
Quoted 1 line
From
38317f5c0f2faae5110854f36edad810f841d62fMon Sep 17 00:00:00 2001
From: Felipe Balbi <[email protected]>
Date: Mon, 19 Nov 2018 08:34:04 +0200
Subject: Revert "usb: dwc3: gadget: skip Set/Clear Halt when invalid"
This reverts commit ffb80fc672c3a7b6afd0cefcb1524fb99917b2f3.
Turns out that commit is wrong. Host controllers are allowed to use Clear Feature HALT as means to sync data toggle between host and periperal.
--- drivers/usb/dwc3/gadget.c | 5 ----- 1 file changed, 5 deletions(-)
drivers/usb/dwc3/gadget.c +0 -5
@@ -1470,9 +1470,6 @@ int __dwc3_gadget_ep_set_halt(struct dwc3_ep *dep, int value, int protocol)unsigned transfer_in_flight;unsigned started; -if (dep->flags &DWC3_EP_STALL ) -return 0 ; -if (dep->number >1 ) trb =dwc3_ep_prev_trb (dep, dep->trb_enqueue);else
@@ -1494,8 +1491,6 @@ int __dwc3_gadget_ep_set_halt(struct dwc3_ep *dep, int value, int protocol)else dep->flags |=DWC3_EP_STALL ; }else { -if (!(dep->flags &DWC3_EP_STALL )) -return 0 ; ret =dwc3_send_clear_stall_ep_cmd (dep);if (ret)
Signature · 1 line
2.19.2