In drivers/usb/core/hcd-pci.c, the code forgets to set hcd->state to USB_STATE_SUSPENDED on suspend. The effect is that on resume, the code refuses to wake the HCD up, and instead prints a message saying the interface hasn't been suspended.
The patch below fixes this. It is against 2.6.0-test6. With this patch I can suspend and resume my Apple PowerBook G4, and the USB works after resuming. Please apply. Thanks, Paul. diff -urN linux-2.5/drivers/usb/core/hcd-pci.c pmac-2.5/drivers/usb/core/hcd-pci.c --- linux-2.5/drivers/usb/core/hcd-pci.c 2003-09-26 22:50:32.000000000 +1000 +++ pmac-2.5/drivers/usb/core/hcd-pci.c 2003-10-02 17:42:26.000000000 +1000 @@ -295,6 +295,8 @@ if (retval) dev_dbg (hcd->controller, "suspend fail, retval %d\n", retval); + else + hcd->state = USB_STATE_SUSPENDED; } pci_set_power_state (dev, state); ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ [EMAIL PROTECTED] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel