Commit 91b158f4 authored by Kuninori Morimoto's avatar Kuninori Morimoto Committed by Felipe Balbi

usb: renesas_usbhs: call usbhsg_queue_pop() when pipe disable.

When poping packet from queue, it needs correct end procedure.
This patch call usbhsg_queue_pop() in usbhsg_pipe_disable().
Signed-off-by: default avatarKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
parent 25fa7079
...@@ -557,14 +557,16 @@ static int usbhsg_pipe_disable(struct usbhsg_uep *uep) ...@@ -557,14 +557,16 @@ static int usbhsg_pipe_disable(struct usbhsg_uep *uep)
struct usbhs_pipe *pipe = usbhsg_uep_to_pipe(uep); struct usbhs_pipe *pipe = usbhsg_uep_to_pipe(uep);
struct usbhs_pkt *pkt; struct usbhs_pkt *pkt;
usbhs_pipe_disable(pipe);
while (1) { while (1) {
pkt = usbhs_pkt_pop(pipe, NULL); pkt = usbhs_pkt_pop(pipe, NULL);
if (!pkt) if (!pkt)
break; break;
usbhsg_queue_pop(uep, usbhsg_pkt_to_ureq(pkt), -ECONNRESET);
} }
usbhs_pipe_disable(pipe);
return 0; return 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment