aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIlya Bakoulin <[email protected]>2024-08-15 18:45:20 -0400
committerAlex Deucher <[email protected]>2024-08-20 22:14:13 -0400
commitec9e2e7acc6dabb8f00c2c60785931310caaa883 (patch)
tree5ee9c1a4df20347ece929e68dd9c7d9a19d26894
parentf327189389785b26e49904a7d3ba0c96506a4586 (diff)
drm/amd/display: Fix construct_phy with MXM connector
[Why/How] The call to construct_phy will fail in cases where connector type is MXM, and the dc_link won't be properly created/initialized. Reviewed-by: Wenjing Liu <[email protected]> Signed-off-by: Ilya Bakoulin <[email protected]> Signed-off-by: Roman Li <[email protected]> Tested-by: Daniel Wheeler <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
-rw-r--r--drivers/gpu/drm/amd/display/dc/link/link_factory.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/link/link_factory.c b/drivers/gpu/drm/amd/display/dc/link/link_factory.c
index 8246006857b3..85fd6e422238 100644
--- a/drivers/gpu/drm/amd/display/dc/link/link_factory.c
+++ b/drivers/gpu/drm/amd/display/dc/link/link_factory.c
@@ -524,6 +524,7 @@ static bool construct_phy(struct dc_link *link,
link->connector_signal = SIGNAL_TYPE_DVI_DUAL_LINK;
break;
case CONNECTOR_ID_DISPLAY_PORT:
+ case CONNECTOR_ID_MXM:
case CONNECTOR_ID_USBC:
link->connector_signal = SIGNAL_TYPE_DISPLAY_PORT;