]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: Improve logic for is_lttpr_present
authorWesley Chalmers <Wesley.Chalmers@amd.com>
Wed, 5 May 2021 19:17:48 +0000 (15:17 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 15 Jun 2021 21:25:41 +0000 (17:25 -0400)
commitbcd9b5846e7c0ef2f08a8f19e074ea7ff722e36f
tree20b9699e13f4b83bda3ed699ad70bbadddaa05ba
parent893205d30ba807e6791cbe8a73907478e2d9fbb8
drm/amd/display: Improve logic for is_lttpr_present

[WHY]
DP specifies that an LTTPR device is only present if PHY_REPEATER_CNT is
0x80, 0x40, 0x20, 0x10, 0x08, 0x04, 0x02, or 0x01.

All other values should be considered no LTTPRs present.

[HOW]
Function dp_convert_to_count already does this check. Use it to determine
if PHY_REPEATER_CNT is a valid LTTPR count.

Signed-off-by: Wesley Chalmers <Wesley.Chalmers@amd.com>
Reviewed-by: Jun Lei <Jun.Lei@amd.com>
Acked-by: Anson Jacob <Anson.Jacob@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c