Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp225506pxb; Mon, 7 Feb 2022 09:50:12 -0800 (PST) X-Google-Smtp-Source: ABdhPJwR5xYDv87KjBjtHcAXSoatzjltJoMO06cGc5SRz6SbG9278RiHoeuyTHKl6Wwf/e2H2aU0 X-Received: by 2002:aa7:cc06:: with SMTP id q6mr659811edt.44.1644256212199; Mon, 07 Feb 2022 09:50:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644256212; cv=none; d=google.com; s=arc-20160816; b=deMt7rZW7LHbfFRfibqf0whALlezDPduFyEzeOrfmtSKQjXvG0+i5VrqEeDUxFMvLM zqeEQNIE4vSWbS8NxYRtY0F8fqJitXBGxc8ImT5pM0bEMAOqGteoJssmEk47o2l6IAB+ 8RBnRwxbYzUfUvLukAQumULp+Futh2Z1suU3R96DYP+fDB41sV6mYTAZAqeW2I3JLJfq p4m2zVSduxHGVj8EBezigy9U54qMGzBNMhzGpR7szd8nmStpghSUhVGPTSQbihKcGnGT +A8BsxFQTx7IU3A/SK8sBK5etGtFC9Jp5Fu+ahfQG8MFmg0TRIY8bfOhwDaQSgS2h7TG Ab6g== 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; bh=QjfPfY74K9sSOKlJEmcYjPSw3nnD1W3//UkAhTH71Jk=; b=PH6IdrM8PqV2/eZQKUao4wn22336b2o3FVgjS8kVvWhp/HDxPDVd+PdDW+grQ9FPSA SNUpz2MQWJrZtpNUdVTyKRMcQ3q4iyWC359p17k+JJrSJ5p+QGF+PRuNNZLpOzgzy0ZB Fia8kqk8WzbbjopAsZH138y8cSXIj6ehqTDe/8onaaK8pLxf7WAo/za64W7KLl5lgFWp 3/RY6Su+R2DafSGu8+c/weIqqPRuSUWkh46nfk4/RyG7pxC2amZHednOXcWmhQS9x5M8 kXfiFtJGZUDINBx5wL/6K6sVlrNq0Dgt6seQzCXzFvsFZjuB+wkXvITAhInQZ3lH1Mxn eziQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id dt22si3271639ejc.211.2022.02.07.09.49.46; Mon, 07 Feb 2022 09:50:12 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234673AbiBFT1A (ORCPT + 99 others); Sun, 6 Feb 2022 14:27:00 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41022 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230064AbiBFT07 (ORCPT ); Sun, 6 Feb 2022 14:26:59 -0500 Received: from mx2.smtp.larsendata.com (mx2.smtp.larsendata.com [91.221.196.228]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ACF7DC06173B for ; Sun, 6 Feb 2022 11:26:56 -0800 (PST) Received: from mail01.mxhotel.dk (mail01.mxhotel.dk [91.221.196.236]) by mx2.smtp.larsendata.com (Halon) with ESMTPS id e3284930-8782-11ec-ac19-0050568cd888; Sun, 06 Feb 2022 19:27:56 +0000 (UTC) Received: from ravnborg.org (80-162-45-141-cable.dk.customer.tdc.net [80.162.45.141]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: sam@ravnborg.org) by mail01.mxhotel.dk (Postfix) with ESMTPSA id 014B5194BDB; Sun, 6 Feb 2022 20:26:52 +0100 (CET) Date: Sun, 6 Feb 2022 20:26:50 +0100 X-Report-Abuse-To: abuse@mxhotel.dk From: Sam Ravnborg To: David Heidelberg Cc: Thierry Reding , David Airlie , Daniel Vetter , dri-devel@lists.freedesktop.org, ~okias/devicetree@lists.sr.ht, linux-kernel@vger.kernel.org Subject: Re: [PATCH] drm/panel: JDI LT070ME05000 remove useless warning Message-ID: References: <20220206190702.450643-1-david@ixit.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220206190702.450643-1-david@ixit.cz> X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi David, On Sun, Feb 06, 2022 at 08:07:02PM +0100, David Heidelberg wrote: > Do as most of panel and in case of deffered probe, don't print error. > > Fixes warning: > panel-jdi-lt070me05000 4700000.dsi.0: cannot get enable-gpio -517 > > Signed-off-by: David Heidelberg > --- > drivers/gpu/drm/panel/panel-jdi-lt070me05000.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/drivers/gpu/drm/panel/panel-jdi-lt070me05000.c b/drivers/gpu/drm/panel/panel-jdi-lt070me05000.c > index ea0e7221e706..b5c0b51dc146 100644 > --- a/drivers/gpu/drm/panel/panel-jdi-lt070me05000.c > +++ b/drivers/gpu/drm/panel/panel-jdi-lt070me05000.c > @@ -408,7 +408,8 @@ static int jdi_panel_add(struct jdi_panel *jdi) > jdi->enable_gpio = devm_gpiod_get(dev, "enable", GPIOD_OUT_LOW); > if (IS_ERR(jdi->enable_gpio)) { > ret = PTR_ERR(jdi->enable_gpio); > - dev_err(dev, "cannot get enable-gpio %d\n", ret); > + if (ret != -EPROBE_DEFER) > + dev_err(dev, "cannot get enable-gpio %d\n", ret); > return ret; > } Thanks for submitting a fix for this. Please look into the use of dev_err_probe() for this as this is the preferred way to fix it now. Sam