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:
committed by
Jakub Czapiga
parent
15010cd81f
commit
ed3b688e76
@@ -476,8 +476,7 @@ void acpigen_write_mutex(const char *name, const uint8_t flags)
|
|||||||
{
|
{
|
||||||
/* MutexOp */
|
/* MutexOp */
|
||||||
acpigen_emit_ext_op(MUTEX_OP);
|
acpigen_emit_ext_op(MUTEX_OP);
|
||||||
/* NameString 4 chars only */
|
acpigen_emit_namestring(name);
|
||||||
acpigen_emit_simple_namestring(name);
|
|
||||||
acpigen_emit_byte(flags);
|
acpigen_emit_byte(flags);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -485,8 +484,7 @@ void acpigen_write_acquire(const char *name, const uint16_t val)
|
|||||||
{
|
{
|
||||||
/* AcquireOp */
|
/* AcquireOp */
|
||||||
acpigen_emit_ext_op(ACQUIRE_OP);
|
acpigen_emit_ext_op(ACQUIRE_OP);
|
||||||
/* NameString 4 chars only */
|
acpigen_emit_namestring(name);
|
||||||
acpigen_emit_simple_namestring(name);
|
|
||||||
acpigen_emit_word(val);
|
acpigen_emit_word(val);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -494,8 +492,7 @@ void acpigen_write_release(const char *name)
|
|||||||
{
|
{
|
||||||
/* ReleaseOp */
|
/* ReleaseOp */
|
||||||
acpigen_emit_ext_op(RELEASE_OP);
|
acpigen_emit_ext_op(RELEASE_OP);
|
||||||
/* NameString 4 chars only */
|
acpigen_emit_namestring(name);
|
||||||
acpigen_emit_simple_namestring(name);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void acpigen_write_field_length(uint32_t len)
|
static void acpigen_write_field_length(uint32_t len)
|
||||||
|
Reference in New Issue
Block a user