On Wed, 2012-04-11 at 15:12 -0400, Alan Stern wrote: > If so, setting the value back to 0 before suspending (or never setting > it to 1 in the first place) might be important. You can test this > easily enough. In drivers/usb/host/ehci-pci.c:ehci_pci_suspend(), add > a line saying > > ehci_writel(ehci, 0, &ehci->regs->configured_flag); > > just before the spin_lock_irqrestore. This will invalidate the > driver's criterion for determining whether or not the controller's > state got messed up during the suspend; we can worry about that later. I just tried the above, and it made no difference. Note, I don't even get to suspend. It locks up in suspend, so I haven't even tried a resume yet. > > > There are other differences, at the PCI level, that might also be > significant. When the driver is not present, the PCI core calls > pci_disable_enabled_device. But when the driver is loaded, instead > it calls pci_disable_device and pci_prepare_to_sleep. > > You can try getting rid of the call to pci_prepare_to_sleep in > drivers/usb/core/hcd-pci.c:hcd_pci_suspend_noirq. This will prevent > the controller from being put into D3hot and might interfere with > wakeup detection. > What do I do with the retval? -EIO, 0, or other? -- Steve > I don't know how sigificant the difference is between > pci_disable_device and pci_disable_enabled_device. Probably not very, > since all it involves is whether or not to disable bus-mastering on the > controller. > > Alan Stern _______________________________________________ linux-pm mailing list linux-pm@xxxxxxxxxxxxxxxxxxxxxxxxxx https://lists.linuxfoundation.org/mailman/listinfo/linux-pm