Skip to contentSkip to conversation

usb: renesas_usbhs: fix usbhs_pipe_malloc() to re-enable a pipe.

PATCH In review Yoshihiro Shimoda 1 participant 1 message Jul 9, 2014

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/2 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.

---
 drivers/usb/renesas_usbhs/pipe.c |    1 +
 1 file changed, 1 insertion(+)
drivers/usb/renesas_usbhs/pipe.c +1 -0
index 7926e1c..239b889 100644
@@ -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);
 
Signature · 1 line
1.7.9.5