drm/msm/dpu: add icc voting in dpu_mdss_init
authorAbhinav Kumar <abhinavk@codeaurora.org>
Tue, 18 Jun 2019 20:24:12 +0000 (13:24 -0700)
committerRob Clark <robdclark@chromium.org>
Thu, 20 Jun 2019 15:39:24 +0000 (08:39 -0700)
commit217a6ddf93e0d99ac720ded6c81401030af981a7
tree9ae9343f8d162c8ed9a83995b5c7aa7f2a463b75
parenta67e13e1ee2d62871149e5ec629cf766d4127ff9
drm/msm/dpu: add icc voting in dpu_mdss_init

dpu_mdss_destroy() can get called not just from
msm_drm_uninit() but also from msm_drm_bind() in case
of any failures.

dpu_mdss_destroy() removes the icc voting by calling
icc_put. This could accidentally remove the voting
done by pm_runtime_enable.

To make the voting balanced add a minimum vote in
dpu_mdss_init() to avoid any unclocked access.

This change depends on the following patch which
introduces interconnect binding to MDSS driver:

https://patchwork.codeaurora.org/patch/708155/

Signed-off-by: Abhinav Kumar <abhinavk@codeaurora.org>
Reviewed-by: Sean Paul <sean@poorly.run>
Signed-off-by: Rob Clark <robdclark@chromium.org>
drivers/gpu/drm/msm/disp/dpu1/dpu_mdss.c