]> git.hungrycats.org Git - linux/commit
[PATCH] USB: Fix USB suspend in 2.6.0-test6
authorPaul Mackerras <paulus@samba.org>
Thu, 9 Oct 2003 03:30:27 +0000 (20:30 -0700)
committerPaul Mackerras <paulus@samba.org>
Thu, 9 Oct 2003 03:30:27 +0000 (20:30 -0700)
commitd5b16693b54cccbbe19a1607da5a655b335a2781
tree733b9f566c1c56889a2ed286f8db062a2a0d0f7c
parentadaf12d85676397e5b1e73d3940ee79acfc36692
[PATCH] USB: Fix USB suspend in 2.6.0-test6

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.
drivers/usb/core/hcd-pci.c