Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp610020pxk; Thu, 24 Sep 2020 13:45:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwphWO21Am7hvp9C0V7uk74LpDvQuSyaSy3olStM8MSSJAuBsuu0uS1XAN4dswLZI6Ut3sm X-Received: by 2002:a17:906:28c4:: with SMTP id p4mr422100ejd.345.1600980309152; Thu, 24 Sep 2020 13:45:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600980309; cv=none; d=google.com; s=arc-20160816; b=ryfSgMHBRkuonrZZZeEmyKdwpSjC0YFp3J4W7jH3iJREW+rRXcQtBie0CM1MhEAF4m mxSpAOPqTMBXowtkHtJM2ZnQtuMB4DywGwRWj96y7h/EwHBuhQHj8pHZ9bdOtoqqyozI AGSLJQOSpNF8t/+4fSZIjPZTvijCVv/ALdCkxmU7y7HaDxbLaG3wk9j4m8QdLSwccnPS yU/OBGMyebgYGofNMP7pVcjlo/2zcHbkGncuMwUJVfxpHikQPapQaMNsShIupVQXQbt6 2/0ngYx9NfizCaUuvMRWEvtc6OYVqEgmj63F/bkoIClhbfIBI5ZdpGTPMV6KXwEPTo3r 94Zg== 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=UAtg6sOWWYdWO64NoBuCfBzNMzsXv0yFLlvDJMyaxBo=; b=IjP+JS9q9sN++GATQP2Igzu8+GEXnXSxg2Aq3sBwXySCQF1BEZYCBB6Alpeei3zTqB 5EIpGPDXoZMPEZtFJxj45CpaESwsgptIF6wKuOIORwUMUoTH3dWv0BvrSV9feQ6X4Uo3 8wCxdRmhpBFBqx1G4YMSFIpdf3VTclZAdHdX85/WHGZG4dCmEcgjvRVkcumxlDxSQqD+ iees9RotsIwnL/KW1ATPtBWAsoBZFa5tMDfIFKNRKXpiVGQtg4mZYdrM/hUl+febyRpm zClFcU8lYA0VPRa7VUIHMXXnxvPmgljLVAI+y8NT0YFE6ILfDCpfyluFiVBzfJIWIjKI 6P1Q== ARC-Authentication-Results: i=1; mx.google.com; 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 ck10si461493ejb.167.2020.09.24.13.44.45; Thu, 24 Sep 2020 13:45:09 -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; 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 S1726559AbgIXUmM (ORCPT + 99 others); Thu, 24 Sep 2020 16:42:12 -0400 Received: from asavdk3.altibox.net ([109.247.116.14]:55966 "EHLO asavdk3.altibox.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725208AbgIXUmM (ORCPT ); Thu, 24 Sep 2020 16:42:12 -0400 Received: from ravnborg.org (unknown [188.228.123.71]) (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 17F6420079; Thu, 24 Sep 2020 22:42:09 +0200 (CEST) Date: Thu, 24 Sep 2020 22:42:07 +0200 From: Sam Ravnborg To: Yannick Fertre Cc: Philippe Cornu , Antonio Borneo , Vincent Abriou , David Airlie , Daniel Vetter , Maxime Coquelin , Alexandre Torgue , dri-devel@lists.freedesktop.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] drm/stm: dsi: Avoid printing errors for -EPROBE_DEFER Message-ID: <20200924204207.GO1223313@ravnborg.org> References: <20200918114624.10759-1-yannick.fertre@st.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200918114624.10759-1-yannick.fertre@st.com> X-CMAE-Score: 0 X-CMAE-Analysis: v=2.3 cv=CaYmGojl c=1 sm=1 tr=0 a=S6zTFyMACwkrwXSdXUNehg==:117 a=S6zTFyMACwkrwXSdXUNehg==:17 a=kj9zAlcOel0A:10 a=8b9GpE9nAAAA:8 a=e5mUnYsNAAAA:8 a=A0EKk_GVOdhxRvflaKsA:9 a=CjuIK1q_8ugA:10 a=T3LWEMljR5ZiDmsYVIUa:22 a=Vxmtnl_E_bksehYqCbjh:22 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Yannick On Fri, Sep 18, 2020 at 01:46:24PM +0200, Yannick Fertre wrote: > Don't print error when probe deferred error is returned. > > Signed-off-by: Yannick Fertre > --- > drivers/gpu/drm/stm/dw_mipi_dsi-stm.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/drivers/gpu/drm/stm/dw_mipi_dsi-stm.c b/drivers/gpu/drm/stm/dw_mipi_dsi-stm.c > index 2e1f2664495d..164f79ef6269 100644 > --- a/drivers/gpu/drm/stm/dw_mipi_dsi-stm.c > +++ b/drivers/gpu/drm/stm/dw_mipi_dsi-stm.c > @@ -419,7 +419,8 @@ static int dw_mipi_dsi_stm_probe(struct platform_device *pdev) > dsi->dsi = dw_mipi_dsi_probe(pdev, &dw_mipi_dsi_stm_plat_data); > if (IS_ERR(dsi->dsi)) { > ret = PTR_ERR(dsi->dsi); > - DRM_ERROR("Failed to initialize mipi dsi host: %d\n", ret); > + if (ret != -EPROBE_DEFER) > + DRM_ERROR("Failed to initialize mipi dsi host: %d\n", ret); > goto err_dsi_probe; Please use dev_err_probe() here. We will loose [drm] but gain more than we loose. Sam > } > > -- > 2.17.1 > > _______________________________________________ > dri-devel mailing list > dri-devel@lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/dri-devel