aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/renesas_usbhs
diff options
context:
space:
mode:
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>2011-12-08 21:26:07 -0500
committerFelipe Balbi <balbi@ti.com>2011-12-12 05:26:35 -0500
commit547965436d8dc8747b1931af954a178d30e86f6c (patch)
treea3fc648551f795146da5edea53ed1ec40696dcfe /drivers/usb/renesas_usbhs
parent37332ee0dfb017aea566047be945d6fd3531c713 (diff)
usb: renesas_usbhs: pop packet when urb dequeued
usbhsh_ureq_free() is not enough when urb dequeued. Without this patch, the driver can not recognize re-connected USB device after USB hub disconnected Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/renesas_usbhs')
-rw-r--r--drivers/usb/renesas_usbhs/mod_host.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/drivers/usb/renesas_usbhs/mod_host.c b/drivers/usb/renesas_usbhs/mod_host.c
index c39404783271..0dbbc6613c1f 100644
--- a/drivers/usb/renesas_usbhs/mod_host.c
+++ b/drivers/usb/renesas_usbhs/mod_host.c
@@ -800,8 +800,13 @@ static int usbhsh_urb_dequeue(struct usb_hcd *hcd, struct urb *urb, int status)
800 struct usbhsh_hpriv *hpriv = usbhsh_hcd_to_hpriv(hcd); 800 struct usbhsh_hpriv *hpriv = usbhsh_hcd_to_hpriv(hcd);
801 struct usbhsh_request *ureq = usbhsh_urb_to_ureq(urb); 801 struct usbhsh_request *ureq = usbhsh_urb_to_ureq(urb);
802 802
803 if (ureq) 803 if (ureq) {
804 usbhsh_ureq_free(hpriv, ureq); 804 struct usbhs_priv *priv = usbhsh_hpriv_to_priv(hpriv);
805 struct usbhs_pkt *pkt = &ureq->pkt;
806
807 usbhs_pkt_pop(pkt->pipe, pkt);
808 usbhsh_queue_done(priv, pkt);
809 }
805 810
806 return 0; 811 return 0;
807} 812}