diff --git a/msm/dsi/dsi_panel.c b/msm/dsi/dsi_panel.c index 7fee0b37da15..0ff25f4bfa3d 100644 --- a/msm/dsi/dsi_panel.c +++ b/msm/dsi/dsi_panel.c @@ -759,14 +759,15 @@ static int dsi_panel_pwm_register(struct dsi_panel *panel) static int dsi_panel_send_param_cmd(struct dsi_panel *panel, struct msm_param_info *param_info) { - int rc = 0; + int rc = 0, i = 0; struct panel_param_val_map *param_map; struct panel_param_val_map *param_map_state; struct panel_param *panel_param; struct dsi_cmd_desc *cmds; ssize_t len; - const struct mipi_dsi_host_ops *ops = panel->host->ops; + u32 count; + const struct mipi_dsi_host_ops *ops = panel->host->ops; panel_param = &panel->param_cmds[param_info->param_idx]; if (!panel_param) { DSI_ERR("%s: invalid panel_param.\n", __func__); @@ -802,17 +803,22 @@ static int dsi_panel_send_param_cmd(struct dsi_panel *panel, } cmds = param_map_state->cmds->cmds; - if (param_map_state->cmds->state == DSI_CMD_SET_STATE_LP) - cmds->msg.flags |= MIPI_DSI_MSG_USE_LPM | - MIPI_DSI_MSG_LASTCOMMAND; - len = ops->transfer(panel->host, &cmds->msg); - if (len < 0) { - rc = len; - DSI_ERR("%s:failed to send param cmd, rc=%d\n", - __func__, rc); - goto end; - } + count = param_map_state->cmds->count; + for (i =0; i < count; i++) { + if (param_map_state->cmds->state == DSI_CMD_SET_STATE_LP) + cmds->msg.flags |= MIPI_DSI_MSG_USE_LPM; + if (cmds->last_command) + cmds->msg.flags |= MIPI_DSI_MSG_LASTCOMMAND; + len = ops->transfer(panel->host, &cmds->msg); + if (len < 0) { + rc = len; + DSI_ERR("%s:failed to send param cmd, rc=%d\n", + __func__, rc); + goto end; + } + cmds++; + } panel_param->value = param_info->value; DSI_INFO("(%d) is setting new value %d\n", param_info->param_idx, param_info->value); diff --git a/msm/sde/sde_motUtil.c b/msm/sde/sde_motUtil.c index d33f11222533..d0b98d644327 100644 --- a/msm/sde/sde_motUtil.c +++ b/msm/sde/sde_motUtil.c @@ -214,10 +214,9 @@ static int _sde_debugfs_motUtil_kms_prop_test(struct sde_kms *kms, case KMSPROPTEST_TYPE_HBM: conn_prop_idx = CONNECTOR_PROP_HBM; break; -/* case KMSPROPTEST_TYPE_ACL: + case KMSPROPTEST_TYPE_ACL: conn_prop_idx = CONNECTOR_PROP_ACL; break; -*/ default: DRM_ERROR(" Invalid KMSPROPTEST_PROP_INDEX = %d\n", input[KMSPROPTEST_PROP_INDEX]);