Thread (21 messages) 21 messages, 3 authors, 2013-06-25
STALE4744d

[PATCH v2 1/4] USB: HCD: support giveback of URB in tasklet context

From: Ming Lei <hidden>
Date: 2013-06-24 11:49:42

On Mon, Jun 24, 2013 at 5:42 PM, Ming Lei [off-list ref] wrote:
+
+static void init_giveback_urb_bh(struct usb_hcd *hcd)
+{
+       if (!hcd_giveback_urb_in_bh(hcd))
+               return;
Sorry, the above check isn't needed, and the below check isn't
needed too. I will fix it in V3.
+
+       __init_giveback_urb_bh(&hcd->high_prio_bh);
+       __init_giveback_urb_bh(&hcd->low_prio_bh);
+}
+
+static void exit_giveback_urb_bh(struct usb_hcd *hcd)
+{
+       if (!hcd_giveback_urb_in_bh(hcd))
+               return;
+
+       /*
+        * tasklet_kill() isn't needed here because:
+        * - driver's disconnec() called from usb_disconnect() should
+        *   make sure its URBs are completed during the disconnect()
+        *   callback
+        *
+        * - it is too late to run complete() here since driver may have
+        *   been removed already now
+        *
+        * Using tasklet to run URB's complete() doesn't change this
+        * behavior of usbcore.
+        */
+}
+

Thanks,
--
Ming Lei
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help