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>
This commit is contained in:
Paweł Anikiel 2023-10-13 11:24:19 +00:00 committed by Jakub Czapiga
parent 15010cd81f
commit ed3b688e76
1 changed files with 3 additions and 6 deletions

View File

@ -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)