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:

committad av
Gerrit - the friendly Code Review server

förälder
4f53bc1569
incheckning
9cf9c8e99b
@@ -3425,7 +3425,6 @@ int dsi_panel_get_mode_count(struct dsi_panel *panel)
|
||||
int num_dfps_rates, num_bit_clks;
|
||||
int num_video_modes = 0, num_cmd_modes = 0;
|
||||
int count, rc = 0;
|
||||
void *utils_data = NULL;
|
||||
|
||||
if (!panel) {
|
||||
DSI_ERR("invalid params\n");
|
||||
@@ -3462,10 +3461,9 @@ int dsi_panel_get_mode_count(struct dsi_panel *panel)
|
||||
|
||||
panel->num_timing_nodes = count;
|
||||
dsi_for_each_child_node(timings_np, child_np) {
|
||||
utils_data = child_np;
|
||||
if (utils->read_bool(utils->data, "qcom,mdss-dsi-video-mode"))
|
||||
if (utils->read_bool(child_np, "qcom,mdss-dsi-video-mode"))
|
||||
num_video_modes++;
|
||||
else if (utils->read_bool(utils->data,
|
||||
else if (utils->read_bool(child_np,
|
||||
"qcom,mdss-dsi-cmd-mode"))
|
||||
num_cmd_modes++;
|
||||
else if (panel->panel_mode == DSI_OP_VIDEO_MODE)
|
||||
|
Referens i nytt ärende
Block a user