usb: usb3 ports do not support FEAT_C_ENABLE
authorDan Williams <dan.j.williams@intel.com>
Wed, 21 May 2014 01:09:10 +0000 (18:09 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 27 May 2014 23:51:50 +0000 (16:51 -0700)
commit6908058469e3253637894d1cb3e2581870c77e1d
tree8b043aabf99f1aac87cd8a8b7dec3295f5ca7c1f
parent7c604079bdf729e7b8c4b0e67c688b5081d1863d
usb: usb3 ports do not support FEAT_C_ENABLE

The port pm_runtime implementation unconditionally clears FEAT_C_ENABLE
after clearing PORT_POWER, but the bit is reserved on usb3 hub ports.
We expect khubd to be prevented from running because the port state is
not RPM_ACTIVE, so we need to clear any errors for usb2 ports.

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