mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-09 21:59:12 -04:00
drm/amd/powerplay: move setting allowed mask and feature enabling together
This patch moves setting allowed mask and feature enabling together to refine the programming sequence. Signed-off-by: Huang Rui <ray.huang@amd.com> Reviewed-by: Hawking Zhang <Hawking.Zhang@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
2dd1209e57
commit
d4631cba9e
1 changed files with 4 additions and 4 deletions
|
|
@ -586,10 +586,6 @@ static int smu_smc_table_hw_init(struct smu_context *smu,
|
|||
if (ret)
|
||||
return ret;
|
||||
|
||||
ret = smu_feature_set_allowed_mask(smu);
|
||||
if (ret)
|
||||
return ret;
|
||||
|
||||
if (initialize) {
|
||||
ret = smu_read_pptable_from_vbios(smu);
|
||||
if (ret)
|
||||
|
|
@ -654,6 +650,10 @@ static int smu_smc_table_hw_init(struct smu_context *smu,
|
|||
if (ret)
|
||||
return ret;
|
||||
|
||||
ret = smu_feature_set_allowed_mask(smu);
|
||||
if (ret)
|
||||
return ret;
|
||||
|
||||
ret = smu_system_features_control(smu, true);
|
||||
if (ret)
|
||||
return ret;
|
||||
|
|
|
|||
Loading…
Reference in a new issue