]> git.baikalelectronics.ru Git - kernel.git/commit
USB: Refactor hub remote wake handling.
authorSarah Sharp <sarah.a.sharp@linux.intel.com>
Tue, 24 Jan 2012 21:53:18 +0000 (13:53 -0800)
committerSarah Sharp <sarah.a.sharp@linux.intel.com>
Tue, 14 Feb 2012 20:12:25 +0000 (12:12 -0800)
commit423f52654548ca241954bc1fdca0872b50ca6cc7
treef1cc2f85151f14dcc70e73b94c8ef8e364dc1276
parentbcf2019793bc03f02ac49ba847350513229649f2
USB: Refactor hub remote wake handling.

Refactor the code to check for a remote wakeup on a port into its own
function.  Keep the behavior the same, and set connect_change in
hub_events if the device disconnected on resume.  Cleanup references to
hdev->children[i-1] to use a common variable.

Signed-off-by: Sarah Sharp <sarah.a.sharp@linux.intel.com>
drivers/usb/core/hub.c