瀏覽代碼

disp: msm: dsi: avoid updating bitclk when dyn clk is disabled

Currently the bit clk rate is overridden by cached clock rate
even in dynamic clock disabled usecase where it is not configured.
Avoid this override by retaining calculated bit clock rate for respective
mode in such usecase.

Change-Id: Ib159219fd50ab977edb8332c83bc8b34aee2dc0f
Signed-off-by: Shashank Babu Chinta Venkata <[email protected]>
Shashank Babu Chinta Venkata 3 年之前
父節點
當前提交
e13444d9ac
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      msm/dsi/dsi_display.c

+ 4 - 0
msm/dsi/dsi_display.c

@@ -6804,6 +6804,10 @@ int dsi_display_restore_bit_clk(struct dsi_display *display, struct dsi_display_
 		return -EINVAL;
 	}
 
+	/* avoid updating bit_clk for dyn clk feature disbaled usecase */
+	if (!display->panel->dyn_clk_caps.dyn_clk_support)
+		return 0;
+
 	clk_rate_hz = display->cached_clk_rate;
 
 	if (mode->priv_info->bit_clk_list.count) {