summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatt DeVillier <matt.devillier@gmail.com>2024-02-15 14:58:14 -0600
committerFelix Singer <service+coreboot-gerrit@felixsinger.de>2024-02-18 02:28:05 +0000
commit1f250767ed952b2153c8d5aabe710638c8b5377d (patch)
tree90c7a229ae9b795c91b9b02dafb6f09967c2d9c6
parente623845df64b28d2c809e40c0703d18d6bc246c4 (diff)
downloadcoreboot-1f250767ed952b2153c8d5aabe710638c8b5377d.tar.gz
coreboot-1f250767ed952b2153c8d5aabe710638c8b5377d.tar.bz2
coreboot-1f250767ed952b2153c8d5aabe710638c8b5377d.zip
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 <matt.devillier@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/80554 Reviewed-by: Subrata Banik <subratabanik@google.com> Reviewed-by: Sean Rhodes <sean@starlabs.systems> Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Nico Huber <nico.h@gmx.de> Reviewed-by: Felix Singer <service+coreboot-gerrit@felixsinger.de>
-rw-r--r--src/soc/intel/common/block/sata/sata.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/soc/intel/common/block/sata/sata.c b/src/soc/intel/common/block/sata/sata.c
index 96c33ef0dbd4..96b7390791cd 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;