coreboot/src
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 acpigen: Add acpigen_notify 2020-07-07 20:31:22 +00:00
arch arch/x86: Drop CBMEM_TOP_BACKUP 2020-07-11 14:48:25 +00:00
commonlib lib/coreboot_table: Add Intel FSP version to coreboot table 2020-07-04 11:20:08 +00:00
console console: Update for vboot before bootblock 2020-06-15 22:07:12 +00:00
cpu arch/x86: Drop CBMEM_TOP_BACKUP 2020-07-11 14:48:25 +00:00
device device/xhci: Add helper method to iterate over xhci_supported_protocl 2020-07-12 17:01:24 +00:00
drivers drivers/usb/pci_xhci: Don't return ACPI names for missing ports 2020-07-12 17:02:57 +00:00
ec ec/google: Add function ec_fill_dptf_helpers() 2020-07-07 20:31:30 +00:00
include device/xhci: Add helper method to iterate over xhci_supported_protocl 2020-07-12 17:01:24 +00:00
lib src/lib: Remove redundant code in imd.c 2020-07-11 14:10:19 +00:00
mainboard haswell: Move some MRC settings to devicetree 2020-07-12 11:16:12 +00:00
northbridge nb/intel/haswell/romstage.c: Align pei_data initializers 2020-07-12 11:16:37 +00:00
security security/vboot/secdata_tpm.c: Drop dead code 2020-07-09 21:29:27 +00:00
soc arch/x86: Drop CBMEM_TOP_BACKUP 2020-07-11 14:48:25 +00:00
southbridge sb/intel/lynxpoint: Add PCH platform type function 2020-07-12 10:08:54 +00:00
superio superio/winbond/w83977tf: Add suspend related fields 2020-06-16 20:17:26 +00:00
vendorcode vc/amd/pi/00660F01: Drop dead code 2020-07-10 23:58:12 +00:00
Kconfig arch/x86: Remove RELOCATABLE_RAMSTAGE 2020-07-06 06:17:47 +00:00