mirror of
https://github.com/torvalds/linux.git
synced 2026-11-27 08:52:27 +00:00
drm/rockchip: Resume DP early
The DP needs to have resumed once the DRM driver calls drm_atomic_helper_resume, otherwise the DP clock is still disabled when the DRM core enables the DP bridge. Would be nice to use device_pm_wait_for_dev to synchronize these devices, but the DRM device doesn't know what specific implementation this bridge has. Signed-off-by: Tomeu Vizoso <[email protected]> Cc: Caesar Wang <[email protected]> Cc: Douglas Anderson <[email protected]> Cc: Heiko Stuebner <[email protected]> Cc: Yakir Yang <[email protected]> Signed-off-by: Daniel Vetter <[email protected]> Link: http://patchwork.freedesktop.org/patch/msgid/[email protected]
This commit is contained in:
committed by
Daniel Vetter
parent
5a58738309
commit
fe64ba5c63
@@ -349,20 +349,11 @@ static int rockchip_dp_remove(struct platform_device *pdev)
|
||||
return 0;
|
||||
}
|
||||
|
||||
#ifdef CONFIG_PM_SLEEP
|
||||
static int rockchip_dp_suspend(struct device *dev)
|
||||
{
|
||||
return analogix_dp_suspend(dev);
|
||||
}
|
||||
|
||||
static int rockchip_dp_resume(struct device *dev)
|
||||
{
|
||||
return analogix_dp_resume(dev);
|
||||
}
|
||||
#endif
|
||||
|
||||
static const struct dev_pm_ops rockchip_dp_pm_ops = {
|
||||
SET_SYSTEM_SLEEP_PM_OPS(rockchip_dp_suspend, rockchip_dp_resume)
|
||||
#ifdef CONFIG_PM_SLEEP
|
||||
.suspend = analogix_dp_suspend,
|
||||
.resume_early = analogix_dp_resume,
|
||||
#endif
|
||||
};
|
||||
|
||||
static const struct of_device_id rockchip_dp_dt_ids[] = {
|
||||
|
||||
Reference in New Issue
Block a user