dw-dp: enable power domain when load protect stage

If dynamic dptx power domain ctrl is enabled and dptx power
domain not enabled when init dptx controller, the dptx power
domain will be disabled though the uboot logo is enable. this
will cause display issue. To avoid this issue, it need enable
dptx power domain when enable uboot logo.

Change-Id: I3105556de3dee5e592242150935133cce0971551
Signed-off-by: Zhang Yubing <yubing.zhang@rock-chips.com>
This commit is contained in:
Zhang Yubing
2024-10-17 16:19:16 +08:00
committed by Tao Huang
parent 84b8365717
commit d4c36cfc6e

View File

@@ -3226,6 +3226,8 @@ static void _dw_dp_loader_protect(struct dw_dp *dp, bool on)
u32 value;
if (on) {
if (dp->dynamic_pd_ctrl)
pm_runtime_get_sync(dp->dev);
di->color_formats = DRM_COLOR_FORMAT_RGB444;
di->bpc = 8;
@@ -3272,6 +3274,11 @@ static void _dw_dp_loader_protect(struct dw_dp *dp, bool on)
phy_power_off(dp->phy);
extcon_set_state_sync(dp->audio->extcon, EXTCON_DISP_DP, false);
dw_dp_audio_handle_plugged_change(dp->audio, false);
if (dp->dynamic_pd_ctrl) {
pm_runtime_mark_last_busy(dp->dev);
pm_runtime_put_autosuspend(dp->dev);
}
}
}