mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2025-01-14 17:55:42 +08:00
drm/amd/powerplay: fix bug in processing CKS_Enable bit.
Typo in the mask. Signed-off-by: Rex Zhu <Rex.Zhu@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
ab5cf3a551
commit
9c2cc3a10c
@ -566,7 +566,7 @@ static int get_gfxclk_voltage_dependency_table(
|
||||
clk_table->entries[i].clk =
|
||||
le32_to_cpu(clk_dep_table->entries[i].ulClk);
|
||||
clk_table->entries[i].cks_enable =
|
||||
(((clk_dep_table->entries[i].usCKSVOffsetandDisable & 0x80)
|
||||
(((clk_dep_table->entries[i].usCKSVOffsetandDisable & 0x8000)
|
||||
>> 15) == 0) ? 1 : 0;
|
||||
clk_table->entries[i].cks_voffset =
|
||||
(clk_dep_table->entries[i].usCKSVOffsetandDisable & 0x7F);
|
||||
|
Loading…
Reference in New Issue
Block a user