From: Harry Wentland <harry.wentland@xxxxxxx> Signed-off-by: Harry Wentland <harry.wentland at amd.com> Reviewed-by: Eric Huang <JinHuiEric.Huang at amd.com> Reviewed-by: Alex Deucher <alexander.deucher at amd.com> --- drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c b/drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c index 91fa0b5..4becd57 100644 --- a/drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c +++ b/drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c @@ -3893,14 +3893,15 @@ static int vega10_get_fan_control_mode(struct pp_hwmgr *hwmgr) { uint32_t reg; - if (hwmgr->fan_ctrl_is_in_default_mode) + if (hwmgr->fan_ctrl_is_in_default_mode) { return hwmgr->fan_ctrl_default_mode; - else + } else { reg = soc15_get_register_offset(THM_HWID, 0, mmCG_FDO_CTRL2_BASE_IDX, mmCG_FDO_CTRL2); return (cgs_read_register(hwmgr->device, reg) & CG_FDO_CTRL2__FDO_PWM_MODE_MASK) >> CG_FDO_CTRL2__FDO_PWM_MODE__SHIFT; + } } static int vega10_get_dal_power_level(struct pp_hwmgr *hwmgr, -- 2.5.5