Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp1357020ybi; Sun, 30 Jun 2019 13:37:21 -0700 (PDT) X-Google-Smtp-Source: APXvYqw9D93c934cSnpJEb3CZvOLKE139Z8TErsbVqV3NZyrc0AGkJhsrETV9pxblnKa2PZ3CgDF X-Received: by 2002:a63:6c04:: with SMTP id h4mr17600836pgc.94.1561927041345; Sun, 30 Jun 2019 13:37:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561927041; cv=none; d=google.com; s=arc-20160816; b=odjQFHqSizcUIxfzU4tfcyEx/TOBeV6kPQ1KNowNVA28BFU6FN9r/t1GUOnkggq6kO 6HvJuPJD/ruPizs9zWxhelmlrn+6nOq/QDcjHeQJs/BG2tgX4BTagJ7MBd5sJQmLGmw0 xIzse6RULUmHweG+l++CSCvryupILHQahj1z+PpezfvuE+CyvsUeeSQ+Pt+r4XwNOcnQ ccFGR5NOa+t3eZSGtyCeNr6hvas7K72v+uwklMvDAov4M8vC/kPeyaOcGpe07JyG0fv9 l0Vef5sP7dCmpOWsIfNHBB+eEGFXm6wl5ghJCEGiPW+iX+LdtT2bosOOSehRke0ZJMrw Zyhg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=lGEzi3rZFhztwDih+Hol2g8UiJzMglCc2xvgIhiXaXg=; b=ACtIGlvVUTzOxuSv3zfMbiwiaEIx3v4QxuEtOrMgKSuB8YlknLnVxupCGIJvT5sAgr ejG+ELoV+qbMFy+YohIjfKHLtF6UU6NOMpfQVckOOEXKA6BAhYMwvR7SvtMbJYRMEVMR LUVNIr0xAxUAfnZ3XnzMeDUUq2r4msInSMjayBndJ/VuYiRnnaye1wXif+eWEMuZswW1 XmbjwkuBZTkd56lqrkpwjlW0K5abgVK36fTweOsT/D+60Oz8V8ph+dBp74lWIHKyAxAm 861TblViqh6wZwPZdIZLL3A6gfevTpkj2jr92pamT+UPakQlG6nx1Zfc93A2JkuWtmyh wp2w== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e25si9751216pff.30.2019.06.30.13.36.43; Sun, 30 Jun 2019 13:37:21 -0700 (PDT) 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726830AbfF3UWx (ORCPT + 99 others); Sun, 30 Jun 2019 16:22:53 -0400 Received: from asavdk3.altibox.net ([109.247.116.14]:34876 "EHLO asavdk3.altibox.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726719AbfF3UWx (ORCPT ); Sun, 30 Jun 2019 16:22:53 -0400 Received: from ravnborg.org (unknown [158.248.194.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by asavdk3.altibox.net (Postfix) with ESMTPS id B93E120070; Sun, 30 Jun 2019 22:22:47 +0200 (CEST) Date: Sun, 30 Jun 2019 22:22:46 +0200 From: Sam Ravnborg To: Douglas Anderson Cc: Thierry Reding , Heiko Stuebner , Sean Paul , devicetree@vger.kernel.org, Rob Herring , David Airlie , Jeffy Chen , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, linux-rockchip@lists.infradead.org, Boris Brezillon , Laurent Pinchart , Enric =?iso-8859-1?Q?Balletb=F2?= , =?iso-8859-1?Q?St=E9phane?= Marchesin , Ezequiel Garcia , mka@chromium.org Subject: Re: [PATCH v5 2/7] drm/panel: simple: Add ability to override typical timing Message-ID: <20190630202246.GB15102@ravnborg.org> References: <20190401171724.215780-1-dianders@chromium.org> <20190401171724.215780-3-dianders@chromium.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20190401171724.215780-3-dianders@chromium.org> User-Agent: Mutt/1.10.1 (2018-07-13) X-CMAE-Score: 0 X-CMAE-Analysis: v=2.3 cv=dqr19Wo4 c=1 sm=1 tr=0 a=UWs3HLbX/2nnQ3s7vZ42gw==:117 a=UWs3HLbX/2nnQ3s7vZ42gw==:17 a=jpOVt7BSZ2e4Z31A5e1TngXxSK0=:19 a=8nJEP1OIZ-IA:10 a=cm27Pg_UAAAA:8 a=-VAfIpHNAAAA:8 a=s8YR1HE3AAAA:8 a=VwQbUJbxAAAA:8 a=pGLkceISAAAA:8 a=e5mUnYsNAAAA:8 a=QX4gbG5DAAAA:8 a=VQv1v-rfpna5m5GkDzwA:9 a=WdM8EmG1RyxdikVb:21 a=PK01xQEQwDdgTzne:21 a=wPNLvfGTeEIA:10 a=xmb-EsYY8bH0VWELuYED:22 a=srlwD-8ojaedGGhPAyx8:22 a=jGH_LyMDp9YhSvY-UuyI:22 a=AjGcO6oz07-iQ99wixmX:22 a=Vxmtnl_E_bksehYqCbjh:22 a=AbAUZ8qAyYyZVLSsDulk:22 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Douglas. Again, long overdue. The review triggered several questions that you should have had a long time ago. Hopefully they makes sense to you. Sam On Mon, Apr 01, 2019 at 10:17:19AM -0700, Douglas Anderson wrote: > From: Sean Paul > > This patch adds the ability to override the typical display timing for a > given panel. This is useful for devices which have timing constraints > that do not apply across the entire display driver (eg: to avoid > crosstalk between panel and digitizer on certain laptops). The rules are > as follows: > > - panel must not specify fixed mode (since the override mode will > either be the same as the fixed mode, or we'll be unable to > check the bounds of the overried) > - panel must specify at least one display_timing range which will be > used to ensure the override mode fits within its bounds > > Changes in v2: > - Parse the full display-timings node (using the native-mode) (Rob) > Changes in v3: > - No longer parse display-timings subnode, use panel-timing (Rob) > Changes in v4: > - Don't add mode from timing if override was specified (Thierry) > - Add warning if timing and fixed mode was specified (Thierry) > - Don't add fixed mode if timing was specified (Thierry) > - Refactor/rename a bit to avoid extra indentation from "if" tests > - i should be unsigned (Thierry) > - Add annoying WARN_ONs for some cases (Thierry) > - Simplify 'No display_timing found' handling (Thierry) > - Rename to panel_simple_parse_override_mode() (Thierry) > Changes in v5: > - Added Heiko's Tested-by > > Cc: Doug Anderson > Cc: Eric Anholt > Cc: Heiko Stuebner > Cc: Jeffy Chen > Cc: Rob Herring > Cc: St?phane Marchesin > Cc: Thierry Reding > Cc: devicetree@vger.kernel.org > Cc: dri-devel@lists.freedesktop.org > Signed-off-by: Sean Paul > Tested-by: Enric Balletbo i Serra > Signed-off-by: Douglas Anderson > Tested-by: Heiko Stuebner > --- > > drivers/gpu/drm/panel/panel-simple.c | 109 +++++++++++++++++++++++++-- > 1 file changed, 104 insertions(+), 5 deletions(-) > > diff --git a/drivers/gpu/drm/panel/panel-simple.c b/drivers/gpu/drm/panel/panel-simple.c > index 9e8218f6a3f2..ad4f4aac2d44 100644 > --- a/drivers/gpu/drm/panel/panel-simple.c > +++ b/drivers/gpu/drm/panel/panel-simple.c > @@ -34,6 +34,7 @@ > #include > > #include