]> git.baikalelectronics.ru Git - kernel.git/commit
USB: EHCI: keep better track of resuming ports
authorAlan Stern <stern@rowland.harvard.edu>
Thu, 1 Aug 2013 21:09:23 +0000 (17:09 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 1 Aug 2013 21:37:07 +0000 (05:37 +0800)
commitdfa995feaf8608f99b0fc031816fdcf077fab31f
tree410c70a681b1e3eaee9632f0f161c7f6113cd1f3
parent7fd3ad7f9a42bfb3d4e7c183eeabfcb135a85388
USB: EHCI: keep better track of resuming ports

The ehci-hcd driver isn't as careful as it should be about the way it
uses ehci->resuming_ports.  One of the omissions was fixed recently by
commit e4e0787df31 (USB: EHCI: Fix resume signalling on remote
wakeup), but there are other places that need attention:

When a port's suspend feature is explicitly cleared, the
corresponding bit in resuming_ports should be set and the core
should be notified about the port resume.

We don't need to clear a resuming_ports bit when a reset
completes.

Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/ehci-hub.c