浏览代码

USB: allow both root-hub interrupts and polling

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>
Alan Stern 18 年之前
父节点
当前提交
d19ac7da72
共有 1 个文件被更改,包括 1 次插入2 次删除
  1. 1 2
      drivers/usb/core/hcd.c

+ 1 - 2
drivers/usb/core/hcd.c

@@ -836,8 +836,7 @@ void usb_enable_root_hub_irq (struct usb_bus *bus)
 	struct usb_hcd *hcd;
 	struct usb_hcd *hcd;
 
 
 	hcd = container_of (bus, struct usb_hcd, self);
 	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);
 		hcd->driver->hub_irq_enable (hcd);
 }
 }