USB: improved error handling in usb_port_suspend()
authorOliver Neukum <oliver@neukum.org>
Mon, 19 Oct 2009 11:19:41 +0000 (13:19 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 11 Dec 2009 19:55:17 +0000 (11:55 -0800)
commit0c487206fe925ef370e1fc092003efb74ad57410
treed01c998a7f54fed5d3cfb8ab4cdb1e9284cd1583
parent54ab2b02ef6a454b4cca969f546d0dd43fec7308
USB: improved error handling in usb_port_suspend()

usb: better error handling in usb_port_suspend

- disable remote wakeup only if it was enabled
- refuse to autosuspend if remote wakeup fails to be enabled

Signed-off-by: Oliver Neukum <oliver@neukum.org>
Cc: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/core/hub.c