disp: msm: dsi: Fix the total number of modes calculation
This change updates the parsing of timing nodes to check the mode of operation as video or command. In command mode, for each timing node, num of supported dfps rate is always one. Accordingly, update the num_dfps_rate to 1 for command mode. Change-Id: I5098c7e0d4d2320609d6e10031eaef78c1d8b3c1 Signed-off-by: Lipsa Rout <lrout@codeaurora.org> Signed-off-by: Satya Rama Aditya Pinapala <psraditya30@codeaurora.org>
This commit is contained in:

committed by
Gerrit - the friendly Code Review server

parent
4f53bc1569
commit
9cf9c8e99b
@@ -6130,8 +6130,6 @@ int dsi_display_get_modes(struct dsi_display *display,
|
||||
|
||||
dyn_clk_caps = &(display->panel->dyn_clk_caps);
|
||||
|
||||
num_dfps_rates = !dfps_caps.dfps_support ? 1 : dfps_caps.dfps_list_len;
|
||||
|
||||
timing_mode_count = display->panel->num_timing_nodes;
|
||||
|
||||
for (mode_idx = 0; mode_idx < timing_mode_count; mode_idx++) {
|
||||
@@ -6158,6 +6156,8 @@ int dsi_display_get_modes(struct dsi_display *display,
|
||||
/* Setup widebus support */
|
||||
display_mode.priv_info->widebus_support =
|
||||
ctrl->ctrl->hw.widebus_support;
|
||||
num_dfps_rates = ((!dfps_caps.dfps_support ||
|
||||
is_cmd_mode) ? 1 : dfps_caps.dfps_list_len);
|
||||
|
||||
/* Calculate dsi frame transfer time */
|
||||
if (is_cmd_mode) {
|
||||
|
Reference in New Issue
Block a user