linux-stable/drivers/gpu/drm/rockchip
Douglas Anderson 6cb4997861 drm/rockchip: Suspend DP late
[ Upstream commit f7ccbed656 ]

In commit fe64ba5c63 ("drm/rockchip: Resume DP early") we moved
resume to be early but left suspend at its normal time.  This seems
like it could be OK, but casues problems if a suspend gets interrupted
partway through.  The OS only balances matching suspend/resume levels.
...so if suspend was called then resume will be called.  If suspend
late was called then resume early will be called.  ...but if suspend
was called resume early might not get called.  This leads to an
unbalance in the clock enables / disables.

Lets take the simple fix and just move suspend to be late to match.
This makes the PM core take proper care in keeping things balanced.

Fixes: fe64ba5c63 ("drm/rockchip: Resume DP early")
Signed-off-by: Douglas Anderson <dianders@chromium.org>
Signed-off-by: Sean Paul <seanpaul@chromium.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20190802184616.44822-1-dianders@chromium.org
Signed-off-by: Sasha Levin <sashal@kernel.org>
2019-08-29 08:28:40 +02:00
..
Kconfig
Makefile
analogix_dp-rockchip.c drm/rockchip: Suspend DP late 2019-08-29 08:28:40 +02:00
cdn-dp-core.c drm: drop _mode_ from drm_mode_connector_attach_encoder 2018-07-13 18:40:27 +02:00
cdn-dp-core.h
cdn-dp-reg.c drm/rockchip: fix for mailbox read validation. 2019-05-02 09:58:52 +02:00
cdn-dp-reg.h
dw-mipi-dsi.c drm: drop _mode_ from drm_mode_connector_attach_encoder 2018-07-13 18:40:27 +02:00
dw_hdmi-rockchip.c drm/rockchip: dw_hdmi: Move HDMI vpll clock enable to bind() 2018-03-08 17:32:53 +01:00
inno_hdmi.c drm: drop _mode_ from drm_mode_connector_attach_encoder 2018-07-13 18:40:27 +02:00
inno_hdmi.h
rockchip_drm_drv.c drm/rockchip: shutdown drm subsystem on shutdown 2019-06-09 09:17:23 +02:00
rockchip_drm_drv.h drm/rockchip: pre dither down when output bpc is 8bit 2018-04-24 08:34:47 +02:00
rockchip_drm_fb.c drm/rockchip: rockchip_drm_fb -> drm_framebuffer 2018-05-18 16:02:05 +01:00
rockchip_drm_fb.h drm/rockchip: rockchip_drm_fb -> drm_framebuffer 2018-05-18 16:02:05 +01:00
rockchip_drm_fbdev.c
rockchip_drm_fbdev.h
rockchip_drm_gem.c drm/rockchip: fixup comment for gem_free_object_unlocked 2018-03-28 17:07:36 +02:00
rockchip_drm_gem.h drm/rockchip: support prime import sg table 2018-02-18 11:16:40 +01:00
rockchip_drm_psr.c drm/rockchip: psr: do not dereference encoder before it is null checked. 2019-01-13 09:51:11 +01:00
rockchip_drm_psr.h drm/rockchip: psr: Remove flush by CRTC 2018-04-24 08:34:54 +02:00
rockchip_drm_vop.c drm/rockchip: Properly adjust to a true clock in adjusted_mode 2019-07-31 07:27:00 +02:00
rockchip_drm_vop.h drm/rockchip: vop: fixup linebuffer mode calc error 2018-06-27 14:07:40 +02:00
rockchip_lvds.c drm: drop _mode_ from drm_mode_connector_attach_encoder 2018-07-13 18:40:27 +02:00
rockchip_lvds.h
rockchip_vop_reg.c drm/rockchip: pre dither down when output bpc is 8bit 2018-04-24 08:34:47 +02:00
rockchip_vop_reg.h