drm/amdgpu: only set DP subconnector type on DP and eDP connectors
authorAlex Deucher <alexander.deucher@amd.com>
Thu, 17 Dec 2020 17:11:36 +0000 (12:11 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 30 Dec 2020 10:54:19 +0000 (11:54 +0100)
commit08a050c197ed840a800dc30c6c9322bd678019b4
treecd7edf38d4f4ab3808e35c066a81f9a5658126bc
parent898f999e940f2feee2d26532adefb67b2548f91f
drm/amdgpu: only set DP subconnector type on DP and eDP connectors

commit 05211e7fbbf042dd7f51155ebe64eb2ecacb25cb upstream.

Fixes a crash in drm_object_property_set_value() because the property
is not set for internal DP ports that connect to a bridge chips
(e.g., DP to VGA or DP to LVDS).

Bug: https://bugzilla.kernel.org/show_bug.cgi?id=210739
Fixes: 65bf2cf95d3ade ("drm/amdgpu: utilize subconnector property for DP through atombios")
Tested-By: Kris Karas <bugs-a17@moonlit-rail.com>
Cc: Oleg Vasilev <oleg.vasilev@intel.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org # 5.10.x
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c