Commit 789d027e authored by Dmytro Laktyushkin's avatar Dmytro Laktyushkin Committed by Alex Deucher

drm/amd/display: fix calc_pll_max_vco_construct

This was broken by a previous change switching to cached fw_info.
Fixed by inverting a valid bool check.

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=111432
Fixes: 9adc8050 ("drm/amd/display: make firmware info only load once during dc_bios create")
Signed-off-by: default avatarDmytro Laktyushkin <Dmytro.Laktyushkin@amd.com>
Reviewed-by: default avatarLeo Li <sunpeng.li@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 85400984
......@@ -1241,7 +1241,7 @@ static bool calc_pll_max_vco_construct(
init_data->bp == NULL)
return false;
if (init_data->bp->fw_info_valid)
if (!init_data->bp->fw_info_valid)
return false;
fw_info = &init_data->bp->fw_info;
......
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