From patchwork Thu Sep 3 18:03:58 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 253083 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.1 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE, SPF_PASS, USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 43857C433E9 for ; Thu, 3 Sep 2020 18:04:17 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 18E1320BED for ; Thu, 3 Sep 2020 18:04:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1599156257; bh=P4D7LHg3zV2WYkumu6IlVHebD/yFLzaR9+3encueUSU=; h=From:To:Subject:Date:List-ID:From; b=RySWrmYN+LcBhvvMGs8UIXx9/YsBirbTd4c+da4ZMPSCnDSYN7r0JAZ3wVMQLZWlB Ny5VWAfZHoQkEVXc11nPKhStWdSsYtgX8jS5Eilv3QPvkMwPLRwBE66+ggsiCJGtta /bauQ45/GfTdrnY9LwfSb5mteBJPdoCZ/BJTgSJA= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727065AbgICSEI (ORCPT ); Thu, 3 Sep 2020 14:04:08 -0400 Received: from mail.kernel.org ([198.145.29.99]:36554 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726678AbgICSEI (ORCPT ); Thu, 3 Sep 2020 14:04:08 -0400 Received: from localhost.localdomain (unknown [194.230.155.106]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id DA14420716; Thu, 3 Sep 2020 18:04:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1599156248; bh=P4D7LHg3zV2WYkumu6IlVHebD/yFLzaR9+3encueUSU=; h=From:To:Subject:Date:From; b=nZgcK63sN7PkGNKn2shlb2wOwcpxA6BZpNsr1FGp8DsmEBrHh88l0VP8zR/dhl1vU S6COWRVr+YMM7rxj9bd5dkZO6NOm6laPQjFZePuSsxKbIf9U/3uHoIV4PvspOIlVHJ dVTc/bF0RPDi7yW4JWm9k66v1c9x35eVacY0aWGI= From: Krzysztof Kozlowski To: Krzysztof Kozlowski , Vladimir Zapolskiy , Kamil Konieczny , Herbert Xu , "David S. Miller" , Rob Herring , linux-crypto@vger.kernel.org, linux-samsung-soc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/3] dt-bindings: crypto: slimsss: Correct a typo in compatible Date: Thu, 3 Sep 2020 20:03:58 +0200 Message-Id: <20200903180400.2865-1-krzk@kernel.org> X-Mailer: git-send-email 2.17.1 Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org Correct a typo in the compatible - missing trailing 's'. Signed-off-by: Krzysztof Kozlowski --- Documentation/devicetree/bindings/crypto/samsung-slimsss.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/crypto/samsung-slimsss.yaml b/Documentation/devicetree/bindings/crypto/samsung-slimsss.yaml index 04fe5dfa794a..7743eae049ab 100644 --- a/Documentation/devicetree/bindings/crypto/samsung-slimsss.yaml +++ b/Documentation/devicetree/bindings/crypto/samsung-slimsss.yaml @@ -19,7 +19,7 @@ description: |+ properties: compatible: items: - - const: samsung,exynos5433-slim-ss + - const: samsung,exynos5433-slim-sss reg: maxItems: 1 From patchwork Thu Sep 3 18:04:00 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 253082 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.1 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE, SPF_PASS, USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 06FA6C2BBDB for ; Thu, 3 Sep 2020 18:04:22 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id BE97B208C7 for ; Thu, 3 Sep 2020 18:04:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1599156261; bh=M/bUGa4+5MJQO1H2/94D6MztczIs+L3ZMGG4rxczDRY=; h=From:To:Subject:Date:In-Reply-To:References:List-ID:From; b=zfEubA1epfT5300v5SsVgJCOEWyy0X4jDIXg6Xci+Tom7jOP82R7OexvJrfsGnYgX Z8DGybZfybOEXKSOX/lDv6W10X7EAfyjBgRtdvFdSuEIny8w6Cyzrcm7NJay+fQvAf yPJVWv9qvQG8x4mLDj2/BxIPX31Crc/OCZ9BbX9k= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729057AbgICSEU (ORCPT ); Thu, 3 Sep 2020 14:04:20 -0400 Received: from mail.kernel.org ([198.145.29.99]:36694 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728419AbgICSEQ (ORCPT ); Thu, 3 Sep 2020 14:04:16 -0400 Received: from localhost.localdomain (unknown [194.230.155.106]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 1537D20716; Thu, 3 Sep 2020 18:04:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1599156255; bh=M/bUGa4+5MJQO1H2/94D6MztczIs+L3ZMGG4rxczDRY=; h=From:To:Subject:Date:In-Reply-To:References:From; b=dSuth1Xcu2mR6W60CDiFo6xBHvTnYdE2RuZ1UBFjiYVLyAtnwajOCWKR2YiBnIl1B OT4qYsIBRuzbqwpXwMFZt/JPHehgzo+i2aPQJZgVQ8a2LhvtynqZf5qdu+2kja09Vn q3YnNkvC9Xh1ns5aMLRflQvbavAtAw7cae6zzRFk= From: Krzysztof Kozlowski To: Krzysztof Kozlowski , Vladimir Zapolskiy , Kamil Konieczny , Herbert Xu , "David S. Miller" , Rob Herring , linux-crypto@vger.kernel.org, linux-samsung-soc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 3/3] crypto: s5p-sss - Pass error from clk_get and reduce verbosity on deferral Date: Thu, 3 Sep 2020 20:04:00 +0200 Message-Id: <20200903180400.2865-3-krzk@kernel.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200903180400.2865-1-krzk@kernel.org> References: <20200903180400.2865-1-krzk@kernel.org> Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org Pass the error directly from devm_clk_get() to describe the real reason, instead of fixed ENOENT. Do not print error messages on deferred probe. Signed-off-by: Krzysztof Kozlowski --- drivers/crypto/s5p-sss.c | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/drivers/crypto/s5p-sss.c b/drivers/crypto/s5p-sss.c index f67f1e22ecd1..e83145c43b18 100644 --- a/drivers/crypto/s5p-sss.c +++ b/drivers/crypto/s5p-sss.c @@ -2201,11 +2201,10 @@ static int s5p_aes_probe(struct platform_device *pdev) } pdata->clk = devm_clk_get(dev, variant->clk_names[0]); - if (IS_ERR(pdata->clk)) { - dev_err(dev, "failed to find secss clock %s\n", - variant->clk_names[0]); - return -ENOENT; - } + if (IS_ERR(pdata->clk)) + return dev_err_probe(dev, PTR_ERR(pdata->clk), + "failed to find secss clock %s\n", + variant->clk_names[0]); err = clk_prepare_enable(pdata->clk); if (err < 0) { @@ -2217,9 +2216,9 @@ static int s5p_aes_probe(struct platform_device *pdev) if (variant->clk_names[1]) { pdata->pclk = devm_clk_get(dev, variant->clk_names[1]); if (IS_ERR(pdata->pclk)) { - dev_err(dev, "failed to find clock %s\n", - variant->clk_names[1]); - err = -ENOENT; + err = dev_err_probe(dev, PTR_ERR(pdata->pclk), + "failed to find clock %s\n", + variant->clk_names[1]); goto err_clk; }