drm/amd/display: fix calc_pll_max_vco_construct
authorDmytro Laktyushkin <Dmytro.Laktyushkin@amd.com>
Thu, 15 Aug 2019 16:35:39 +0000 (12:35 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 22 Aug 2019 22:48:47 +0000 (17:48 -0500)
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: 9adc8050bf3c ("drm/amd/display: make firmware info only load once during dc_bios create")
Signed-off-by: Dmytro Laktyushkin <Dmytro.Laktyushkin@amd.com>
Reviewed-by: Leo Li <sunpeng.li@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dce/dce_clock_source.c

index 926954c804a64e2a80a67f39e45de05a0941367d..f787a6b9478121672f69a78a31bdf5844ffbdb05 100644 (file)
@@ -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;