diff options
author | Dave Airlie <airlied@redhat.com> | 2019-11-28 10:41:24 +1000 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2019-11-28 10:41:24 +1000 |
commit | 44d010a0de87464440ebae17d9d4f611927bab87 (patch) | |
tree | 3cbf69ecdbf3b1950f86b5ee72d4e6cf66803109 /drivers/gpu/drm/stm/dw_mipi_dsi-stm.c | |
parent | 89d57dddd7d319ded00415790a0bb3c954b7e386 (diff) | |
parent | acc61b8929365e63a3e8c8c8913177795aa45594 (diff) |
Merge branch 'drm-next' of git://anongit.freedesktop.org/git/drm/drmdrm-next-5.5-merged
Diffstat (limited to 'drivers/gpu/drm/stm/dw_mipi_dsi-stm.c')
-rw-r--r-- | drivers/gpu/drm/stm/dw_mipi_dsi-stm.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/gpu/drm/stm/dw_mipi_dsi-stm.c b/drivers/gpu/drm/stm/dw_mipi_dsi-stm.c index a03a642c147c..514efefb0016 100644 --- a/drivers/gpu/drm/stm/dw_mipi_dsi-stm.c +++ b/drivers/gpu/drm/stm/dw_mipi_dsi-stm.c @@ -260,8 +260,11 @@ dw_mipi_dsi_get_lane_mbps(void *priv_data, const struct drm_display_mode *mode, /* Compute requested pll out */ bpp = mipi_dsi_pixel_format_to_bpp(format); pll_out_khz = mode->clock * bpp / lanes; + /* Add 20% to pll out to be higher than pixel bw (burst mode only) */ - pll_out_khz = (pll_out_khz * 12) / 10; + if (mode_flags & MIPI_DSI_MODE_VIDEO_BURST) + pll_out_khz = (pll_out_khz * 12) / 10; + if (pll_out_khz > dsi->lane_max_kbps) { pll_out_khz = dsi->lane_max_kbps; DRM_WARN("Warning max phy mbps is used\n"); |