LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* [PATCH] DRM: ARC: PGU: interlaced mode not supported
@ 2020-03-11 13:13 Eugeniy Paltsev
  2020-03-11 13:21 ` Greg KH
  0 siblings, 1 reply; 3+ messages in thread
From: Eugeniy Paltsev @ 2020-03-11 13:13 UTC (permalink / raw)
  To: dri-devel, Alexey Brodkin
  Cc: linux-snps-arc, linux-kernel, David Airlie, Daniel Vetter,
	stable, Eugeniy Paltsev

Filter out interlaced modes as they are not supported by ARC PGU
hardware.

Signed-off-by: Eugeniy Paltsev <Eugeniy.Paltsev@synopsys.com>
---
 drivers/gpu/drm/arc/arcpgu_crtc.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/drivers/gpu/drm/arc/arcpgu_crtc.c b/drivers/gpu/drm/arc/arcpgu_crtc.c
index 8ae1e1f97a73..c854066d4c75 100644
--- a/drivers/gpu/drm/arc/arcpgu_crtc.c
+++ b/drivers/gpu/drm/arc/arcpgu_crtc.c
@@ -67,6 +67,9 @@ static enum drm_mode_status arc_pgu_crtc_mode_valid(struct drm_crtc *crtc,
 	long rate, clk_rate = mode->clock * 1000;
 	long diff = clk_rate / 200; /* +-0.5% allowed by HDMI spec */
 
+	if (mode->flags & DRM_MODE_FLAG_INTERLACE)
+		return MODE_NO_INTERLACE;
+
 	rate = clk_round_rate(arcpgu->clk, clk_rate);
 	if ((max(rate, clk_rate) - min(rate, clk_rate) < diff) && (rate > 0))
 		return MODE_OK;
-- 
2.21.1


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

end of thread, other threads:[~2020-03-12  5:08 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-11 13:13 [PATCH] DRM: ARC: PGU: interlaced mode not supported Eugeniy Paltsev
2020-03-11 13:21 ` Greg KH
2020-03-12  5:07   ` Alexey Brodkin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).