From: Andiry Xu Date: Thu, 14 Oct 2010 14:22:48 +0000 (-0700) Subject: USB: xHCI: change xhci_reset_device() to allocate new device X-Git-Tag: v2.6.37-rc1~154^2~22 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f0615c45ce5feb141c1172480c5198d4b8d25436;p=pandora-kernel.git 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 Signed-off-by: Sarah Sharp Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed