ACPICA: exserial: don't forget to handle FFixedHW opregions for reading
[ Upstream commit 0f8af0356a45547683a216e4921006a3c6a6d922 ]
The initial commit that introduced support for FFixedHW operation
regions did add a special case in the AcpiExReadSerialBus If, but
forgot to actually handle it inside the switch, so add the missing case
to prevent reads from failing with AE_AML_INVALID_SPACE_ID.
Link: https://github.com/acpica/acpica/pull/998
Fixes: ee64b827a9
("ACPICA: Add support for FFH Opregion special context data")
Signed-off-by: Daniil Tatianin <d-tatianin@yandex-team.ru>
Link: https://patch.msgid.link/20250401184312.599962-1-d-tatianin@yandex-team.ru
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
f6941e72d3
commit
8b94e19ada
@@ -201,6 +201,12 @@ acpi_ex_read_serial_bus(union acpi_operand_object *obj_desc,
|
|||||||
function = ACPI_READ;
|
function = ACPI_READ;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case ACPI_ADR_SPACE_FIXED_HARDWARE:
|
||||||
|
|
||||||
|
buffer_length = ACPI_FFH_INPUT_BUFFER_SIZE;
|
||||||
|
function = ACPI_READ;
|
||||||
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
return_ACPI_STATUS(AE_AML_INVALID_SPACE_ID);
|
return_ACPI_STATUS(AE_AML_INVALID_SPACE_ID);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user