Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1430151pxb; Mon, 22 Feb 2021 01:26:56 -0800 (PST) X-Google-Smtp-Source: ABdhPJxrG+YFa/ZUUTRz8kgbDJ+oGwTo0bYngbYVkJGWT8/CfAuP9QHpPEqGd+Qh6AUjPWu41Clp X-Received: by 2002:a05:6402:3510:: with SMTP id b16mr21050547edd.242.1613986016557; Mon, 22 Feb 2021 01:26:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613986016; cv=none; d=google.com; s=arc-20160816; b=G5o3Gp65aGeJ0JLnJYV9NEHL7XFPRXep/GscDer+XKqwV69A8vPOpgauEqFi18PIB4 Uvq9Jka/qql6ngOwhnMdh5jHJWBuQE4WiNPCVIZv6sJb7ofB7WGg02WQR6G1bijcvswW QlLZJadE++yV9EaBsGTsC25pYDTPNV6zgmXV32TilI7WpLvWMK3VkW60o4yPgHr9DgHU wC0zKE6z80KZLcq8I1NuRx03gPNUsEWMn6nANSz7PjcfFN8DJx9zaxlyJu0keO8CG1EG sDKNCM4MzGnkkZs6EvnNlcjWaHiMRGfqdJngmNgySAETLc3YMCtBFOU5MNZVRWGroBt0 r3LQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:dkim-signature; bh=CEx+dJ33M2OiDJi9X3qiBhe30dtWSWB5g83Cp50fZwo=; b=QkWr4+YzqQiouSEup02orlVA4iO/5vbiymU3Qed2QLYWFKskP0QA31UJGx7bSW1lZE rSqZ8siLVME7Iov39LLSWnBbLqW/JWbMLxDrme4R9bNCZqpgJrMvRo1W3DymFiRqxST2 H522KI9uBLgh5tWQMEmTM/Vrzu7Vw8LjvPhI4L93krYWGclkfALxAiSqrXDSL2fhjoqb dxn2i/tKj7hbMWPjBGzOugYiGJDLgQbWmNDgv+QON4CWNVoywoh5K/pnaHeGL98zYyEc msT/TeGONzU+KfvVtLRJFpUtV6HWa9N8J7KYP/3Q9LpJ+Psm9bDKIimgTsynee4kSP8S qccw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=SPezn6Ht; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=foss.st.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c12si3610414edt.545.2021.02.22.01.26.34; Mon, 22 Feb 2021 01:26:56 -0800 (PST) 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 header.i=@foss.st.com header.s=selector1 header.b=SPezn6Ht; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=foss.st.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230148AbhBVJYJ (ORCPT + 99 others); Mon, 22 Feb 2021 04:24:09 -0500 Received: from mx07-00178001.pphosted.com ([185.132.182.106]:36636 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230107AbhBVJYA (ORCPT ); Mon, 22 Feb 2021 04:24:00 -0500 Received: from pps.filterd (m0241204.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.16.0.43/8.16.0.43) with SMTP id 11M9KlGt016260; Mon, 22 Feb 2021 10:22:58 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foss.st.com; h=from : to : cc : subject : date : message-id : references : in-reply-to : content-type : content-transfer-encoding : mime-version; s=selector1; bh=CEx+dJ33M2OiDJi9X3qiBhe30dtWSWB5g83Cp50fZwo=; b=SPezn6Ht4XYEb6ypx4NcpjfSKDUoxH9t7hs3mdMsQ7MmKdt4RSveqAbhYkBBCyoOHRbY vfrMA0SbCiZTs+WUJhv3vmXA4RzvXAMYSGrNDXYwXpRxutrPXka73iN8Ebg/9Jo5CiRJ 8tE5oHCUh3TBGjldR8e0zMkJXCbZO4Tc14l5xL6F46/ezS2bydlp4/8SOSnSGx7/oZD9 PKt15Ns7tEg5lhEvcIoHt1uuKujNlWsp/f1PDbRFwUciVEXCXlXFZzhrc2BoDiD/erEL ZjOxXQO5X7jdc8L1lY4Df0hTF0yPb2KhWjivfinODJo7zEMH8Y63rFErZoxOCs+9D+Ac wQ== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com with ESMTP id 36ttn6tneb-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 22 Feb 2021 10:22:58 +0100 Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 32CE010002A; Mon, 22 Feb 2021 10:22:58 +0100 (CET) Received: from Webmail-eu.st.com (sfhdag2node2.st.com [10.75.127.5]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id 2342B21F0A7; Mon, 22 Feb 2021 10:22:58 +0100 (CET) Received: from SFHDAG2NODE3.st.com (10.75.127.6) by SFHDAG2NODE2.st.com (10.75.127.5) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Mon, 22 Feb 2021 10:22:57 +0100 Received: from SFHDAG2NODE3.st.com ([fe80::31b3:13bf:2dbe:f64c]) by SFHDAG2NODE3.st.com ([fe80::31b3:13bf:2dbe:f64c%20]) with mapi id 15.00.1473.003; Mon, 22 Feb 2021 10:22:57 +0100 From: Raphael GALLAIS-POU - foss To: Yannick FERTRE , Philippe CORNU , Benjamin Gaignard , Vincent ABRIOU , Sam Ravnborg , "Joe Perches" CC: 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" , Yannick FERTRE - foss , Philippe CORNU - foss , Raphael GALLAIS-POU - foss , Raphael GALLAIS-POU , Alexandre TORGUE - foss Subject: [PATCH 1/2] drm/stm: dsi: Avoid printing errors for -EPROBE_DEFER Thread-Topic: [PATCH 1/2] drm/stm: dsi: Avoid printing errors for -EPROBE_DEFER Thread-Index: AQHXCPxOHztlhOrGKUWaJgLQSaRSdw== Date: Mon, 22 Feb 2021 09:22:57 +0000 Message-ID: <20210222092205.32086-2-raphael.gallais-pou@foss.st.com> References: <20210222092205.32086-1-raphael.gallais-pou@foss.st.com> In-Reply-To: <20210222092205.32086-1-raphael.gallais-pou@foss.st.com> Accept-Language: fr-FR, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-messagesentrepresentingtype: 1 x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [10.75.127.46] Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.369,18.0.761 definitions=2021-02-22_02:2021-02-18,2021-02-22 signatures=0 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Yannick Fertre Don't print error when probe deferred error is returned. Signed-off-by: Raphael Gallais-Pou Signed-off-by: Yannick Fertre --- drivers/gpu/drm/stm/dw_mipi_dsi-stm.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/drivers/gpu/drm/stm/dw_mipi_dsi-stm.c b/drivers/gpu/drm/stm/dw= _mipi_dsi-stm.c index 2e1f2664495d..8399d337589d 100644 --- a/drivers/gpu/drm/stm/dw_mipi_dsi-stm.c +++ b/drivers/gpu/drm/stm/dw_mipi_dsi-stm.c @@ -363,8 +363,7 @@ static int dw_mipi_dsi_stm_probe(struct platform_device= *pdev) dsi->vdd_supply =3D devm_regulator_get(dev, "phy-dsi"); if (IS_ERR(dsi->vdd_supply)) { ret =3D PTR_ERR(dsi->vdd_supply); - if (ret !=3D -EPROBE_DEFER) - DRM_ERROR("Failed to request regulator: %d\n", ret); + dev_err_probe(dev, ret, "Failed to request regulator\n"); return ret; } =20 @@ -377,9 +376,7 @@ static int dw_mipi_dsi_stm_probe(struct platform_device= *pdev) dsi->pllref_clk =3D devm_clk_get(dev, "ref"); if (IS_ERR(dsi->pllref_clk)) { ret =3D PTR_ERR(dsi->pllref_clk); - if (ret !=3D -EPROBE_DEFER) - DRM_ERROR("Unable to get pll reference clock: %d\n", - ret); + dev_err_probe(dev, ret, "Unable to get pll reference clock\n"); goto err_clk_get; } =20 @@ -419,7 +416,7 @@ static int dw_mipi_dsi_stm_probe(struct platform_device= *pdev) dsi->dsi =3D dw_mipi_dsi_probe(pdev, &dw_mipi_dsi_stm_plat_data); if (IS_ERR(dsi->dsi)) { ret =3D PTR_ERR(dsi->dsi); - DRM_ERROR("Failed to initialize mipi dsi host: %d\n", ret); + dev_err_probe(dev, ret, "Failed to initialize mipi dsi host\n"); goto err_dsi_probe; } =20 --=20 2.17.1