]> git.hungrycats.org Git - linux/commit
[PATCH] USB: ohci-hcd PM fixes
authorDavid Brownell <david-b@pacbell.net>
Mon, 13 Oct 2003 09:21:38 +0000 (02:21 -0700)
committerGreg Kroah-Hartman <greg@kroah.com>
Mon, 13 Oct 2003 09:21:38 +0000 (02:21 -0700)
commit5c54993744e271000af4c4e35b97d8bc0b2574a3
tree1a80967eceb575b7fb51c99e7d9350933d0a1c6b
parent752d7202aae4d6526230374a90e54161f722d40a
[PATCH] USB: ohci-hcd PM fixes

This patch primarily fixes PM-related bugs in the OHCI driver.

It gets rid of some flags that duplicated state between usbcore
and the HCD.  The duplication wasn't correct, and wasn't tested
correctly ... this fixes both issues.  So now the driver avoids
writing to hardware when it's suspended (as required by older
PowerBook hardware) or halted, and treats all non-running states
the same (as required by all hardware).

This includes the last generic parts of a patch sent a while back
by Benjamin Herrenschmidt, which weren't at that time testable on a
x86 kernel because the generic PM code was in flux (and broken).
There may still be some PMAC-specific issues to resolve.

With this patch, and a device_resume() deadlock fix, I've seen
OHCI suspend/resume work on hardware it's not worked on since the
PM changes started to merge into the 2.6.0-test kernels.
drivers/usb/host/ohci-hcd.c
drivers/usb/host/ohci-hub.c
drivers/usb/host/ohci-pci.c
drivers/usb/host/ohci-q.c
drivers/usb/host/ohci.h