diff options
author | Paweł Anikiel <panikiel@google.com> | 2023-10-13 11:24:19 +0000 |
---|---|---|
committer | Jakub Czapiga <czapiga@google.com> | 2023-10-16 07:59:21 +0000 |
commit | ed3b688e76b9ec76cfee2dec7f0e3f56ad0e0f41 (patch) | |
tree | 2e31b65957a70eab44ba44c263ea5fa2c4d4127d | |
parent | 15010cd81ff0070e53383769119aab6c66702409 (diff) |
acpi/acpigen: Allow general namestring in write mutex functions
BUG=b:301150499
TEST=Compiled and tested on google/redrix - PERST# goes low when wwan
modem goes into runtime suspend.
Change-Id: Ib09d5a6091cedfce24da49390cf980414f97a2c9
Signed-off-by: Paweł Anikiel <panikiel@google.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/78349
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Tim Wawrzynczak <inforichland@gmail.com>
-rw-r--r-- | src/acpi/acpigen.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/acpi/acpigen.c b/src/acpi/acpigen.c index 7ca4f021dd..ea3ef200a3 100644 --- a/src/acpi/acpigen.c +++ b/src/acpi/acpigen.c @@ -476,8 +476,7 @@ void acpigen_write_mutex(const char *name, const uint8_t flags) { /* MutexOp */ acpigen_emit_ext_op(MUTEX_OP); - /* NameString 4 chars only */ - acpigen_emit_simple_namestring(name); + acpigen_emit_namestring(name); acpigen_emit_byte(flags); } @@ -485,8 +484,7 @@ void acpigen_write_acquire(const char *name, const uint16_t val) { /* AcquireOp */ acpigen_emit_ext_op(ACQUIRE_OP); - /* NameString 4 chars only */ - acpigen_emit_simple_namestring(name); + acpigen_emit_namestring(name); acpigen_emit_word(val); } @@ -494,8 +492,7 @@ void acpigen_write_release(const char *name) { /* ReleaseOp */ acpigen_emit_ext_op(RELEASE_OP); - /* NameString 4 chars only */ - acpigen_emit_simple_namestring(name); + acpigen_emit_namestring(name); } static void acpigen_write_field_length(uint32_t len) |