WSL2-Linux-Kernel/drivers/gpu/drm/mediatek
Nícolas F. R. A. Prado 5daef0042d drm/mediatek: dsi: Move mtk_dsi_stop() call back to mtk_dsi_poweroff()
[ Upstream commit 90144dd8b0 ]

As the comment right before the mtk_dsi_stop() call advises,
mtk_dsi_stop() should only be called after
mtk_drm_crtc_atomic_disable(). That's because that function calls
drm_crtc_wait_one_vblank(), which requires the vblank irq to be enabled.

Previously mtk_dsi_stop(), being in mtk_dsi_poweroff() and guarded by a
refcount, would only be called at the end of
mtk_drm_crtc_atomic_disable(), through the call to mtk_crtc_ddp_hw_fini().
Commit cde7e2e35c ("drm/mediatek: Separate poweron/poweroff from
enable/disable and define new funcs") moved the mtk_dsi_stop() call to
mtk_output_dsi_disable(), causing it to be called before
mtk_drm_crtc_atomic_disable(), and consequently generating vblank
timeout warnings during suspend.

Move the mtk_dsi_stop() call back to mtk_dsi_poweroff() so that we have
a working vblank irq during mtk_drm_crtc_atomic_disable() and stop
getting vblank timeout warnings.

Fixes: cde7e2e35c ("drm/mediatek: Separate poweron/poweroff from enable/disable and define new funcs")
Signed-off-by: Nícolas F. R. A. Prado <nfraprado@collabora.com>
Tested-by: Hsin-Yi Wang <hsinyi@chromium.org>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Tested-by: Allen-KH Cheng <allen-kh.cheng@mediatek.com>
Link: http://lists.infradead.org/pipermail/linux-mediatek/2022-August/046713.html
Signed-off-by: Chun-Kuang Hu <chunkuang.hu@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-09-28 11:11:53 +02:00
..
Kconfig
Makefile drm/mediatek: Separate aal sub driver 2021-07-25 08:25:45 +08:00
mtk_cec.c drm/mediatek: Fix mtk_cec_mask() 2022-06-09 10:22:45 +02:00
mtk_cec.h
mtk_disp_aal.c drm for v5.15-rc1 2021-09-01 11:26:46 -07:00
mtk_disp_ccorr.c
mtk_disp_color.c drm/mediatek: Add component_del in OVL and COLOR remove function 2021-08-12 07:00:50 +08:00
mtk_disp_drv.h drm/mediatek: Add vblank register/unregister callback functions 2022-07-12 16:35:07 +02:00
mtk_disp_gamma.c
mtk_disp_ovl.c drm/mediatek: Add vblank register/unregister callback functions 2022-07-12 16:35:07 +02:00
mtk_disp_rdma.c drm/mediatek: Add vblank register/unregister callback functions 2022-07-12 16:35:07 +02:00
mtk_dpi.c drm/mediatek: dpi: Only enable dpi after the bridge is enabled 2022-08-17 14:23:27 +02:00
mtk_dpi_regs.h
mtk_drm_crtc.c drm/mediatek: Add vblank register/unregister callback functions 2022-07-12 16:35:07 +02:00
mtk_drm_crtc.h
mtk_drm_ddp_comp.c drm/mediatek: Add vblank register/unregister callback functions 2022-07-12 16:35:07 +02:00
mtk_drm_ddp_comp.h drm/mediatek: Add vblank register/unregister callback functions 2022-07-12 16:35:07 +02:00
mtk_drm_drv.c Mediatek DRM Next for Linux 5.15 2021-08-17 10:32:18 +10:00
mtk_drm_drv.h drm/mediatek: Separate aal sub driver 2021-07-25 08:25:45 +08:00
mtk_drm_gem.c drm/mediatek: Implement mmap as GEM object function 2021-08-09 21:23:51 +08:00
mtk_drm_gem.h drm/mediatek: Implement mmap as GEM object function 2021-08-09 21:23:51 +08:00
mtk_drm_plane.c drm for v5.15-rc1 2021-09-01 11:26:46 -07:00
mtk_drm_plane.h
mtk_dsi.c drm/mediatek: dsi: Move mtk_dsi_stop() call back to mtk_dsi_poweroff() 2022-09-28 11:11:53 +02:00
mtk_hdmi.c drm/mediatek: hdmi: Perform NULL pointer check for mtk_hdmi_conf 2021-12-29 12:28:39 +01:00
mtk_hdmi.h
mtk_hdmi_ddc.c
mtk_hdmi_regs.h