path: root/drivers/gpu/drm/msm/dsi/dsi.c
diff options
authorChandan Uddaraju <>2018-04-18 12:45:15 -0700
committerSean Paul <>2018-07-26 10:40:14 -0400
commit8b03ad30e314691f7bfccc0f9fae0dffd498b667 (patch)
tree6ca3f20ea4df74b5b6035335117df463e5d9af3a /drivers/gpu/drm/msm/dsi/dsi.c
parented9976a09b486d85ae537b5cd73e947d7dfbb136 (diff)
drm/msm/dsi: Use one connector for dual DSI mode
Current DSI driver uses two connectors for dual DSI case even though we only have one panel. Fix this by implementing one connector/bridge for dual DSI use case. Use master DSI controllers to register one connector/bridge. Changes in v3: - None Reviewed-by: Archit Taneja <> Signed-off-by: Chandan Uddaraju <> [seanpaul removed unused local var causing a build warning] Signed-off-by: Sean Paul <> Signed-off-by: Rob Clark <>
Diffstat (limited to 'drivers/gpu/drm/msm/dsi/dsi.c')
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/msm/dsi/dsi.c b/drivers/gpu/drm/msm/dsi/dsi.c
index b744bcc7d8ad..ff8164cc6738 100644
--- a/drivers/gpu/drm/msm/dsi/dsi.c
+++ b/drivers/gpu/drm/msm/dsi/dsi.c
@@ -208,6 +208,9 @@ int msm_dsi_modeset_init(struct msm_dsi *msm_dsi, struct drm_device *dev,
goto fail;
+ if (!msm_dsi_manager_validate_current_config(msm_dsi->id))
+ goto fail;
msm_dsi->encoder = encoder;
msm_dsi->bridge = msm_dsi_manager_bridge_init(msm_dsi->id);