Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp7155053ybi; Mon, 8 Jul 2019 15:45:40 -0700 (PDT) X-Google-Smtp-Source: APXvYqx9cZgrPVw3h5D5Car3QtwWMUDW1Smt7KyYfBbr5Wd/FAuQyat+Hz6biNw7ojvrl8mMMUnn X-Received: by 2002:a63:e62:: with SMTP id 34mr24238939pgo.331.1562625940442; Mon, 08 Jul 2019 15:45:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562625940; cv=none; d=google.com; s=arc-20160816; b=eturT+aXsNHmwpa3/4KY+Ac9Lfx+KEk5/+l/IQaIuVjWGxmTDjIn3DlwdjbgiT3g5D syK9x/ie4EYeUgI78I0g0413/JQb3u2XuBlOSLM+OgtwJBPWa30AdJi1BLF4v7rKgny+ 3OolYHPlJoUM1+HjN3EpeGxjZwb9JgkQQ2D4p/rdI01t15cd6JqQU5/W8dC9kzxeUKJV zTZgoWzkO+20dvM8f7RddZeUM/k4jf+M95Kmh0DtxxhbhD1dmmQetoOcsdDO0OxDzreV yz5xO/6Qpf6my9aP0czY5Yf06U0gY247s1HC62+PJnQDnQchDZseOZYyjw0Hna8Hn157 uRVQ== 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-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=PgJhnmPPvdP/RpoJTzI3fdyU5D9DYI/TTw476olWZFc=; b=0+Tr0SyoLRKPjv4CJMlwd55VA2j+bual7sCNFBKk47hj3D9d3YJsXc72UJg3+brhmq jSfC1AMXwbvdVGUaaDu8IhzEXV2NchKF1BCfhQCGBghPrYwzCRbI/6KCeeWgnYMVtmfA lL25XnTOmA51+9OGcQorRPlMi4xONNfz6/vnfQn0ZoNpLVe6LDTuZ1mbeM/PbhcM6Bhp ksHHOrSU9B2V0gdzhpWwswPSm7NrH5seoJNPLX1MhC4FHz1JAt60ClmSTxTiUzsk9VfW QUlmWrKdGgVxjwf5WFSGSYNp9NJ1Vnf9mLiSB5QuYvK7IHkqf627rXrAcHbaDanYT0Vf 3GoA== 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 6si19266555pld.293.2019.07.08.15.45.25; Mon, 08 Jul 2019 15:45:40 -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 S1732968AbfGHR4M (ORCPT + 99 others); Mon, 8 Jul 2019 13:56:12 -0400 Received: from asavdk4.altibox.net ([109.247.116.15]:41574 "EHLO asavdk4.altibox.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727576AbfGHR4L (ORCPT ); Mon, 8 Jul 2019 13:56:11 -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 asavdk4.altibox.net (Postfix) with ESMTPS id B2E35803AA; Mon, 8 Jul 2019 19:56:07 +0200 (CEST) Date: Mon, 8 Jul 2019 19:56:06 +0200 From: Sam Ravnborg To: Doug Anderson Cc: devicetree@vger.kernel.org, David Airlie , Jeffy Chen , LKML , Rob Herring , "open list:ARM/Rockchip SoC..." , Thierry Reding , Sean Paul , dri-devel , Boris Brezillon , Enric =?iso-8859-1?Q?Balletb=F2?= , =?iso-8859-1?Q?St=E9phane?= Marchesin , Ezequiel Garcia , Matthias Kaehlcke , Laurent Pinchart Subject: Re: [PATCH v5 2/7] drm/panel: simple: Add ability to override typical timing Message-ID: <20190708175606.GB3511@ravnborg.org> References: <20190401171724.215780-1-dianders@chromium.org> <20190401171724.215780-3-dianders@chromium.org> <20190630202246.GB15102@ravnborg.org> <20190630205514.GA17046@ravnborg.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) X-CMAE-Score: 0 X-CMAE-Analysis: v=2.3 cv=VcLZwmh9 c=1 sm=1 tr=0 a=UWs3HLbX/2nnQ3s7vZ42gw==:117 a=UWs3HLbX/2nnQ3s7vZ42gw==:17 a=jpOVt7BSZ2e4Z31A5e1TngXxSK0=:19 a=kj9zAlcOel0A:10 a=7gkXJVJtAAAA:8 a=LBenJKLw8faiQqQJsPgA:9 a=IF-Cv_vKzCxN9PTp:21 a=nRygc59OdNG9nXZ-:21 a=CjuIK1q_8ugA:10 a=E9Po1WZjFZOl8hwRPBS3:22 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jul 01, 2019 at 09:39:06AM -0700, Doug Anderson wrote: > Hi, > > On Sun, Jun 30, 2019 at 1:55 PM Sam Ravnborg wrote: > > > > Hi Douglas. > > > > > > + > > > > + /* Only add timings if override was not there or failed to validate */ > > > > + if (num == 0 && panel->desc->num_timings) > > > > + num = panel_simple_get_timings_modes(panel); > > > > + > > > > + /* > > > > + * Only add fixed modes if timings/override added no mode. > > > > > > This part I fail to understand. > > > If we have a panel where we in panel-simple have specified the timings, > > > and done so using display_timing so with proper {min, typ, max} then it > > > should be perfectly legal to specify a more precise variant in the DT > > > file. > > > Or what did I miss here? > > > > Got it now. > > If display_mode is used for timings this is what you call "fixed mode". > > Hmm, if I got confused someone else may also be confused by this naming. > > The name "fixed mode" comes from the old code, though I guess in the > old code it used to refer to a mode that came from either the > display_timing or the display_mode. > > How about if I call it "panel_simple_get_from_fixed_display_mode"? > ...or if you have another suggestion feel free to chime in. What we really want to distingush here is the use of display_mode and display_timings (if I got the names right). That display_mode specify a fixed timing and display_timing specify a valid range is something in the semantics of the two types. So naming that refer to display_mode versus display_timing will make the code simpler to understand. and then a nice comment that when display_mode is used one looses the possibility to use override_mode. That would be fine to have in the struct in the driver. > NOTE: Since this feedback is minor and this patch has been outstanding > for a while (and is blocking other work), I am assuming that the best > path forward is for Heiko to land this patch with Thierry's Ack and > I'll send a follow-up. Please yell if you disagree. Let's give the patches a spin more as we have passed the possibility for the current merge window. I am on vacation at the moment and thus slow in responses, but will be back at the home office next week and will be more responsive again. Sam - who is enjoying the alps in Austria