From 094f183278c67853675ee2ed0423bf06b86d4ee8 Mon Sep 17 00:00:00 2001 From: Satya Rama Aditya Pinapala Date: Mon, 8 Jul 2019 11:52:22 -0700 Subject: [PATCH] disp: msm: dsi: signal pending clock change in case of DMS When there is a change in resolution or FPS, a new clock rate is calculated. During such a Dynamic Mode Switch, the clock rate change pending flag needs to be set after it has been calculated. This flag is later checked before kickoff and the clocks are updated accordingly. Change-Id: Iec102796d5c61d01c567f0b6676e9a6d4ed94268 Signed-off-by: Satya Rama Aditya Pinapala --- msm/dsi/dsi_display.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/msm/dsi/dsi_display.c b/msm/dsi/dsi_display.c index 0da75a811c..60a0ab34fa 100644 --- a/msm/dsi/dsi_display.c +++ b/msm/dsi/dsi_display.c @@ -4450,6 +4450,10 @@ static int dsi_display_set_mode_sub(struct dsi_display *display, } } + if ((mode->dsi_mode_flags & DSI_MODE_FLAG_DMS) && + (display->panel->panel_mode == DSI_OP_CMD_MODE)) + atomic_set(&display->clkrate_change_pending, 1); + if (priv_info->phy_timing_len) { display_for_each_ctrl(i, display) { ctrl = &display->ctrl[i];