Re: ehci_hcd causes box to resume immediately after suspend to RAM

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

 



On Sun, 3 Jun 2007, Rafael J. Wysocki wrote:

> Hi,
> 
> One of my test boxes suspends to RAM just fine except that if ehci_hcd is
> loaded before the suspend, the box resumes immediately after going to sleep.

Evidently the hardware thinks a wakeup event has occurred.  It is 
possible to disable remote wakeup via sysfs, but it would be more 
interesting to find out the real reason for the wakeup.

I don't know how to go about doing that, however.  It might be some 
interaction at the ACPI level, and it might involve the PCI PME# 
signal.

Do you have any USB devices attached when you suspend?

You can try using the patch below to see what happens when you manually
suspend the controller.  It enables PCI devices to respond to the
legacy power/state attribute.  You should look at what "lspci -vv" says
about the controller's power management signals, both before and after
suspending the PCI device entry.  Maybe also see what ACPI reports.

Alan Stern


Index: usb-2.6/drivers/base/power/sysfs.c
===================================================================
--- usb-2.6.orig/drivers/base/power/sysfs.c
+++ usb-2.6/drivers/base/power/sysfs.c
@@ -45,10 +45,6 @@ static ssize_t state_store(struct device
 	pm_message_t state;
 	int error = -EINVAL;
 
-	/* disallow incomplete suspend sequences */
-	if (dev->bus && (dev->bus->suspend_late || dev->bus->resume_early))
-		return error;
-
 	state.event = PM_EVENT_SUSPEND;
 	/* Older apps expected to write "3" here - confused with PCI D3 */
 	if ((n == 1) && !strcmp(buf, "3"))

_______________________________________________
linux-pm mailing list
linux-pm@xxxxxxxxxxxxxxxxxxxxxxxxxx
https://lists.linux-foundation.org/mailman/listinfo/linux-pm

[Index of Archives]     [Linux ACPI]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [CPU Freq]     [Kernel Newbies]     [Fedora Kernel]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux