Skip to content

Commit cd92cc1

Browse files
Philip Chenrobclark
authored andcommitted
drm/msm/dsi: set default num_data_lanes
If "data_lanes" property of the dsi output endpoint is missing in the DT, num_data_lanes would be 0 by default, which could cause dsi_host_attach() to fail if dsi->lanes is set to a non-zero value by the bridge driver. According to the binding document of msm dsi controller, the input/output endpoint of the controller is expected to have 4 lanes. So let's set num_data_lanes to 4 by default. Signed-off-by: Philip Chen <[email protected]> Reviewed-by: Douglas Anderson <[email protected]> Reviewed-by: Stephen Boyd <[email protected]> Link: https://lore.kernel.org/r/20211030100812.1.I6cd9af36b723fed277d34539d3b2ba4ca233ad2d@changeid Signed-off-by: Rob Clark <[email protected]>
1 parent 5dbe271 commit cd92cc1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/gpu/drm/msm/dsi/dsi_host.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1658,6 +1658,8 @@ static int dsi_host_parse_lane_data(struct msm_dsi_host *msm_host,
16581658
if (!prop) {
16591659
DRM_DEV_DEBUG(dev,
16601660
"failed to find data lane mapping, using default\n");
1661+
/* Set the number of date lanes to 4 by default. */
1662+
msm_host->num_data_lanes = 4;
16611663
return 0;
16621664
}
16631665

0 commit comments

Comments
 (0)