Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp2580476ybz; Sun, 26 Apr 2020 23:45:25 -0700 (PDT) X-Google-Smtp-Source: APiQypIXxOtv1iwKsdmkCaQE8hVr0zFRVfONbzIxOIjbIR850FJ4ld0LRrqkq53CFBVzVBKAZZtn X-Received: by 2002:a50:951c:: with SMTP id u28mr16675650eda.310.1587969925308; Sun, 26 Apr 2020 23:45:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587969925; cv=none; d=google.com; s=arc-20160816; b=c8wneuyUiglCnkQG1ZeO6ogHw/VIClZZzP7jJD/9l6XKLJRUFDWvnYAqNfcbwdqsan AyM6oTau9LuW/1/DnFv/SKeXZv4HzzPUEOxyjUrt7zGqtjArB9e/l6WDkYWiiOsOG8I5 xt0YmJFRgyAsGR+ubCxEDkszYLR33M6YQU42ONq2nSBRiJKIbEtLsVYxmO8F6ERz0GYX /OzEeMec04cLrA+n99q8Bd2AHxUiVlvlxalR37g7hwcBO3DrebTRtI+jvMZH0ggpnrj4 MC7/VuCptVXrzPPfKC8jYFJeAO7lDPeNR0CiWcaU8Mt2GQnF/mi4mVhc6LAup/dUCDAM O9rg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=lh1kBYgL+JLuoCQaaOo5FYMEjoKA0Zs0ybVKkeHad0s=; b=FMGtBrzzxvCO5PbNSh4VVv7z24Y9yQNpypwaPgHsm+oSBYa9Uu7GxR0f4wPV7K+AYv ANkBFoU+PI3BXiuWeah/k/qqznAPmCqa9HkbnbNoL9MZJFnQl8GgZ7L35cUN7sLgp0fG Wn0IgWhRV+LLVcSiMO3RVnxIi9VDJV9Q7K6mQa+yh37RAWmZkygZ3yWly3NbPIs30ZX2 fMfh6+gdf1PGdYKqvsu8QDrMeGXERiTYrWdb7izn1bLwsxj47IloK74gIMNq76hKtG9u 3R6V4w60xLlvmoky5xma5NL9L1NjFsYghC3Ixn3LkRtq69IGjhNkTFMa/Evh5nMSp654 wBJg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@st.com header.s=STMicroelectronics header.b=eci8SxyS; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=st.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z9si8094313ejr.264.2020.04.26.23.45.02; Sun, 26 Apr 2020 23:45:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-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=@st.com header.s=STMicroelectronics header.b=eci8SxyS; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=st.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726661AbgD0GnX (ORCPT + 99 others); Mon, 27 Apr 2020 02:43:23 -0400 Received: from mx08-00178001.pphosted.com ([91.207.212.93]:1593 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726496AbgD0GnU (ORCPT ); Mon, 27 Apr 2020 02:43:20 -0400 Received: from pps.filterd (m0046660.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 03R6cO6G024040; Mon, 27 Apr 2020 08:42:59 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=st.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-type; s=STMicroelectronics; bh=lh1kBYgL+JLuoCQaaOo5FYMEjoKA0Zs0ybVKkeHad0s=; b=eci8SxyS83Z1lVviB+tuVkqLFpMh+zwi0AEZGatqH2sQ9FAqxu2M7g+2A6oSgZ3Gm4GN mTJUhpBAUVh/xf1WX0VSTowK/ONKfTj2aWFjwVf/1Q1DuLoMM3/rU1sJ9Q7yRmW6hun7 Bqmx2Luc07UgcJ1sbHHs5AmXmB193dQiBR8bIHm1lMpNd7x3yPStqKKdm/g/Q+TpcrRG 2XzHOLf979Fqk77FjP560ci6aMT5pyfcZx7wVj8/IZodcD1j/mVs6XcdPfPzs9pmtq98 E1DPmXG6+kZqHtI7hxL3GrB70hHWvvQU+acbS3IjpA0p1bY3y3a7vXHn5//klolzavCi LQ== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com with ESMTP id 30mhq5r2h8-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 27 Apr 2020 08:42:59 +0200 Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id CB560100038; Mon, 27 Apr 2020 08:42:58 +0200 (CEST) Received: from Webmail-eu.st.com (sfhdag7node2.st.com [10.75.127.20]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id B92AB21F679; Mon, 27 Apr 2020 08:42:58 +0200 (CEST) Received: from localhost (10.75.127.46) by SFHDAG7NODE2.st.com (10.75.127.20) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Mon, 27 Apr 2020 08:42:58 +0200 From: Lionel Debieve To: Herbert Xu , "David S . Miller" , Maxime Coquelin , Alexandre Torgue , CC: , , Subject: [PATCH 3/3] crypto: stm32/hash - don't print error on probe deferral Date: Mon, 27 Apr 2020 08:42:26 +0200 Message-ID: <20200427064226.6991-4-lionel.debieve@st.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200427064226.6991-1-lionel.debieve@st.com> References: <20200427064226.6991-1-lionel.debieve@st.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.75.127.46] X-ClientProxiedBy: SFHDAG3NODE1.st.com (10.75.127.7) To SFHDAG7NODE2.st.com (10.75.127.20) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.138,18.0.676 definitions=2020-04-27_03:2020-04-24,2020-04-27 signatures=0 Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org Change driver to not print an error message when the device probe is deferred for a clock resource. Signed-off-by: Lionel Debieve --- drivers/crypto/stm32/stm32-hash.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/drivers/crypto/stm32/stm32-hash.c b/drivers/crypto/stm32/stm32-hash.c index 0d592f55a271..03c5e6683805 100644 --- a/drivers/crypto/stm32/stm32-hash.c +++ b/drivers/crypto/stm32/stm32-hash.c @@ -1464,8 +1464,11 @@ static int stm32_hash_probe(struct platform_device *pdev) hdev->clk = devm_clk_get(&pdev->dev, NULL); if (IS_ERR(hdev->clk)) { - dev_err(dev, "failed to get clock for hash (%lu)\n", - PTR_ERR(hdev->clk)); + if (PTR_ERR(hdev->clk) != -EPROBE_DEFER) { + dev_err(dev, "failed to get clock for hash (%lu)\n", + PTR_ERR(hdev->clk)); + } + return PTR_ERR(hdev->clk); } -- 2.17.1