diff options
author | Dmytro Laktyushkin <Dmytro.Laktyushkin@amd.com> | 2019-08-15 12:35:39 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2019-08-22 17:48:47 -0500 |
commit | 789d027ec8e7aa300689f418b522ae21e333eb17 (patch) | |
tree | 0b6195fc8e23e47cd1cc027dacc65a4c9abf0f09 | |
parent | 854009849235308d1319cf4f8ff52f00a3b07026 (diff) |
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: 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>
-rw-r--r-- | drivers/gpu/drm/amd/display/dc/dce/dce_clock_source.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/dce/dce_clock_source.c b/drivers/gpu/drm/amd/display/dc/dce/dce_clock_source.c index 926954c804a6..f787a6b94781 100644 --- a/drivers/gpu/drm/amd/display/dc/dce/dce_clock_source.c +++ b/drivers/gpu/drm/amd/display/dc/dce/dce_clock_source.c @@ -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; |