Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp3523897pxv; Mon, 28 Jun 2021 06:35:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzgaVbTF1MP+1YWO+shh2q4zbtuR/WIkn7W4Ot1GPb6O1BAz0ojRTPeaVzBNlbvfJGhN7mv X-Received: by 2002:a17:906:8144:: with SMTP id z4mr24495904ejw.244.1624887335154; Mon, 28 Jun 2021 06:35:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624887335; cv=none; d=google.com; s=arc-20160816; b=wgLgGlm52Q1pP9+ZqDDqw1d5M2VSVUiNC2yQ5f13bbw0RJhzO5+fmLmAzHPdr0t91q Frh7r+F/6awTWJ1NZu6LRc8kzE6zFkN5DhueI6AwKee37PsO1JjmvRC94U57q/NjUR5/ o4FhJ1iFiPD2OrMGJJhF1dqlTbKTkYQbS+57gW+w+ItS7Wu6wBoMGYESLBHJCrkve+Nz q8GC/h50OPTlIa5uwpjoNmLa24ZIkyfNQA6t19Nbh0welhR9+xWQvgyi2Y06fP1B5G1F 7el0/0/BERaq0iiqttobjduMHkOugS2ek1QF4nAxNjBpetpq1Vf8z02oxOTDNQA2nuIV gefQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=sJyiIEbEMivm80n4BBUcvoBVGbBaWYfZCbpsq9HYvaI=; b=RhR/DUpGaktfFHOcVOkO307c7iLp+gRyKlN8HXvYSDf58jmk5BpLsjzFmZ2DvqtqCW TF2MbfvMJN9pA8gb9dQITlQiq+hEYFQ409/pLxYZLSz8/XjcElLGBp177d+/mg63vypz f+cf3onlmd4tZh30RPETn72N1fIAHDHDPYFIDfJvpdyHPcNnbvJr0mx3/Uzw1qE15WRQ AGAu2quTbPmGuaK7Znlmh/vg+DuKS5G7p8tMtBmtxHin6t69Z6T7rdh+g0zziFITZGjf NZx7q3MIPyxq/rKOJ/t3Mqwt+VhHsaZZEg9eRC3z64ySpEe/DJwSvW35GMPmsh1MDKBI W+SQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=WSoM2MxA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bc21si220343edb.138.2021.06.28.06.35.10; Mon, 28 Jun 2021 06:35:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=WSoM2MxA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231992AbhF1NgB (ORCPT + 99 others); Mon, 28 Jun 2021 09:36:01 -0400 Received: from perceval.ideasonboard.com ([213.167.242.64]:56100 "EHLO perceval.ideasonboard.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231978AbhF1Nf7 (ORCPT ); Mon, 28 Jun 2021 09:35:59 -0400 Received: from pendragon.ideasonboard.com (62-78-145-57.bb.dnainternet.fi [62.78.145.57]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 89E18B8A; Mon, 28 Jun 2021 15:33:30 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1624887210; bh=8EvENliQ1czpJAVajAWWleB/PdHmKzVxxIK0OwYkJWQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=WSoM2MxAntz0fEuJAwhHPQ4QfYRSPEbdK2R11MuQQpO5r5olL00xbUF+6myFKKIrq JOL7bDgdSriHiDvo3h6NJQoc46+RHCJVoC/jil7vXTn4r450VJWKtRREQkZLiImWtI wyo1gLiBPIC4t3y6RlZ3MLlZKCr8p686kUIQZLtU= Date: Mon, 28 Jun 2021 16:33:29 +0300 From: Laurent Pinchart To: rajeevny@codeaurora.org Cc: dri-devel@lists.freedesktop.org, linux-arm-msm@vger.kernel.org, freedreno@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, thierry.reding@gmail.com, sam@ravnborg.org, robdclark@gmail.com, dianders@chromium.org, lyude@redhat.com, jani.nikula@intel.com, robh@kernel.org, a.hajda@samsung.com, daniel.thompson@linaro.org, hoegsberg@chromium.org, abhinavk@codeaurora.org, seanpaul@chromium.org, kalyan_t@codeaurora.org, mkrishn@codeaurora.org Subject: Re: [v8 4/6] drm/panel-simple: Update validation warnings for eDP panel description Message-ID: References: <1624726268-14869-1-git-send-email-rajeevny@codeaurora.org> <1624726268-14869-5-git-send-email-rajeevny@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Rajeev, On Mon, Jun 28, 2021 at 05:46:24PM +0530, rajeevny@codeaurora.org wrote: > On 27-06-2021 23:48, Laurent Pinchart wrote: > > On Sat, Jun 26, 2021 at 10:21:06PM +0530, Rajeev Nandan wrote: > >> Do not give a warning for the eDP panels if the "bus_format" is > >> not specified, since most eDP panels can support more than one > >> bus formats and this can be auto-detected. > >> Also, update the check to include bpc=10 for the eDP panel. > >> > >> Signed-off-by: Rajeev Nandan > >> --- > >> > >> Changes in v8: > >> - New patch, to address the review comments of Sam Ravnborg [1] > >> > >> [1] > >> https://lore.kernel.org/dri-devel/20210621184157.GB918146@ravnborg.org/ > >> > >> drivers/gpu/drm/panel/panel-simple.c | 6 ++---- > >> 1 file changed, 2 insertions(+), 4 deletions(-) > >> > >> diff --git a/drivers/gpu/drm/panel/panel-simple.c > >> b/drivers/gpu/drm/panel/panel-simple.c > >> index 86e5a45..f966b562 100644 > >> --- a/drivers/gpu/drm/panel/panel-simple.c > >> +++ b/drivers/gpu/drm/panel/panel-simple.c > >> @@ -772,10 +772,8 @@ static int panel_simple_probe(struct device *dev, > >> const struct panel_desc *desc, > >> desc->bpc != 8); > >> break; > >> case DRM_MODE_CONNECTOR_eDP: > >> - if (desc->bus_format == 0) > >> - dev_warn(dev, "Specify missing bus_format\n"); > >> - if (desc->bpc != 6 && desc->bpc != 8) > >> - dev_warn(dev, "Expected bpc in {6,8} but got: %u\n", desc->bpc); > >> + if (desc->bpc != 6 && desc->bpc != 8 && desc->bpc != 10) > >> + dev_warn(dev, "Expected bpc in {6,8,10} but got: %u\n", desc->bpc); > > > > You'll still get a warning is bpc == 0, is that intentional ? > > This was not intentional, I missed considering bpc=0 case. As we are > removing the warning for bus_format=0 then a similar thing can be done > for the bpc=0 also. The bpc value should be a valid one if it is > specified. Unlike the bus_format, bpc has few possible values that can > be checked here along with 0. Please correct me if I misunderstood the > concept. > I will fix this. What's the point of specifying bpc if it's optional though ? Users of the panel will need to support the case where bpc is set to 0. Have you ensured that they all do ? Can they meaningfully use the bpc value if they need to be ready to support bpc == 0 ? -- Regards, Laurent Pinchart