diff options
Diffstat (limited to 'drivers/acpi/acpica/exregion.c')
-rw-r--r-- | drivers/acpi/acpica/exregion.c | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/drivers/acpi/acpica/exregion.c b/drivers/acpi/acpica/exregion.c index a8703cc20ad1..531000fc77d2 100644 --- a/drivers/acpi/acpica/exregion.c +++ b/drivers/acpi/acpica/exregion.c | |||
@@ -491,8 +491,10 @@ acpi_ex_data_table_space_handler(u32 function, | |||
491 | { | 491 | { |
492 | ACPI_FUNCTION_TRACE(ex_data_table_space_handler); | 492 | ACPI_FUNCTION_TRACE(ex_data_table_space_handler); |
493 | 493 | ||
494 | /* Perform the memory read or write */ | 494 | /* |
495 | 495 | * Perform the memory read or write. The bit_width was already | |
496 | * validated. | ||
497 | */ | ||
496 | switch (function) { | 498 | switch (function) { |
497 | case ACPI_READ: | 499 | case ACPI_READ: |
498 | 500 | ||
@@ -502,9 +504,14 @@ acpi_ex_data_table_space_handler(u32 function, | |||
502 | break; | 504 | break; |
503 | 505 | ||
504 | case ACPI_WRITE: | 506 | case ACPI_WRITE: |
507 | |||
508 | ACPI_MEMCPY(ACPI_PHYSADDR_TO_PTR(address), | ||
509 | ACPI_CAST_PTR(char, value), ACPI_DIV_8(bit_width)); | ||
510 | break; | ||
511 | |||
505 | default: | 512 | default: |
506 | 513 | ||
507 | return_ACPI_STATUS(AE_SUPPORT); | 514 | return_ACPI_STATUS(AE_BAD_PARAMETER); |
508 | } | 515 | } |
509 | 516 | ||
510 | return_ACPI_STATUS(AE_OK); | 517 | return_ACPI_STATUS(AE_OK); |