usb: don't clear FEAT_C_ENABLE on usb_port_runtime_resume failure
authorDan Williams <dan.j.williams@intel.com>
Wed, 21 May 2014 01:09:03 +0000 (18:09 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 27 May 2014 23:51:50 +0000 (16:51 -0700)
commit7c604079bdf729e7b8c4b0e67c688b5081d1863d
treeed6bef25fc148e6ebfc596d1af78d1dbee494c72
parent7ad3c47088f9faec463f5226e5e968a5c3b0e593
usb: don't clear FEAT_C_ENABLE on usb_port_runtime_resume failure

Three reasons:
1/ It's an invalid operation on usb3 ports
2/ There's no guarantee of when / if a usb2 port has entered an error
   state relative to PORT_POWER request
3/ The port is active / powered at this point, so khubd will clear it as
   a matter of course

Acked-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/core/port.c