Skip to content

Commit 0f8af03

Browse files
d-tatianinrafaeljw
authored andcommitted
ACPICA: exserial: don't forget to handle FFixedHW opregions for reading
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: acpica/acpica#998 Fixes: ee64b82 ("ACPICA: Add support for FFH Opregion special context data") Signed-off-by: Daniil Tatianin <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Rafael J. Wysocki <[email protected]>
1 parent 003802c commit 0f8af03

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

drivers/acpi/acpica/exserial.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,12 @@ acpi_ex_read_serial_bus(union acpi_operand_object *obj_desc,
201201
function = ACPI_READ;
202202
break;
203203

204+
case ACPI_ADR_SPACE_FIXED_HARDWARE:
205+
206+
buffer_length = ACPI_FFH_INPUT_BUFFER_SIZE;
207+
function = ACPI_READ;
208+
break;
209+
204210
default:
205211
return_ACPI_STATUS(AE_AML_INVALID_SPACE_ID);
206212
}

0 commit comments

Comments
 (0)