]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ACPI: CPPC: Fix _CPC register setting issue
authorLifeng Zheng <zhenglifeng1@huawei.com>
Wed, 13 Nov 2024 10:33:09 +0000 (18:33 +0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 13 Nov 2024 11:45:23 +0000 (12:45 +0100)
commit2388b266c9fcc7c9169ba85c7f9ebe325b7622d7
tree040febe0c3767099fcaf0367d9eae216430d6415
parent2d5404caa8c7bb5c4e0435f94b28834ae5456623
ACPI: CPPC: Fix _CPC register setting issue

Since commit 60949b7b8054 ("ACPI: CPPC: Fix MASK_VAL() usage"), _CPC
registers cannot be changed from 1 to 0.

It turns out that there is an extra OR after MASK_VAL_WRITE(), which
has already ORed prev_val with the register mask.

Remove the extra OR to fix the problem.

Fixes: 60949b7b8054 ("ACPI: CPPC: Fix MASK_VAL() usage")
Signed-off-by: Lifeng Zheng <zhenglifeng1@huawei.com>
Link: https://patch.msgid.link/20241113103309.761031-1-zhenglifeng1@huawei.com
[ rjw: Subject and changelog edits ]
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/cppc_acpi.c