mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-06 02:50:49 +09:00
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:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user