From ed3b688e76b9ec76cfee2dec7f0e3f56ad0e0f41 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Anikiel?= Date: Fri, 13 Oct 2023 11:24:19 +0000 Subject: [PATCH] acpi/acpigen: Allow general namestring in write mutex functions MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Reviewed-on: https://review.coreboot.org/c/coreboot/+/78349 Tested-by: build bot (Jenkins) Reviewed-by: Tim Wawrzynczak --- src/acpi/acpigen.c | 9 +++------ 1 file 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)