[PATCH][Xenial] Fix can't disable USB port issue
AceLan Kao
acelan.kao at canonical.com
Fri Jun 2 08:56:28 UTC 2017
BugLink: http://bugs.launchpad.net/bugs/1695216
[Impact]
>From BIOS, there is front USB port disable function.
It is supposed the option in BIOS can disable USB port and due to AMD chip
limitation, it need OS’s cowork. Otherwise the USB disable function will
be invalid when resuming from S3 or reinsert USB device.
[Fix]
After checking with Windows, we found there are 2 bits that are default on
in Ubuntu is disabled in Windows. They are
#define PORT_WKOC_E (1<<22) /* wake on overcurrent (enable) */
#define PORT_WKCONN_E (1<<20) /* wake on connect (enable) */
So, this patch introduce a quirk to not setup the wakeup bits only for
AMD USB chips.
[Test]
Verified on the machine has this issue, and confirm this patch works.
Jiahau Chang (1):
xhci: AMD Promontory USB disable port support
drivers/usb/host/xhci-hub.c | 19 ++++++++++++++-----
drivers/usb/host/xhci-pci.c | 13 +++++++++++++
drivers/usb/host/xhci.h | 2 ++
3 files changed, 29 insertions(+), 5 deletions(-)
--
2.7.4
More information about the kernel-team
mailing list