Commit 4874ecf5 authored by Leo (Hanghong) Ma's avatar Leo (Hanghong) Ma Committed by Alex Deucher
Browse files

drm/amd/display: Fix error in dmesg at boot



[Why]
During DQE's promotion test, error appears in dmesg at boot
on dcn3.1;

[How]
Add NULL pointor check for the pointor to the amdgpu_dm_connector;

Reviewed-by: default avatarNicholas Kazlauskas <Nicholas.Kazlauskas@amd.com>
Acked-by: default avatarSolomon Chiu <solomon.chiu@amd.com>
Signed-off-by: default avatarLeo (Hanghong) Ma <hanghong.ma@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 8da5cbaf
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1917,7 +1917,7 @@ void blank_all_dp_displays(struct dc *dc, bool hw_init)

		if ((signal == SIGNAL_TYPE_EDP) ||
			(signal == SIGNAL_TYPE_DISPLAY_PORT)) {
			if (hw_init && signal != SIGNAL_TYPE_EDP) {
			if (hw_init && signal != SIGNAL_TYPE_EDP && dc->links[i]->priv != NULL) {
				/* DP 2.0 spec requires that we read LTTPR caps first */
				dp_retrieve_lttpr_cap(dc->links[i]);
				/* if any of the displays are lit up turn them off */
@@ -1943,7 +1943,7 @@ void blank_all_dp_displays(struct dc *dc, bool hw_init)
				}

				if (!dc->links[i]->wa_flags.dp_keep_receiver_powered ||
					(hw_init && signal != SIGNAL_TYPE_EDP))
					(hw_init && signal != SIGNAL_TYPE_EDP && dc->links[i]->priv != NULL))
					dp_receiver_power_ctrl(dc->links[i], false);
			}
		}