]> git.baikalelectronics.ru Git - kernel.git/commit
usb: dwc3: fix implementation of endpoint wedge
authorAlan Stern <stern@rowland.harvard.edu>
Fri, 1 Nov 2013 16:05:12 +0000 (12:05 -0400)
committerFelipe Balbi <balbi@ti.com>
Mon, 25 Nov 2013 16:56:45 +0000 (10:56 -0600)
commit1c493120de18d2149b61d15b4582ac011ad61255
tree2aa52efe0447fdd839d14936cd87817acabeb53c
parent132a2600b5cab8635ec01ae8f68840dcfc108c4a
usb: dwc3: fix implementation of endpoint wedge

The dwc3 UDC driver doesn't implement endpoint wedging correctly.
When an endpoint is wedged, the gadget driver should be allowed to
clear the wedge by calling usb_ep_clear_halt().  Only the host is
prevented from resetting the endpoint.

This patch fixes the implementation.

Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Tested-by: Pratyush Anand <pratyush.anand@st.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/dwc3/ep0.c
drivers/usb/dwc3/gadget.c