]> git.baikalelectronics.ru Git - kernel.git/commit
xhci: Add update_hub_device override for PCI xHCI hosts
authorMathias Nyman <mathias.nyman@linux.intel.com>
Mon, 16 Jan 2023 14:22:13 +0000 (16:22 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 24 Jan 2023 06:24:34 +0000 (07:24 +0100)
commitd131f61c962a24f0384889ac9be87ed436b0a731
tree278664088afaf2e7f97f1633d5f5f86c48e82b1f
parent31f0492093189115620b73735a6592b2d9a77079
xhci: Add update_hub_device override for PCI xHCI hosts

commit 76d8ee5c0683a7a040ccbe20edaee04433369a6c upstream.

Allow PCI hosts to check and tune roothub and port settings
before the hub is up and running.

This override is needed to turn off U1 and U2 LPM for some ports
based on per port ACPI _DSM, _UPC, or possibly vendor specific mmio
values for Intel xHC hosts.

Usb core calls the host update_hub_device once it creates a hub.

Entering U1 or U2 link power save state on ports with this limitation
will cause link to fail, turning the usb device unusable in that setup.

Cc: stable@vger.kernel.org
Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Link: https://lore.kernel.org/r/20230116142216.1141605-5-mathias.nyman@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/xhci-pci.c
drivers/usb/host/xhci.c
drivers/usb/host/xhci.h