]> git.baikalelectronics.ru Git - kernel.git/commit
ACPICA: Hardware: Remove bit_offset masking support
authorLv Zheng <lv.zheng@intel.com>
Wed, 28 Dec 2016 07:28:14 +0000 (15:28 +0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 2 Jan 2017 22:18:35 +0000 (23:18 +0100)
commitdeb2893d968ad21e88a9849c58acaaa8fd8856c0
treed05f9d2486f61ad8e8a5667d38329ca08cf5f570
parent34bf899b306a96f966d2c783e50e699c00e51cf9
ACPICA: Hardware: Remove bit_offset masking support

ACPICA commit bc7c5291865e099ce01f345d0265f0eba6997e23

This linuxized ACPICA commit is a back port result of the following
Linux commit:

  Commit 7992fd2f47a022d9578306f8d59c6e265ebcd0e2
  Subject: ACPICA: ACPI 2.0, Hardware: Add access_width/bit_offset
           support in acpi_hw_read()

The commit was in ACPICA and Linux upstream, after reversion and
re-integration, it is designed not to do bit_offset masking (bit_offset is
only used to determine the boundary of the register) inside of the ACPICA
APIs, but let the callers to do that as:

 1. Register can have different masking schemes (W1C, W0C);
 2. Normally a mask value will be provided for region format GAS.

So actually the callers are the only ones having the knowledge of masking
the register values. Suggested by Bob Moore, Fixed by Lv Zheng.

Link: https://github.com/acpica/acpica/commit/bc7c5291
Signed-off-by: Lv Zheng <lv.zheng@intel.com>
Signed-off-by: Bob Moore <robert.moore@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/acpica/hwregs.c