diff options
author | Vanshidhar Konda <vanshikonda@os.amperecomputing.com> | 2024-04-12 02:18:44 +0300 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2024-04-22 19:58:46 +0300 |
commit | f489c948028b69cea235d9c0de1cc10eeb26a172 (patch) | |
tree | c365fe59c641ff335cee4907edf8eccb4bd6916f /drivers/net/wireless/intel/iwlwifi/iwl-phy-db.c | |
parent | 05d92ee782eeb7b939bdd0189e6efcab9195bf95 (diff) | |
download | linux-f489c948028b69cea235d9c0de1cc10eeb26a172.tar.xz |
ACPI: CPPC: Fix access width used for PCC registers
commit 2f4a4d63a193 ("ACPI: CPPC: Use access_width over bit_width for system
memory accesses") modified cpc_read()/cpc_write() to use access_width to
read CPC registers.
However, for PCC registers the access width field in the ACPI register
macro specifies the PCC subspace ID. For non-zero PCC subspace ID it is
incorrectly treated as access width. This causes errors when reading
from PCC registers in the CPPC driver.
For PCC registers, base the size of read/write on the bit width field.
The debug message in cpc_read()/cpc_write() is updated to print relevant
information for the address space type used to read the register.
Fixes: 2f4a4d63a193 ("ACPI: CPPC: Use access_width over bit_width for system memory accesses")
Signed-off-by: Vanshidhar Konda <vanshikonda@os.amperecomputing.com>
Tested-by: Jarred White <jarredwhite@linux.microsoft.com>
Reviewed-by: Jarred White <jarredwhite@linux.microsoft.com>
Reviewed-by: Easwar Hariharan <eahariha@linux.microsoft.com>
Cc: 5.15+ <stable@vger.kernel.org> # 5.15+
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/net/wireless/intel/iwlwifi/iwl-phy-db.c')
0 files changed, 0 insertions, 0 deletions