wusb: return -ENOTCONN when resetting a port with no connected device
authorDavid Vrabel <david.vrabel@csr.com>
Tue, 6 Jan 2009 17:58:02 +0000 (17:58 +0000)
committerDavid Vrabel <david.vrabel@csr.com>
Tue, 6 Jan 2009 17:58:02 +0000 (17:58 +0000)
commit9a9b1d17ba59b78e4bae67f7a7cf546986a42e7d
tree319ec314e8b92788ab98bacd66f028b961210ece
parent2226b1c219a18804bc40e32a5d53c287a6c925d9
wusb: return -ENOTCONN when resetting a port with no connected device

If reading the device descriptor fails during hub_port_init() fails,
then the port is disabled, disconnecting the device.  The port is then
reset at the start of the next init attempt but there is no device to
reset.

Signed-off-by: David Vrabel <david.vrabel@csr.com>
drivers/usb/wusbcore/devconnect.c
drivers/usb/wusbcore/rh.c