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>
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)
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;