From 0f3da65e75fa69f00ff549a697d8d13d7444d6af Mon Sep 17 00:00:00 2001 From: Jeevan Shriram Date: Tue, 28 Oct 2014 22:36:25 -0700 Subject: [PATCH] msm: mdss: skip bus vote down if continuous splash hand-off is pending When continuous splash is enabled, bus clocks are turned on by the boot-loader display driver. If these bus clocks are voted down while MDP is still actively fetching from DRAM, it leads to under-runs and device hangs. Prevent this by skipping vote down of bus clocks if splash hand-off is still pending. Change-Id: Ia0b0ff90fb85024fb986453e70afaced331fbf06 Signed-off-by: Ujwal Patel Signed-off-by: Jeevan Shriram --- drivers/video/fbdev/msm/mdss_mdp.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/video/fbdev/msm/mdss_mdp.c b/drivers/video/fbdev/msm/mdss_mdp.c index 08e9b671e958..281bedf0c574 100644 --- a/drivers/video/fbdev/msm/mdss_mdp.c +++ b/drivers/video/fbdev/msm/mdss_mdp.c @@ -761,8 +761,9 @@ void mdss_bus_bandwidth_ctrl(int enable) if (changed) { if (!enable) { - msm_bus_scale_client_update_request( - mdata->bus_hdl, 0); + if (!mdata->handoff_pending) + msm_bus_scale_client_update_request( + mdata->bus_hdl, 0); pm_runtime_mark_last_busy(&mdata->pdev->dev); pm_runtime_put_autosuspend(&mdata->pdev->dev); } else {