]> git.baikalelectronics.ru Git - kernel.git/commit
USB: Prepare for refactoring by adding extra udev checks.
authorSarah Sharp <sarah.a.sharp@linux.intel.com>
Tue, 4 Dec 2012 23:27:50 +0000 (15:27 -0800)
committerSarah Sharp <sarah.a.sharp@linux.intel.com>
Thu, 3 Jan 2013 22:10:32 +0000 (14:10 -0800)
commit5b28bfe9a30d589bef49624529699b4f2f582a0d
treef350a0a9da069bb165727b2a80b13d049dea4183
parent90afeb438cf8a0afdd18e04e05e143173143bcd4
USB: Prepare for refactoring by adding extra udev checks.

The next patch will refactor the hub port code to rip out the recursive
call to hub_port_reset on a failed hot reset.  In preparation for that,
make sure all code paths can deal with being called with a NULL udev.
The usb_device will not be valid if warm reset was issued because a port
transitioned to the Inactive or Compliance Mode on a device connect.

This patch should have no effect on 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