|
@@ -617,10 +617,13 @@ static int usbhsg_ep_enable(struct usb_ep *ep,
|
|
|
* use dmaengine if possible.
|
|
* use dmaengine if possible.
|
|
|
* It will use pio handler if impossible.
|
|
* It will use pio handler if impossible.
|
|
|
*/
|
|
*/
|
|
|
- if (usb_endpoint_dir_in(desc))
|
|
|
|
|
|
|
+ if (usb_endpoint_dir_in(desc)) {
|
|
|
pipe->handler = &usbhs_fifo_dma_push_handler;
|
|
pipe->handler = &usbhs_fifo_dma_push_handler;
|
|
|
- else
|
|
|
|
|
|
|
+ } else {
|
|
|
pipe->handler = &usbhs_fifo_dma_pop_handler;
|
|
pipe->handler = &usbhs_fifo_dma_pop_handler;
|
|
|
|
|
+ usbhs_xxxsts_clear(priv, BRDYSTS,
|
|
|
|
|
+ usbhs_pipe_number(pipe));
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
ret = 0;
|
|
ret = 0;
|
|
|
}
|
|
}
|