mirror_ubuntu-kernels/drivers/gpu/drm/mediatek
Nícolas F. R. A. Prado 90144dd8b0 drm/mediatek: dsi: Move mtk_dsi_stop() call back to mtk_dsi_poweroff()
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>
2022-09-22 07:31:43 +08:00
..
Kconfig phy: mediatek: Move mtk_mipi_dsi_phy driver into drivers/phy/mediatek folder 2020-11-30 23:42:40 +08:00
Makefile drm/mediatek: Add display MDP RDMA support for MT8195 2022-06-27 22:24:14 +08:00
mtk_cec.c drm/mediatek: Fix mtk_cec_mask() 2022-04-06 22:34:28 +08:00
mtk_cec.h
mtk_disp_aal.c drm/mediatek: Add lut diff flag for new gamma hardware support 2022-04-29 06:14:49 +08:00
mtk_disp_ccorr.c drm/mediatek: Add support for Mediatek SoC MT8192 2021-11-16 07:29:48 +08:00
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 display merge start/stop API for cmdq support 2022-06-27 22:32:28 +08:00
mtk_disp_gamma.c drm/mediatek: Add lut diff flag for new gamma hardware support 2022-04-29 06:14:49 +08:00
mtk_disp_merge.c drm/mediatek: Add display merge async reset control 2022-06-27 22:39:37 +08:00
mtk_disp_ovl.c drm: Drop drm_blend.h from drm_crtc.h 2022-06-20 23:53:55 +03:00
mtk_disp_rdma.c Mediatek DRM Next for Linux 5.20 2022-07-12 17:01:42 +10:00
mtk_dpi_regs.h drm/mediatek: dpi: Add dp_intf support 2022-07-06 22:51:44 +08:00
mtk_dpi.c Mediatek DRM Next for Linux 5.20 2022-07-12 17:01:42 +10:00
mtk_drm_crtc.c drm/mediatek: Add vblank register/unregister callback functions 2022-04-06 07:10:26 +08:00
mtk_drm_crtc.h drm-misc-next for 5.13: 2021-03-16 17:08:46 +10:00
mtk_drm_ddp_comp.c drm/mediatek: Fix wrong dither settings 2022-09-13 07:10:08 +08:00
mtk_drm_ddp_comp.h drm/mediatek: dpi: Add dp_intf support 2022-07-06 22:51:44 +08:00
mtk_drm_drv.c drm/mediatek: dpi: Add dp_intf support 2022-07-06 22:51:44 +08:00
mtk_drm_drv.h drm/mediatek: Add display MDP RDMA support for MT8195 2022-06-27 22:24:14 +08:00
mtk_drm_gem.c dma-buf-map: Rename to iosys-map 2022-02-07 16:35:35 -08:00
mtk_drm_gem.h dma-buf-map: Rename to iosys-map 2022-02-07 16:35:35 -08:00
mtk_drm_plane.c Mediatek DRM Next for Linux 5.20 2022-07-12 17:01:42 +10:00
mtk_drm_plane.h drm/mediatek: Add mediatek-drm plane color encoding info 2022-06-27 22:42:20 +08:00
mtk_dsi.c drm/mediatek: dsi: Move mtk_dsi_stop() call back to mtk_dsi_poweroff() 2022-09-22 07:31:43 +08:00
mtk_hdmi_ddc.c drm/mediatek: Add missing MODULE_DEVICE_TABLE() 2021-03-31 19:38:06 +08:00
mtk_hdmi_regs.h
mtk_hdmi.c drm/mediatek: hdmi: Perform NULL pointer check for mtk_hdmi_conf 2021-12-13 21:01:11 +08:00
mtk_hdmi.h drm/mediatek: Separate mtk_hdmi_phy to an independent module 2020-09-06 07:02:54 +08:00
mtk_mdp_rdma.c drm/mediatek: Add display MDP RDMA support for MT8195 2022-06-27 22:24:14 +08:00
mtk_mdp_rdma.h drm/mediatek: Add display MDP RDMA support for MT8195 2022-06-27 22:24:14 +08:00