• David Brownell's avatar
    [PATCH] USB: ohci-hcd PM fixes · 5c549937
    David Brownell authored
    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.
    5c549937
ohci-hcd.c 19.3 KB