coreboot-kgpe-d16/src/drivers/usb
Raul E Rangel d8bc5c127a drivers/usb/pci_xhci: Don't return ACPI names for missing ports
We only want to return an ACPI name for a USB port if the controller
physically has the port. This has the desired side effect of making the
usb_acpi driver skip generating an ACPI node for a device which has
no port. This prevents writing an invalid SSDT table which the OS then
complains about.

BUG=b:154756391, b:158096224
TEST=Boot picasso trembyle and verify HS05, HS06 and SS05 are no longer
generated. Also checked the logs and saw the devices being ignored.
\_SB.PCI0.LPCB.EC0.CREC.TUN0: Cros EC I2C Tunnel at GENERIC: 0.0
\_SB.PCI0.LPCB.EC0.CREC.MSTH: Cros EC I2C Tunnel at GENERIC: 1.0
\_SB.PCI0.LPCB.EC0.CREC.ECA0: Cros EC audio codec at GENERIC: 0.0
\_SB.PCI0.PBRA.XHC0.RHUB.HS01: Left Type-C Port at USB2 port 0
\_SB.PCI0.PBRA.XHC0.RHUB.HS02: Left Type-A Port at USB2 port 1
\_SB.PCI0.PBRA.XHC0.RHUB.HS03: Right Type-A Port at USB2 port 2
\_SB.PCI0.PBRA.XHC0.RHUB.HS04: Right Type-C Port at USB2 port 3
xhci_acpi_name: USB2 port 4 does not exist on xHC PCI: 03:00.3
xhci_acpi_name: USB2 port 5 does not exist on xHC PCI: 03:00.3
\_SB.PCI0.PBRA.XHC0.RHUB.SS01: Left Type-C Port at USB3 port 0
\_SB.PCI0.PBRA.XHC0.RHUB.SS02: Left Type-A Port at USB3 port 1
\_SB.PCI0.PBRA.XHC0.RHUB.SS03: Right Type-A Port at USB3 port 2
\_SB.PCI0.PBRA.XHC0.RHUB.SS04: Right Type-C Port at USB3 port 3
xhci_acpi_name: USB3 port 4 does not exist on xHC PCI: 03:00.3

Signed-off-by: Raul E Rangel <rrangel@chromium.org>
Change-Id: Ia645380bea74f39fd94e2f9cbca3fcd4d18a878e
Reviewed-on: https://review.coreboot.org/c/coreboot/+/43354
Reviewed-by: Furquan Shaikh <furquan@google.com>
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Reviewed-by: Rob Barnes <robbarnes@google.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
2020-07-12 17:02:57 +00:00
..
acpi acpi_device: Replace polarity with active_low in acpi_gpio for GpioIo 2020-07-02 19:12:46 +00:00
pci_xhci drivers/usb/pci_xhci: Don't return ACPI names for missing ports 2020-07-12 17:02:57 +00:00
Kconfig usbdebug: Make the EHCI debug console work in the bootblock 2019-01-06 14:05:20 +00:00
Makefile.inc drivers/usb: Enable EHCI debug during verstage 2019-10-16 08:29:30 +00:00
console.c treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
ehci.h treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
ehci_debug.c drivers/usb/ehci_debug.c: Drop preprocessor usage 2020-07-11 22:26:42 +00:00
ehci_debug.h treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
gadget.c treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
pci_ehci.c src: Remove unused '#include <stddef.h>' 2020-05-13 08:48:50 +00:00
usb_ch9.h treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00