disp: msm: sde: Remove pm vote at time of handoff

Additional pm vote is added when cont splash is enabled
for eDP. This vote has to be removed at the time of
handoff.

Change-Id: Ib1c0cc58f0be1031d405ca8941d3e7984b1e9f46
Signed-off-by: Sai Srujana Oruganti <quic_osaisruj@quicinc.com>
This commit is contained in:
Sai Srujana Oruganti 2023-06-18 21:35:42 +05:30
commit ea245e7982

View file

@ -1255,6 +1255,16 @@ static void _sde_kms_release_splash_resource(struct sde_kms *sde_kms,
SDE_EVT32(DRMID(crtc), crtc->state->active,
sde_kms->splash_data.num_splash_displays);
/*remove all votes if eDP displays are done with splash*/
if (dp_display_get_num_of_boot_displays()) {
for (i = 0; i < SDE_POWER_HANDLE_DBUS_ID_MAX; i++)
sde_power_data_bus_set_quota(phandle, i,
SDE_POWER_HANDLE_ENABLE_BUS_AB_QUOTA,
phandle->ib_quota[i]);
pm_runtime_put_sync(sde_kms->dev->dev);
sde_kms->splash_data.num_splash_displays--;
}
for (i = 0; i < MAX_DSI_DISPLAYS; i++) {
splash_display = &sde_kms->splash_data.splash_display[i];
if (splash_display->encoder &&