USB: Refactor hub_port_wait_reset.
authorSarah Sharp <sarah.a.sharp@linux.intel.com>
Tue, 11 Dec 2012 18:14:03 +0000 (10:14 -0800)
committerSarah Sharp <sarah.a.sharp@linux.intel.com>
Thu, 3 Jan 2013 22:10:38 +0000 (14:10 -0800)
commit470f0be8aa78034030d3e05580e85ba7d0e26da7
tree54fdaad6b458cfb1e3b9e3f85d0f4360894aa3f4
parentc2f60db740f2935a5e8a348298b590f2462e952f
USB: Refactor hub_port_wait_reset.

Refactor hub_port_wait_reset into a small loop to wait for the port
reset to be complete, and then a larger block to deal with the final
port status.  This patch should not change any current behavior.

Signed-off-by: Sarah Sharp <sarah.a.sharp@linux.intel.com>
Acked-by: Alan Stern <stern@rowland.harvard.edu>
drivers/usb/core/hub.c