diff options
author | Len Brown <len.brown@intel.com> | 2010-06-12 00:56:15 -0400 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2010-06-12 00:56:15 -0400 |
commit | d9a799d197da16fcfb1e872e82ee6cdf7fe8f7ab (patch) | |
tree | e4100a27d05d5fc9286a3bb8e7ebe5b8d9618e66 /drivers/acpi/acpica/hwvalid.c | |
parent | a48ecc771852158eb7b9ace242f0a6226a3907b7 (diff) | |
parent | b681f7d9ab4d697a214fa4428795790c3a937a89 (diff) |
Merge branch 'acpica-cherry-pick' into release
Diffstat (limited to 'drivers/acpi/acpica/hwvalid.c')
-rw-r--r-- | drivers/acpi/acpica/hwvalid.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/drivers/acpi/acpica/hwvalid.c b/drivers/acpi/acpica/hwvalid.c index c10d587c1641..e1d9c777b213 100644 --- a/drivers/acpi/acpica/hwvalid.c +++ b/drivers/acpi/acpica/hwvalid.c @@ -222,6 +222,12 @@ acpi_status acpi_hw_read_port(acpi_io_address address, u32 *value, u32 width) u32 one_byte; u32 i; + /* Truncate address to 16 bits if requested */ + + if (acpi_gbl_truncate_io_addresses) { + address &= ACPI_UINT16_MAX; + } + /* Validate the entire request and perform the I/O */ status = acpi_hw_validate_io_request(address, width); @@ -279,6 +285,12 @@ acpi_status acpi_hw_write_port(acpi_io_address address, u32 value, u32 width) acpi_status status; u32 i; + /* Truncate address to 16 bits if requested */ + + if (acpi_gbl_truncate_io_addresses) { + address &= ACPI_UINT16_MAX; + } + /* Validate the entire request and perform the I/O */ status = acpi_hw_validate_io_request(address, width); |