diff options
author | Cliff Huang <cliff.huang@intel.com> | 2023-09-06 17:51:47 -0700 |
---|---|---|
committer | Felix Held <felix-coreboot@felixheld.de> | 2023-09-08 12:46:45 +0000 |
commit | cb362cf2bbce514aceb508c9ce82f5b9549c44b0 (patch) | |
tree | 436962080c58050c2ec55ad6bb383d4edec9ea17 /src | |
parent | 9796d4ce4f09785e2081faf7565c79d9e34d71d9 (diff) |
mb/google/rex: Fix ACPI MPTS method for non-5G board SKUs
MPTS method should only be generated for the board sku with 5G.
BUG=NA
TEST=Check kernel messages when going to S3. The following errors
should not be seen:
ACPI BIOS Error (bug):
Could not resolve symbol [\_SB.PCI0.RP06.RTD3._STA]
ACPI Error:
Aborting method \_SB.MPTS due to previous error (AE_NOT_FOUND)
ACPI Error:
Aborting method \_PTS due to previous error (AE_NOT_FOUND)
Signed-off-by: Cliff Huang <cliff.huang@intel.com>
Change-Id: I78f434c9049773cf5229d3a1f3934ae82d1fe46d
Reviewed-on: https://review.coreboot.org/c/coreboot/+/77690
Reviewed-by: Subrata Banik <subratabanik@google.com>
Reviewed-by: Eric Lai <eric_lai@quanta.corp-partner.google.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src')
-rw-r--r-- | src/mainboard/google/rex/mainboard.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mainboard/google/rex/mainboard.c b/src/mainboard/google/rex/mainboard.c index d59d3d49e3..619ca71927 100644 --- a/src/mainboard/google/rex/mainboard.c +++ b/src/mainboard/google/rex/mainboard.c @@ -103,7 +103,7 @@ static void mainboard_fill_ssdt(const struct device *dev) { const struct device *wwan = DEV_PTR(rp6_wwan); - if (wwan) { + if (is_dev_enabled(wwan)) { acpigen_write_scope("\\_SB"); acpigen_write_method_serialized("MPTS", 1); mainboard_generate_wwan_shutdown(wwan); |