Commit a2ccee34 authored by Alex Hung's avatar Alex Hung Committed by Wen Zhiwei
Browse files

Revert "drm/amd/display: Validate hw_points_num before using it"

stable inclusion
from stable-v6.6.48
commit 50fe8565a9be3c2f947a030a8ca5091e74e5cbf2
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/IAWEBV

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=50fe8565a9be3c2f947a030a8ca5091e74e5cbf2



--------------------------------

commit 8f4bdbc8e99db6ec9cb0520748e49a2f2d7d1727 upstream.

This reverts commit 58c3b3341cea4f75dc8c003b89f8a6dd8ec55e50.

[WHY & HOW]
The writeback series cause a regression in thunderbolt display.

Signed-off-by: default avatarAlex Hung <alex.hung@amd.com>
Reviewed-by: default avatarHarry Wentland <harry.wentland@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: default avatarWen Zhiwei <wenzhiwei@kylinos.cn>
parent b7a5aed1
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -243,9 +243,6 @@ static bool dwb3_program_ogam_lut(
		return false;
	}

	if (params->hw_points_num == 0)
		return false;

	REG_SET(DWB_OGAM_CONTROL, 0, DWB_OGAM_MODE, 2);

	current_mode = dwb3_get_ogam_current(dwbc30);