Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp504717ybf; Sat, 29 Feb 2020 08:32:24 -0800 (PST) X-Google-Smtp-Source: APXvYqwQNeRjXgT00h+mK3Ek3Vq8GjBk1Hd5+mIdrYPeP04PLzqyv4SE/2qd61BE0NeQioKoIed6 X-Received: by 2002:a9d:7842:: with SMTP id c2mr6958144otm.252.1582993944658; Sat, 29 Feb 2020 08:32:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582993944; cv=none; d=google.com; s=arc-20160816; b=bB8Itr/FM6c5rbSfG9SByZLpNoTdNKxe/LBSJ0QkuXd31hQvTSNcwKfSFAchfn6mNE vMAL/yKdVku9PRtWDtM301ljpV2IgUNStE/8VLGp3Gi+ocQ6Vuarc+MEAC3t/MaFBkq9 dZp0npW7xe+EhjZ3yQBloG7LkY0/bgxpPWv1nK4YSRzQGR8LL5iL+ielJ4TmRWo8PbRy VbTTxm9de7qGbbUW1OMrHT67bbXCG97wD3zuelnoAgPtN/2IQHjxlM7Ds73RZ+jaqECp 0zgneyZS9ff/6CDfS8+6rwaurAXSB7ZL7inU3TnTBofczF85dOEfSuVYhi8OIQmXUjm6 T+Pg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=DuViz2lwNmt+qR6racTmNKEAHQEOMLNv5WLMLdRvMLQ=; b=ptUKAvqcpiB21CaAQnGf1SSBZOPm0G3y8JV/irosFeY32yschq69dIrg7OaWmyhkn4 2TKG4ZJHtpdyH842k7w50EmGd5Ehgc3DVmjlo3iNoDyOH+thvpDuvt7tFo8vZ6cOcYF9 PEZhibAu/A/S6crLVoySK1KedP8GfrsuECOojd4U7qEG8DkesvRSVs70PqQECL0rf39U TcPGWU6KLS+nVMiWFdRmOf71p7j7o0pruWuid2hbdGavZgjsa8YmJVg+oxJif/GW7Jul 3ULAOIY+v4D/9yzTzwsKRXoLlExkGcHPrm92oi44cAdk641SxaVoJHmfFA91HnhvLViI 6xEg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=siol.net Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 45si3517817otg.7.2020.02.29.08.32.12; Sat, 29 Feb 2020 08:32:24 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=siol.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727306AbgB2QbN (ORCPT + 99 others); Sat, 29 Feb 2020 11:31:13 -0500 Received: from mailoutvs19.siol.net ([185.57.226.210]:46111 "EHLO mail.siol.net" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727209AbgB2QbL (ORCPT ); Sat, 29 Feb 2020 11:31:11 -0500 Received: from localhost (localhost [127.0.0.1]) by mail.siol.net (Zimbra) with ESMTP id DFF3D5235EC; Sat, 29 Feb 2020 17:31:08 +0100 (CET) X-Virus-Scanned: amavisd-new at psrvmta12.zcs-production.pri Received: from mail.siol.net ([127.0.0.1]) by localhost (psrvmta12.zcs-production.pri [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id SV9myldJ_oFv; Sat, 29 Feb 2020 17:31:08 +0100 (CET) Received: from mail.siol.net (localhost [127.0.0.1]) by mail.siol.net (Zimbra) with ESMTPS id 96502523546; Sat, 29 Feb 2020 17:31:08 +0100 (CET) Received: from localhost.localdomain (cpe-194-152-20-232.static.triera.net [194.152.20.232]) (Authenticated sender: 031275009) by mail.siol.net (Zimbra) with ESMTPSA id 4608A5235F3; Sat, 29 Feb 2020 17:31:06 +0100 (CET) From: Jernej Skrabec To: a.hajda@samsung.com, narmstrong@baylibre.com Cc: Laurent.pinchart@ideasonboard.com, jonas@kwiboo.se, jernej.skrabec@siol.net, airlied@linux.ie, daniel@ffwll.ch, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [PATCH 3/4] drm/bridge: dw-hdmi: do not force "none" scan mode Date: Sat, 29 Feb 2020 17:30:42 +0100 Message-Id: <20200229163043.158262-4-jernej.skrabec@siol.net> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200229163043.158262-1-jernej.skrabec@siol.net> References: <20200229163043.158262-1-jernej.skrabec@siol.net> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Jonas Karlman Setting scan mode to "none" confuses some TVs like LG B8, which randomly change overscan procentage over time. Digital outputs like HDMI and DVI, handled by this controller, don't really need overscan, so we can always set scan mode to underscan. Actually, this is exactly what drm_hdmi_avi_infoframe_from_display_mode() already does, so we can just remove offending line. Signed-off-by: Jonas Karlman [updated commit message] Signed-off-by: Jernej Skrabec --- drivers/gpu/drm/bridge/synopsys/dw-hdmi.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/gpu/drm/bridge/synopsys/dw-hdmi.c b/drivers/gpu/drm/= bridge/synopsys/dw-hdmi.c index 9d7bfb1cb213..3d6021119942 100644 --- a/drivers/gpu/drm/bridge/synopsys/dw-hdmi.c +++ b/drivers/gpu/drm/bridge/synopsys/dw-hdmi.c @@ -1655,8 +1655,6 @@ static void hdmi_config_AVI(struct dw_hdmi *hdmi, s= truct drm_display_mode *mode) HDMI_EXTENDED_COLORIMETRY_XV_YCC_601; } =20 - frame.scan_mode =3D HDMI_SCAN_MODE_NONE; - /* * The Designware IP uses a different byte format from standard * AVI info frames, though generally the bits are in the correct --=20 2.25.1