[PATCH 2/2] USB: UHCI: report non-PME wakeup signalling for Intel hardware

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The UHCI controllers in Intel chipsets rely on a platform-specific
non-PME mechanism for wakeup signalling.  They can generate wakeup
signals even though they don't support PME.

We need to let the USB core know this so that it will enable runtime
suspend for UHCI controllers.

Signed-off-by: Alan Stern <stern@xxxxxxxxxxxxxxxxxxx>
CC: <stable@xxxxxxxxxxxxxxx>

---

Greg:

This patch is somewhat independent of the 1/2 patch I sent to Bjorn.  
Still, it will help to keep them together.  Is it okay to have him
merge both of them through his tree?

Alan Stern


[as1815]


 drivers/usb/host/uhci-pci.c |    4 ++++
 1 file changed, 4 insertions(+)

Index: usb-4.x/drivers/usb/host/uhci-pci.c
===================================================================
--- usb-4.x.orig/drivers/usb/host/uhci-pci.c
+++ usb-4.x/drivers/usb/host/uhci-pci.c
@@ -129,6 +129,10 @@ static int uhci_pci_init(struct usb_hcd
 	if (to_pci_dev(uhci_dev(uhci))->vendor == PCI_VENDOR_ID_HP)
 		uhci->wait_for_hp = 1;
 
+	/* Intel controllers use non-PME wakeup signalling */
+	if (to_pci_dev(uhci_dev(uhci))->vendor == PCI_VENDOR_ID_INTEL)
+		device_set_run_wake(uhci_dev(uhci), 1);
+
 	/* Set up pointers to PCI-specific functions */
 	uhci->reset_hc = uhci_pci_reset_hc;
 	uhci->check_and_reset_hc = uhci_pci_check_and_reset_hc;

--
To unsubscribe from this list: send the line "unsubscribe linux-pci" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [DMA Engine]     [Linux Coverity]     [Linux USB]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Greybus]

  Powered by Linux