msm: mdss: avoid DSI read commands with rlen value of zero

The minimum value of parameter for Maximum Return Packet Size
command before DSI command rx should be 1. Avoid any DSI read
commands with rlen value of zero.

Change-Id: Ieaf8d3f478047e726888f29db2838dbb7196d57a
Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org>
This commit is contained in:
Padmanabhan Komanduru 2014-09-05 21:53:53 +05:30 committed by David Keitel
parent b3cf731350
commit 72454981c6
2 changed files with 6 additions and 1 deletions

View file

@ -996,6 +996,11 @@ int mdss_dsi_cmds_rx(struct mdss_dsi_ctrl_pdata *ctrl,
return rlen;
}
if (rlen == 0) {
pr_debug("%s: Minimum MRPS value should be 1\n", __func__);
return 0;
}
/*
* Turn on cmd mode in order to transmit the commands.
* For video mode, do not send cmds more than one pixel line,

View file

@ -1548,7 +1548,7 @@ static int mdss_panel_parse_dt(struct device_node *np,
ctrl_pdata->status_mode = ESD_BTA;
} else if (!strcmp(data, "reg_read")) {
ctrl_pdata->status_mode = ESD_REG;
ctrl_pdata->status_cmds_rlen = 0;
ctrl_pdata->status_cmds_rlen = 1;
ctrl_pdata->check_read_status =
mdss_dsi_gen_read_status;
} else if (!strcmp(data, "reg_read_nt35596")) {