All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drm/mediatek: hdmi: Filter interlaced resolutions
@ 2017-01-24  5:10 ` Bibby Hsieh
  0 siblings, 0 replies; 21+ messages in thread
From: Bibby Hsieh @ 2017-01-24  5:10 UTC (permalink / raw)
  To: David Airlie, Matthias Brugger, Daniel Vetter, dri-devel, linux-mediatek
  Cc: Yingjoe Chen, Cawa Cheng, Daniel Kurtz, Bibby Hsieh,
	Philipp Zabel, YT Shen, Thierry Reding, CK Hu, Mao Huang,
	linux-arm-kernel, linux-kernel, Sascha Hauer

Current Mediatek DRM driver does not support interlaced mode, and
will hang if such resolution is used: Filter those to prevent
kernel hangs, until the DRM driver is fixed properly.

Signed-off-by: Bibby Hsieh <bibby.hsieh@mediatek.com>
---
 drivers/gpu/drm/mediatek/mtk_hdmi.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/gpu/drm/mediatek/mtk_hdmi.c b/drivers/gpu/drm/mediatek/mtk_hdmi.c
index 0e8c4d9..e33678d 100644
--- a/drivers/gpu/drm/mediatek/mtk_hdmi.c
+++ b/drivers/gpu/drm/mediatek/mtk_hdmi.c
@@ -1244,6 +1244,8 @@ static int mtk_hdmi_conn_mode_valid(struct drm_connector *conn,
 			return MODE_BAD;
 	}
 
+	if (mode->flags & DRM_MODE_FLAG_INTERLACE)
+		return MODE_NO_INTERLACE;
 	if (mode->clock < 27000)
 		return MODE_CLOCK_LOW;
 	if (mode->clock > 297000)
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 21+ messages in thread

end of thread, other threads:[~2017-05-25  3:38 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-01-24  5:10 [PATCH] drm/mediatek: hdmi: Filter interlaced resolutions Bibby Hsieh
2017-01-24  5:10 ` Bibby Hsieh
2017-01-24  5:10 ` Bibby Hsieh
2017-01-24  6:12 ` CK Hu
2017-01-24  6:12   ` CK Hu
2017-01-24  6:12   ` CK Hu
2017-05-23  9:28 ` CK Hu
2017-05-23  9:28   ` CK Hu
2017-05-23  9:28   ` CK Hu
2017-05-23 13:12   ` Daniel Vetter
2017-05-23 13:12     ` Daniel Vetter
2017-05-23 13:12     ` Daniel Vetter
2017-05-24  9:20     ` CK Hu
2017-05-24  9:20       ` CK Hu
2017-05-24  9:20       ` CK Hu
2017-05-24 12:24       ` Daniel Vetter
2017-05-24 12:24         ` Daniel Vetter
2017-05-24 12:24         ` Daniel Vetter
2017-05-25  3:38         ` CK Hu
2017-05-25  3:38           ` CK Hu
2017-05-25  3:38           ` CK Hu

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.