usb: dwc3: handle pending unaligned Control OUT data phase correctly
authorFelipe Balbi <balbi@ti.com>
Fri, 4 May 2012 10:03:54 +0000 (13:03 +0300)
committerFelipe Balbi <balbi@ti.com>
Sun, 3 Jun 2012 20:08:18 +0000 (23:08 +0300)
commita0807881af93646b5d94b5594119df609e756945
treef8fb042eefbfafefbedbc97101ebbda4223c8439
parent4552a0ca61cb2133bc77dc432ea20538ea28638a
usb: dwc3: handle pending unaligned Control OUT data phase correctly

When DWC3_EP_PENDING_REQUEST flag is set for a Control OUT Data
phase transfer, we would be missing the proper handling for
unaligned OUT requests, thus hanging a transfer.

Since proper handling is already done on dwc3_ep0_do_control_data(),
we simply re-factor that function so it can be re-used from
__dwc3_gadget_ep0_queue().

Reported-by: Pratyush Anand <pratyush.anand@st.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/dwc3/ep0.c