OrangePi_CM5/drivers/gpu/drm/mediatek
Nícolas F. R. A. Prado fd938b4ce0 drm/mediatek: dsi: Move mtk_dsi_stop() call back to mtk_dsi_poweroff()
[ Upstream commit 90144dd8b0d137d9e78ef34b3c418e51a49299ad ]

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 cde7e2e35c28 ("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: cde7e2e35c28 ("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:10:36 +02:00
..
Kconfig
Makefile
mtk_cec.c drm/mediatek: Fix mtk_cec_mask() 2022-06-09 10:21:00 +02:00
mtk_cec.h
mtk_disp_color.c
mtk_disp_ovl.c
mtk_disp_rdma.c
mtk_dpi.c drm/mediatek: dpi: Only enable dpi after the bridge is enabled 2022-08-21 15:15:44 +02:00
mtk_dpi_regs.h
mtk_drm_crtc.c
mtk_drm_crtc.h
mtk_drm_ddp.c
mtk_drm_ddp.h
mtk_drm_ddp_comp.c drm/mediatek: Add AAL output size configuration 2021-08-26 08:35:43 -04:00
mtk_drm_ddp_comp.h soc / drm: mediatek: Move DDP component defines into mtk-mmsys.h 2021-08-26 08:35:42 -04:00
mtk_drm_drv.c
mtk_drm_drv.h
mtk_drm_gem.c
mtk_drm_gem.h
mtk_drm_plane.c
mtk_drm_plane.h
mtk_dsi.c drm/mediatek: dsi: Move mtk_dsi_stop() call back to mtk_dsi_poweroff() 2022-09-28 11:10:36 +02:00
mtk_hdmi.c
mtk_hdmi.h
mtk_hdmi_ddc.c
mtk_hdmi_regs.h
mtk_mipi_tx.c phy: mediatek: Fix missing check in mtk_mipi_tx_probe 2022-01-27 10:54:24 +01:00
mtk_mipi_tx.h
mtk_mt8173_mipi_tx.c
mtk_mt8183_mipi_tx.c