drm/bridge: dw-mipi-dsi: the lanes of dual-dsi is twice as much as max_data_lanes

Signed-off-by: Guochun Huang <hero.huang@rock-chips.com>
Change-Id: I1666a320a08318f555b145281f4fc324893ebc59
This commit is contained in:
Guochun Huang
2021-07-10 15:29:28 +08:00
committed by Tao Huang
parent 292f792757
commit 255e14f4b3

View File

@@ -316,15 +316,10 @@ static int dw_mipi_dsi_host_attach(struct mipi_dsi_host *host,
const struct dw_mipi_dsi_plat_data *pdata = dsi->plat_data;
struct drm_bridge *bridge;
struct drm_panel *panel;
int max_data_lanes = dsi->plat_data->max_data_lanes;
int ret;
if (device->lanes > dsi->plat_data->max_data_lanes) {
dev_err(dsi->dev, "the number of data lanes(%u) is too many\n",
device->lanes);
return -EINVAL;
}
dsi->lanes = device->lanes;
dsi->lanes = (device->lanes > max_data_lanes) ? device->lanes / 2 : device->lanes;
dsi->channel = device->channel;
dsi->format = device->format;
dsi->mode_flags = device->mode_flags;