diff options
author | Alan Stern <stern@rowland.harvard.edu> | 2010-01-08 11:18:20 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-01-28 15:20:37 -0800 |
commit | 4fbebe26d7a5eed6c1900bf2142b68af7df38462 (patch) | |
tree | d4da3dc295c34dbe65e4ffd9724ea05d13943eb2 /drivers/usb/host/ohci-s3c2410.c | |
parent | 5b3363926eed5839fdc84055d20f9153980d4b5f (diff) |
USB: EHCI & UHCI: fix race between root-hub suspend and port resume
commit cec3a53c7fe794237b582e8e77fc0e48465e65ee upstream.
This patch (as1321) fixes a problem with EHCI and UHCI root-hub
suspends: If the suspend occurs while a port is trying to resume, the
resume doesn't finish and simply gets lost. When remote wakeup is
enabled, this is undesirable behavior.
The patch checks first to see if any port resumes are in progress, and
if they are then it fails the root-hub suspend with -EBUSY.
Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/host/ohci-s3c2410.c')
0 files changed, 0 insertions, 0 deletions