diff options
author | Pratyush Anand <pratyush.anand@st.com> | 2012-06-25 13:10:43 -0400 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2012-07-02 03:02:07 -0400 |
commit | 08f0d96670c53898b4154e7945e77cdd966003f7 (patch) | |
tree | 52dca96f5bef8c30131cd9b653be603b2f59fc7d /drivers/usb/dwc3/gadget.h | |
parent | 5c81ababecd7ddae08ca944a65d8030cd393013c (diff) |
usb: dwc3: correct set_halt implementation for ep0
set_halt for ep0 is called to stall a deferred control responses by the
gadget. We already have a function to stall default control endpoint.
This patch points set_halt for ep0 to the already available function.
Signed-off-by: Pratyush Anand <pratyush.anand@st.com>
Signed-off-by: Michel Sanches <michel.sanches@st.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/dwc3/gadget.h')
-rw-r--r-- | drivers/usb/dwc3/gadget.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/usb/dwc3/gadget.h b/drivers/usb/dwc3/gadget.h index 39ced0b08515..99e6d7248820 100644 --- a/drivers/usb/dwc3/gadget.h +++ b/drivers/usb/dwc3/gadget.h | |||
@@ -111,6 +111,7 @@ int dwc3_gadget_set_link_state(struct dwc3 *dwc, enum dwc3_link_state state); | |||
111 | void dwc3_ep0_interrupt(struct dwc3 *dwc, | 111 | void dwc3_ep0_interrupt(struct dwc3 *dwc, |
112 | const struct dwc3_event_depevt *event); | 112 | const struct dwc3_event_depevt *event); |
113 | void dwc3_ep0_out_start(struct dwc3 *dwc); | 113 | void dwc3_ep0_out_start(struct dwc3 *dwc); |
114 | int dwc3_gadget_ep0_set_halt(struct usb_ep *ep, int value); | ||
114 | int dwc3_gadget_ep0_queue(struct usb_ep *ep, struct usb_request *request, | 115 | int dwc3_gadget_ep0_queue(struct usb_ep *ep, struct usb_request *request, |
115 | gfp_t gfp_flags); | 116 | gfp_t gfp_flags); |
116 | int __dwc3_gadget_ep_set_halt(struct dwc3_ep *dep, int value); | 117 | int __dwc3_gadget_ep_set_halt(struct dwc3_ep *dep, int value); |