Commit 3c67a829 authored by Mike Galbraith's avatar Mike Galbraith Committed by Rafael J. Wysocki

cpufreq: pcc-cpufreq: Fix doorbell.access_width

Commit 920de6eb (ACPICA: Hardware: Enhance
acpi_hw_validate_register() with access_width/bit_offset awareness)
apparently exposed a latent bug, doorbell.access_width is initialized
to 64, but per Lv Zheng, it should be 4, and indeed, making that
change does bring pcc-cpufreq back to life.

Fixes: 920de6eb (ACPICA: Hardware: Enhance acpi_hw_validate_register() with access_width/bit_offset awareness)
Suggested-by: default avatarLv Zheng <lv.zheng@intel.com>
Signed-off-by: default avatarMike Galbraith <umgwanakikbuti@gmail.com>
Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
parent 33688abb
...@@ -487,7 +487,7 @@ static int __init pcc_cpufreq_probe(void) ...@@ -487,7 +487,7 @@ static int __init pcc_cpufreq_probe(void)
doorbell.space_id = reg_resource->space_id; doorbell.space_id = reg_resource->space_id;
doorbell.bit_width = reg_resource->bit_width; doorbell.bit_width = reg_resource->bit_width;
doorbell.bit_offset = reg_resource->bit_offset; doorbell.bit_offset = reg_resource->bit_offset;
doorbell.access_width = 64; doorbell.access_width = 4;
doorbell.address = reg_resource->address; doorbell.address = reg_resource->address;
pr_debug("probe: doorbell: space_id is %d, bit_width is %d, " pr_debug("probe: doorbell: space_id is %d, bit_width is %d, "
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment