From 9434eb764c30e30cd463723ce74ded54bfd74521 Mon Sep 17 00:00:00 2001 From: zain wang Date: Wed, 23 Aug 2017 14:47:16 +0800 Subject: [PATCH] drm/rockchip: analogix_dp: 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 080f05352195..6a4da3a0ff1c 100644 --- a/drivers/gpu/drm/rockchip/analogix_dp-rockchip.c +++ b/drivers/gpu/drm/rockchip/analogix_dp-rockchip.c @@ -436,7 +436,7 @@ static int rockchip_dp_resume(struct device *dev) static const struct dev_pm_ops rockchip_dp_pm_ops = { #ifdef CONFIG_PM_SLEEP - .suspend = rockchip_dp_suspend, + .suspend_late = rockchip_dp_suspend, .resume_early = rockchip_dp_resume, #endif };