From 1f250767ed952b2153c8d5aabe710638c8b5377d Mon Sep 17 00:00:00 2001 From: Matt DeVillier Date: Thu, 15 Feb 2024 14:58:14 -0600 Subject: soc/intel/common/block/sata: Fix scope for SATA ACPI device acpi_device_path() includes the device name, so we end up with: Scope (\_SB.PCI0.SATA) { Device (SATA) { ... Fix this by using acpi_device_scope() instead. TEST=build/boot purism librem_cml (Mini v2), dump ACPI and verify SATA device scope correct. Change-Id: Ibbc8890d93b22f0ecba4b3a9b0531994574b3d55 Signed-off-by: Matt DeVillier Reviewed-on: https://review.coreboot.org/c/coreboot/+/80554 Reviewed-by: Subrata Banik Reviewed-by: Sean Rhodes Tested-by: build bot (Jenkins) Reviewed-by: Nico Huber Reviewed-by: Felix Singer --- src/soc/intel/common/block/sata/sata.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/soc/intel/common/block/sata/sata.c') diff --git a/src/soc/intel/common/block/sata/sata.c b/src/soc/intel/common/block/sata/sata.c index 96c33ef0db..96b7390791 100644 --- a/src/soc/intel/common/block/sata/sata.c +++ b/src/soc/intel/common/block/sata/sata.c @@ -9,7 +9,7 @@ static void sata_acpi_fill_ssdt(const struct device *dev) { - const char *scope = acpi_device_path(dev); + const char *scope = acpi_device_scope(dev); if (!scope) return; -- cgit v1.2.3