]> err.no Git - linux-2.6/commitdiff
USB: allow both root-hub interrupts and polling
authorAlan Stern <stern@rowland.harvard.edu>
Mon, 25 Sep 2006 19:41:12 +0000 (15:41 -0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 28 Sep 2006 22:36:45 +0000 (15:36 -0700)
Originally I didn't think any host controller driver would ever use
interrupts and polling at the same time, but it turns out ohci-hcd wants
to do exactly that.  This patch (as788) makes it possible.

Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/core/hcd.c

index 0d5cbf254e5e4880ad39b83f4a3d4f28215c9812..37f9f5e7425d1b5e1a518302fa36cad686989c25 100644 (file)
@@ -836,8 +836,7 @@ void usb_enable_root_hub_irq (struct usb_bus *bus)
        struct usb_hcd *hcd;
 
        hcd = container_of (bus, struct usb_hcd, self);
-       if (hcd->driver->hub_irq_enable && !hcd->poll_rh &&
-                       hcd->state != HC_STATE_HALT)
+       if (hcd->driver->hub_irq_enable && hcd->state != HC_STATE_HALT)
                hcd->driver->hub_irq_enable (hcd);
 }