]> git.baikalelectronics.ru Git - kernel.git/commit
drm/msm/dsi: set default num_data_lanes
authorPhilip Chen <philipchen@chromium.org>
Sat, 30 Oct 2021 17:08:50 +0000 (10:08 -0700)
committerRob Clark <robdclark@chromium.org>
Mon, 22 Nov 2021 18:16:04 +0000 (10:16 -0800)
commit5798854830c0488bdda40e0ad7138b9c22626af5
tree09620eee18df8828239aa4954c38fda39ee3cc09
parentf811551bea4818f97570cde9bba99ae7e72258ca
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 <philipchen@chromium.org>
Reviewed-by: Douglas Anderson <dianders@chromium.org>
Reviewed-by: Stephen Boyd <swboyd@chromium.org>
Link: https://lore.kernel.org/r/20211030100812.1.I6cd9af36b723fed277d34539d3b2ba4ca233ad2d@changeid
Signed-off-by: Rob Clark <robdclark@chromium.org>
drivers/gpu/drm/msm/dsi/dsi_host.c