# Pastebin BctDfCSn diff --git a/drivers/gpu/drm/meson/meson_dw_mipi_dsi.c b/drivers/gpu/drm/meson/meson_dw_mipi_dsi.c index a6bc1bdb3d0d..2b7c37ec012c 100644 --- a/drivers/gpu/drm/meson/meson_dw_mipi_dsi.c +++ b/drivers/gpu/drm/meson/meson_dw_mipi_dsi.c @@ -163,6 +163,13 @@ dw_mipi_dsi_get_lane_mbps(void *priv_data, const struct drm_display_mode *mode, bpp, mipi_dsi->dsi_device->lanes, &mipi_dsi->phy_opts.mipi_dphy); + /* Add some extra margin between the Pixel clock and Bit clock in BURST mode */ + if (mode_flags & MIPI_DSI_MODE_VIDEO_BURST) + phy_mipi_dphy_get_default_config_for_hsclk(mipi_dsi->phy_opts.mipi_dphy.hs_clk_rate + + mode->clock * 1000, + mipi_dsi->dsi_device->lanes, + &mipi_dsi->phy_opts.mipi_dphy); + *lane_mbps = DIV_ROUND_UP(mipi_dsi->phy_opts.mipi_dphy.hs_clk_rate, USEC_PER_SEC); return 0;