]> git.baikalelectronics.ru Git - kernel.git/commit
USB: xHCI: change xhci_reset_device() to allocate new device
authorAndiry Xu <andiry.xu@amd.com>
Thu, 14 Oct 2010 14:22:48 +0000 (07:22 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 22 Oct 2010 17:22:11 +0000 (10:22 -0700)
commit9ac5474c9666582645d2ff83399ac7a91c2427ef
tree9c16dbd56591297d94286f7f3e12b80d07ec28a8
parente6e8254964ae3d53ed4b453e532ebafa24c211ed
USB: xHCI: change xhci_reset_device() to allocate new device

Rename xhci_reset_device() to xhci_discover_or_reset_device().
If xhci_discover_or_reset_device() is called to reset a device which does
not exist or does not match the udev, it calls xhci_alloc_dev() to
re-allocate the device.

This would prevent the reset device failure, possibly due to the xHC restore
error during S3/S4 resume.

Signed-off-by: Andiry Xu <andiry.xu@amd.com>
Signed-off-by: Sarah Sharp <sarah.a.sharp@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/host/xhci-pci.c
drivers/usb/host/xhci.c
drivers/usb/host/xhci.h