drm/bridge: cdns-dsi: Set bridge connector type
Subsystems (3)
PATCH 1/1 drm/bridge: cdns-dsi: Set bridge connector type
Set the bridge connector type to DRM_MODE_CONNECTOR_DSI to properly identify the DSI connector in the display pipeline.
Without this, the bridge connector type defaults to DRM_MODE_CONNECTOR_Unknown. Hence, to get correct bridge type set the bridge connector type to DRM_MODE_CONNECTOR_DSI.
--- drivers/gpu/drm/bridge/cadence/cdns-dsi-core.c | 1 + 1 file changed, 1 insertion(+)
drivers/gpu/drm/bridge/cadence/cdns-dsi-core.c +1 -0
@@ -1323,6 +1323,7 @@ static int cdns_dsi_drm_probe(struct platform_device *pdev)*/ input->id =CDNS_DPI_INPUT ; input->bridge.of_node = pdev->dev.of_node; + input->bridge.type =DRM_MODE_CONNECTOR_DSI ;/* Mask all interrupts before registering the IRQ handler. */ writel (0 , dsi->regs +MCTL_MAIN_STS_CTL );
Hi,
Quoted 17 lines · Swamil Jain
Set the bridge connector type to
DRM_MODE_CONNECTOR_DSIto properly identify the DSI connector in the display pipeline.Without this, the bridge connector type defaults to
DRM_MODE_CONNECTOR_Unknown. Hence, to get correct bridge type set the bridge connector type toDRM_MODE_CONNECTOR_DSI.Signed-off-by Swamil Jain <[email protected]>--- drivers/gpu/drm/bridge/cadence/cdns-dsi-core.c | 1 + 1 file changed, 1 insertion(+)drivers/gpu/drm/bridge/cadence/cdns-dsi-core.c +0
-0
drivers/gpu/drm/bridge/cadence/cdns-dsi-core.c static int cdns_dsi_drm_probe(struct platform_device *pdev) · line 1329
Quoted 7 lines
drivers/gpu/drm/bridge/cadence/cdns-dsi-core.c +1
-0@@ -1323,6 +1323,7 @@ static int cdns_dsi_drm_probe(struct platform_device *pdev)*/ input->id =CDNS_DPI_INPUT ; input->bridge.of_node = pdev->dev.of_node; + input->bridge.type =DRM_MODE_CONNECTOR_DSI ;/* Mask all interrupts before registering the IRQ handler. */ writel (0 , dsi->regs +MCTL_MAIN_STS_CTL );
Hmm, how does this all work...
tidss_kms.c calls devm_drm_panel_bridge_add(), which then does devm_drm_panel_bridge_add_typed() with panel's connector type. Doesn't that already work?
Why do you need the bridge type to be set, i.e. what's the use case?
Somewhat besides the point of this patch, but input->bridge feels odd. Why "input"... Why isn't the bridge just in the struct cdns_dsi? And what's the bridge in cdns_dsi_output? Is that the next bridge?
Tomi