public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] usb/core: skip unnecessary line IRQ request for USB3
@ 2012-03-15  4:48 Alex Shi
  2012-03-15  6:21 ` Xu, Andiry
  2012-03-15 14:29 ` Alan Stern
  0 siblings, 2 replies; 6+ messages in thread
From: Alex Shi @ 2012-03-15  4:48 UTC (permalink / raw)
  To: stern, gregkh; +Cc: sarah.a.sharp, linux-kernel@vger.kernel.org, linux-usb


USB3 requests line IRQ here but will disable it
in later driver->start function and try MSI first.

xhci_hcd 0000:02:00.0: irq 18, io mem 0xfe500000
xhci_hcd 0000:02:00.0: irq 45 for MSI/MSI-X
xhci_hcd 0000:02:00.0: irq 46 for MSI/MSI-X

So it is better to remove the redundant request here. And
save a little time in booting.

Signed-off-by: Alex Shi <alex.shi@intel.com>
---
 drivers/usb/core/hcd.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/drivers/usb/core/hcd.c b/drivers/usb/core/hcd.c
index e128232..5b09825 100644
--- a/drivers/usb/core/hcd.c
+++ b/drivers/usb/core/hcd.c
@@ -2450,7 +2450,8 @@ int usb_add_hcd(struct usb_hcd *hcd,
 	/* enable irqs just before we start the controller,
 	 * if the BIOS provides legacy PCI irqs.
 	 */
-	if (usb_hcd_is_primary_hcd(hcd) && irqnum) {
+	if (usb_hcd_is_primary_hcd(hcd) && irqnum
+		&& (hcd->driver->flags & HCD_MASK) != HCD_USB3) {
 		retval = usb_hcd_request_irqs(hcd, irqnum, irqflags);
 		if (retval)
 			goto err_request_irq;
-- 
1.7.5.1




^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2012-03-16  8:06 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-15  4:48 [PATCH] usb/core: skip unnecessary line IRQ request for USB3 Alex Shi
2012-03-15  6:21 ` Xu, Andiry
2012-03-15  6:37   ` Alex Shi
2012-03-15 14:29 ` Alan Stern
2012-03-15 14:39   ` Alex Shi
2012-03-16  8:05     ` Alex Shi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox