Loading drivers/video/msm/mdss/mdss_mdp.h +0 −2 Original line number Original line Diff line number Diff line Loading @@ -821,8 +821,6 @@ struct mdss_overlay_private { u32 bl_events; u32 bl_events; u32 ad_events; u32 ad_events; u32 ad_bl_events; u32 ad_bl_events; bool allow_kickoff; }; }; struct mdss_mdp_set_ot_params { struct mdss_mdp_set_ot_params { Loading drivers/video/msm/mdss/mdss_mdp_overlay.c +18 −26 Original line number Original line Diff line number Diff line Loading @@ -1353,9 +1353,6 @@ int mdss_mdp_overlay_start(struct msm_fb_data_type *mfd) mdss_mdp_release_splash_pipe(mfd); mdss_mdp_release_splash_pipe(mfd); return 0; return 0; } else if (mfd->panel_info->cont_splash_enabled) { } else if (mfd->panel_info->cont_splash_enabled) { if (mdp5_data->allow_kickoff) { mdp5_data->allow_kickoff = false; } else { mutex_lock(&mdp5_data->list_lock); mutex_lock(&mdp5_data->list_lock); rc = list_empty(&mdp5_data->pipes_used); rc = list_empty(&mdp5_data->pipes_used); mutex_unlock(&mdp5_data->list_lock); mutex_unlock(&mdp5_data->list_lock); Loading @@ -1364,7 +1361,6 @@ int mdss_mdp_overlay_start(struct msm_fb_data_type *mfd) mfd->index); mfd->index); return -EPERM; return -EPERM; } } } } else if (mdata->handoff_pending) { } else if (mdata->handoff_pending) { pr_warn("fb%d: commit while splash handoff pending\n", pr_warn("fb%d: commit while splash handoff pending\n", mfd->index); mfd->index); Loading Loading @@ -5055,7 +5051,6 @@ static int mdss_mdp_overlay_off(struct msm_fb_data_type *mfd) { { int rc; int rc; struct mdss_overlay_private *mdp5_data; struct mdss_overlay_private *mdp5_data; struct mdss_data_type *mdata = mdss_mdp_get_mdata(); struct mdss_mdp_mixer *mixer; struct mdss_mdp_mixer *mixer; int need_cleanup; int need_cleanup; int retire_cnt; int retire_cnt; Loading @@ -5074,6 +5069,18 @@ static int mdss_mdp_overlay_off(struct msm_fb_data_type *mfd) return -ENODEV; return -ENODEV; } } if (!mdss_mdp_ctl_is_power_on(mdp5_data->ctl)) { if (mfd->panel_reconfig) { if (mfd->panel_info->cont_splash_enabled) mdss_mdp_handoff_cleanup_ctl(mfd); mdp5_data->borderfill_enable = false; mdss_mdp_ctl_destroy(mdp5_data->ctl); mdp5_data->ctl = NULL; } return 0; } /* /* * Keep a reference to the runtime pm until the overlay is turned * Keep a reference to the runtime pm until the overlay is turned * off, and then release this last reference at the end. This will * off, and then release this last reference at the end. This will Loading Loading @@ -5118,20 +5125,7 @@ static int mdss_mdp_overlay_off(struct msm_fb_data_type *mfd) if (need_cleanup) { if (need_cleanup) { pr_debug("cleaning up pipes on fb%d\n", mfd->index); pr_debug("cleaning up pipes on fb%d\n", mfd->index); if (mdata->handoff_pending) mdp5_data->allow_kickoff = true; mdss_mdp_overlay_kickoff(mfd, NULL); mdss_mdp_overlay_kickoff(mfd, NULL); } else if (!mdss_mdp_ctl_is_power_on(mdp5_data->ctl)) { if (mfd->panel_reconfig) { if (mfd->panel_info->cont_splash_enabled) mdss_mdp_handoff_cleanup_ctl(mfd); mdp5_data->borderfill_enable = false; mdss_mdp_ctl_destroy(mdp5_data->ctl); mdp5_data->ctl = NULL; } goto end; } } /* /* Loading Loading @@ -5206,7 +5200,6 @@ ctl_stop: mdp5_data->wfd = NULL; mdp5_data->wfd = NULL; } } end: /* Release the last reference to the runtime device */ /* Release the last reference to the runtime device */ rc = pm_runtime_put(&mfd->pdev->dev); rc = pm_runtime_put(&mfd->pdev->dev); if (rc) if (rc) Loading Loading @@ -5634,7 +5627,6 @@ int mdss_mdp_overlay_init(struct msm_fb_data_type *mfd) mdp5_data->hw_refresh = true; mdp5_data->hw_refresh = true; mdp5_data->cursor_ndx[CURSOR_PIPE_LEFT] = MSMFB_NEW_REQUEST; mdp5_data->cursor_ndx[CURSOR_PIPE_LEFT] = MSMFB_NEW_REQUEST; mdp5_data->cursor_ndx[CURSOR_PIPE_RIGHT] = MSMFB_NEW_REQUEST; mdp5_data->cursor_ndx[CURSOR_PIPE_RIGHT] = MSMFB_NEW_REQUEST; mdp5_data->allow_kickoff = false; mfd->mdp.private1 = mdp5_data; mfd->mdp.private1 = mdp5_data; mfd->wait_for_kickoff = true; mfd->wait_for_kickoff = true; Loading Loading
drivers/video/msm/mdss/mdss_mdp.h +0 −2 Original line number Original line Diff line number Diff line Loading @@ -821,8 +821,6 @@ struct mdss_overlay_private { u32 bl_events; u32 bl_events; u32 ad_events; u32 ad_events; u32 ad_bl_events; u32 ad_bl_events; bool allow_kickoff; }; }; struct mdss_mdp_set_ot_params { struct mdss_mdp_set_ot_params { Loading
drivers/video/msm/mdss/mdss_mdp_overlay.c +18 −26 Original line number Original line Diff line number Diff line Loading @@ -1353,9 +1353,6 @@ int mdss_mdp_overlay_start(struct msm_fb_data_type *mfd) mdss_mdp_release_splash_pipe(mfd); mdss_mdp_release_splash_pipe(mfd); return 0; return 0; } else if (mfd->panel_info->cont_splash_enabled) { } else if (mfd->panel_info->cont_splash_enabled) { if (mdp5_data->allow_kickoff) { mdp5_data->allow_kickoff = false; } else { mutex_lock(&mdp5_data->list_lock); mutex_lock(&mdp5_data->list_lock); rc = list_empty(&mdp5_data->pipes_used); rc = list_empty(&mdp5_data->pipes_used); mutex_unlock(&mdp5_data->list_lock); mutex_unlock(&mdp5_data->list_lock); Loading @@ -1364,7 +1361,6 @@ int mdss_mdp_overlay_start(struct msm_fb_data_type *mfd) mfd->index); mfd->index); return -EPERM; return -EPERM; } } } } else if (mdata->handoff_pending) { } else if (mdata->handoff_pending) { pr_warn("fb%d: commit while splash handoff pending\n", pr_warn("fb%d: commit while splash handoff pending\n", mfd->index); mfd->index); Loading Loading @@ -5055,7 +5051,6 @@ static int mdss_mdp_overlay_off(struct msm_fb_data_type *mfd) { { int rc; int rc; struct mdss_overlay_private *mdp5_data; struct mdss_overlay_private *mdp5_data; struct mdss_data_type *mdata = mdss_mdp_get_mdata(); struct mdss_mdp_mixer *mixer; struct mdss_mdp_mixer *mixer; int need_cleanup; int need_cleanup; int retire_cnt; int retire_cnt; Loading @@ -5074,6 +5069,18 @@ static int mdss_mdp_overlay_off(struct msm_fb_data_type *mfd) return -ENODEV; return -ENODEV; } } if (!mdss_mdp_ctl_is_power_on(mdp5_data->ctl)) { if (mfd->panel_reconfig) { if (mfd->panel_info->cont_splash_enabled) mdss_mdp_handoff_cleanup_ctl(mfd); mdp5_data->borderfill_enable = false; mdss_mdp_ctl_destroy(mdp5_data->ctl); mdp5_data->ctl = NULL; } return 0; } /* /* * Keep a reference to the runtime pm until the overlay is turned * Keep a reference to the runtime pm until the overlay is turned * off, and then release this last reference at the end. This will * off, and then release this last reference at the end. This will Loading Loading @@ -5118,20 +5125,7 @@ static int mdss_mdp_overlay_off(struct msm_fb_data_type *mfd) if (need_cleanup) { if (need_cleanup) { pr_debug("cleaning up pipes on fb%d\n", mfd->index); pr_debug("cleaning up pipes on fb%d\n", mfd->index); if (mdata->handoff_pending) mdp5_data->allow_kickoff = true; mdss_mdp_overlay_kickoff(mfd, NULL); mdss_mdp_overlay_kickoff(mfd, NULL); } else if (!mdss_mdp_ctl_is_power_on(mdp5_data->ctl)) { if (mfd->panel_reconfig) { if (mfd->panel_info->cont_splash_enabled) mdss_mdp_handoff_cleanup_ctl(mfd); mdp5_data->borderfill_enable = false; mdss_mdp_ctl_destroy(mdp5_data->ctl); mdp5_data->ctl = NULL; } goto end; } } /* /* Loading Loading @@ -5206,7 +5200,6 @@ ctl_stop: mdp5_data->wfd = NULL; mdp5_data->wfd = NULL; } } end: /* Release the last reference to the runtime device */ /* Release the last reference to the runtime device */ rc = pm_runtime_put(&mfd->pdev->dev); rc = pm_runtime_put(&mfd->pdev->dev); if (rc) if (rc) Loading Loading @@ -5634,7 +5627,6 @@ int mdss_mdp_overlay_init(struct msm_fb_data_type *mfd) mdp5_data->hw_refresh = true; mdp5_data->hw_refresh = true; mdp5_data->cursor_ndx[CURSOR_PIPE_LEFT] = MSMFB_NEW_REQUEST; mdp5_data->cursor_ndx[CURSOR_PIPE_LEFT] = MSMFB_NEW_REQUEST; mdp5_data->cursor_ndx[CURSOR_PIPE_RIGHT] = MSMFB_NEW_REQUEST; mdp5_data->cursor_ndx[CURSOR_PIPE_RIGHT] = MSMFB_NEW_REQUEST; mdp5_data->allow_kickoff = false; mfd->mdp.private1 = mdp5_data; mfd->mdp.private1 = mdp5_data; mfd->wait_for_kickoff = true; mfd->wait_for_kickoff = true; Loading