From 0e601b1acb12580daecb3cf3462407f608e6aed0 Mon Sep 17 00:00:00 2001 From: zain wang Date: Wed, 23 Aug 2017 14:47:16 +0800 Subject: [PATCH] drm/rockchip: use suspend_late matching the resume_early Sometimes, we would abort suspend work before it finished. In this case, suspend work would try to resume the part suspended by correspond resume functions. But the suspend/resume functions are not matched in rockchip. When the suspend work is aborted, it would ignored resuming this part due to can't find correspond resume functions. So, let's use suspend_late instead of suspend. Change-Id: I7304f7963704de7e870fbd4e76ebe1e0066f18c1 Signed-off-by: zain wang --- drivers/gpu/drm/rockchip/analogix_dp-rockchip.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/rockchip/analogix_dp-rockchip.c b/drivers/gpu/drm/rockchip/analogix_dp-rockchip.c index 6ae3c0472532..9dd70df98daf 100644 --- a/drivers/gpu/drm/rockchip/analogix_dp-rockchip.c +++ b/drivers/gpu/drm/rockchip/analogix_dp-rockchip.c @@ -429,7 +429,7 @@ static int rockchip_dp_remove(struct platform_device *pdev) static const struct dev_pm_ops rockchip_dp_pm_ops = { #ifdef CONFIG_PM_SLEEP - .suspend = analogix_dp_suspend, + .suspend_late = analogix_dp_suspend, .resume_early = analogix_dp_resume, #endif };