From: Yoshihiro Shimoda Date: Wed, 9 Jul 2014 11:30:03 +0000 (+0900) Subject: usb: renesas_usbhs: fix usbhs_pipe_malloc() to re-enable a pipe. X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=6a0541599f54b556442d6130e4f9faaad91bf3a2;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git usb: renesas_usbhs: fix usbhs_pipe_malloc() to re-enable a pipe. This patch fixes an issue that the driver cannot push a new data when a pipe is re-enabled after the pipe is queued. Acked-by: Kuninori Morimoto Signed-off-by: Yoshihiro Shimoda Signed-off-by: Felipe Balbi --- diff --git a/drivers/usb/renesas_usbhs/pipe.c b/drivers/usb/renesas_usbhs/pipe.c index 7926e1c700f1..239b889ca5b5 100644 --- a/drivers/usb/renesas_usbhs/pipe.c +++ b/drivers/usb/renesas_usbhs/pipe.c @@ -710,6 +710,7 @@ struct usbhs_pipe *usbhs_pipe_malloc(struct usbhs_priv *priv, usbhsp_pipe_select(pipe); usbhsp_pipe_cfg_set(pipe, 0xFFFF, pipecfg); usbhsp_pipe_buf_set(pipe, 0xFFFF, pipebuf); + usbhs_pipe_clear(pipe); usbhs_pipe_sequence_data0(pipe);