Message ID | 20230719055157.4801-1-machel@vivo.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id CC9ACC001B0 for <linux-arm-kernel@archiver.kernel.org>; Wed, 19 Jul 2023 05:52:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:CC :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=W+4bSHZ7fjhqP2zd2HfviI0GdEjF3yFYjK+4xouclyU=; b=JRaPfdkBJFxby4 zU3paOJldnBMmJ4VjhWn7DlwSj0UBaKVHZ8r1H43cq/5uIpM0sM3+CdZbbY7AZW0RijvoLPlOxuur VlAD5jZFdhszR7RWEvNTI7Xm9wotCOsMr24Sx+uCRNArnnfYz7WBAzjzJAVol4g5fm5XNlJK/Rjyf XpoQjbMMqzYy8a109vh0mzObhPfOTxBQSr5auoS6lxl8sRfJONG4GwxslmyOwimLdTFqoZMBPjfY5 rwMDc26PnV23a1NBBFvaVtjQDcsPjhIbJUYqrW8uDNjsEfvNUNARAf4H1lqvjvRu53vd/pUnIVZ0z 6LZAZ2ef2s784JV4lWKQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qM06o-005RUX-2O; Wed, 19 Jul 2023 05:52:22 +0000 Received: from mail-tyzapc01on2072b.outbound.protection.outlook.com ([2a01:111:f403:704b::72b] helo=APC01-TYZ-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qM06l-005RSv-0B for linux-arm-kernel@lists.infradead.org; Wed, 19 Jul 2023 05:52:20 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Ed1rm0LL203/IH3qVEFbiIYIgPyIKql8ib7Z+IC+klfQM/nQQ/EmKZ8IhmkoP3P7VVKHnS0o1HqCg+ZsOrpS7cXvUHwa6wQEMy+lxrY4TsiAI5QNER2J4ZILTjP9zzxYjTDpMNZZaAqXD8JHbibKDH4E6FRBRTPGo3dRVeXm+nNhWScUHhCljp+bOvbswbAGWf9sVGVkjuMFbWdXD87d94nSEj+R/RTcaFVypR0+hR/M5+ROh/Edp0p+H3QP5cjeGS4qDw8dTekJ25j5hytneiLTRvF7cDO7CGC2StrGU8svcPfLI8uFfMHxf2B4HyIVV07gCDiuynEXL7BWzHH/yw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=oZQ7PfHxrMkx7BwIPz3PseAQmq1H+vvn7tPkgX1Et1s=; b=mAHZTcdk6rLto7lbcy+t3U30L6AhRZ5yO+HerFXk11anfBPv3M6qooilCBb4bHeZ6ZdzB/L5w1RZx3DWgVbHM9FHoOM6azI8mgEuJ7iUe+Uh7WD2BcZKTzb7hW+Q/6RjiMkHAikIwXBZnUAPmGKajZ9txYgftmVNLYAKjacrY210fUL1zDVRIwkK7+aX70OgfyavF70AfLnfdaK0epxihuWngkUDnaTMgoOQaXEoDJjMmGRs7FYB7be1ycCt6w0jmMba0zsP6fSZ9Fby5K2mz+Qho/FUDX5PX72/ygJZfMnpTDnyRWsFLZIIBRHX3+ce3oCdNEtx65k+ysAjAyInjQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=vivo.com; dmarc=pass action=none header.from=vivo.com; dkim=pass header.d=vivo.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vivo.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=oZQ7PfHxrMkx7BwIPz3PseAQmq1H+vvn7tPkgX1Et1s=; b=KG29iF5i6DHB3tdlIc6bYR/69QUghxiWH6sntnDfOvXQEhJpnvR/Tm2ZBLdnrGoAIOmnWfcV0bNkQjWiC6GFNgTew5RtjsUwut1QxEKSeeP+FjoN5X/imx2Y4Yq+2E2Ft6TWVces2ZlVY+F01BBBbeDECJgpilj3gBCBo6UpQDhB8aeYr+Eje/Q7HSq0OScrZSq+LNCeVwybXSeSsl2VTzMg6XgBj+15GKPfhkqkNBnLGJnDmFL2sJNAeYQ8qoTJbJq766uq1b5WcPoRYJSYr3DGHXS4/la9U9+y/TwBMJeCfWE9kJA1cBCkTWHNgHtQSx7n2imGStENOMo7aDorBg== Received: from SG2PR06MB3743.apcprd06.prod.outlook.com (2603:1096:4:d0::18) by TYSPR06MB6544.apcprd06.prod.outlook.com (2603:1096:400:477::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6588.31; Wed, 19 Jul 2023 05:52:07 +0000 Received: from SG2PR06MB3743.apcprd06.prod.outlook.com ([fe80::535e:25af:a3bc:d600]) by SG2PR06MB3743.apcprd06.prod.outlook.com ([fe80::535e:25af:a3bc:d600%4]) with mapi id 15.20.6609.022; Wed, 19 Jul 2023 05:52:07 +0000 From: =?eucgb2312_cn?b?zfXD9y3I7bz+tdey47y8yvWyvw==?= <machel@vivo.com> To: Herbert Xu <herbert@gondor.apana.org.au>, "David S. Miller" <davem@davemloft.net>, Nicolas Ferre <nicolas.ferre@microchip.com>, Alexandre Belloni <alexandre.belloni@bootlin.com>, Claudiu Beznea <claudiu.beznea@microchip.com>, "linux-crypto@vger.kernel.org" <linux-crypto@vger.kernel.org>, "linux-arm-kernel@lists.infradead.org" <linux-arm-kernel@lists.infradead.org>, "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org> CC: opensource.kernel <opensource.kernel@vivo.com>, =?eucgb2312_cn?b?zfXD9y3I7bz+?= =?eucgb2312_cn?b?tdey47y8yvWyvw==?= <machel@vivo.com> Subject: [PATCH v1] crypto: atmel: Use dev_err_probe instead of dev_err Thread-Topic: [PATCH v1] crypto: atmel: Use dev_err_probe instead of dev_err Thread-Index: Adm6BSZDFZPfFjBqUUiHYT5+HtOcfQ== Date: Wed, 19 Jul 2023 05:52:06 +0000 Message-ID: <20230719055157.4801-1-machel@vivo.com> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: SG2PR02CA0131.apcprd02.prod.outlook.com (2603:1096:4:188::6) To SG2PR06MB3743.apcprd06.prod.outlook.com (2603:1096:4:d0::18) authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=vivo.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: SG2PR06MB3743:EE_|TYSPR06MB6544:EE_ x-ms-office365-filtering-correlation-id: 9932c13f-fc30-4a31-0f71-08db881c48bf x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: feH1uAqFqO724i+SVsehxLsAi14otG155DqvJ2vCQsYvqQHDWOoJJrHlArx8e/gFuc810Mz4nZGGzM3oMykLuRWFQqyYuGxbZk2gkc4Ho7CQG44uN6rTs8b61OdGHVdS3vYEr0Rv9LW42U3Czqa+zyZJMU2UF9hBw317ZOzvloCYc7PVpHfAFxJpHJaJSnH+0tLMmDcpMoJybS24y/pbJqwXnRW/bNlLf5KHvIDYmoIrVT1sY1qBHHkL9JpudJqojb08sH952ud8FLyS2YV9JyvPWHWS52w0vGbWdXH1DydNjaCcnMmgzxmmacPyPn8gxI414kWievE/18QWNZs/XZRBSZco8Wfr8dINAuHCN8DTHiUN8qgm1GJqf4XNpMNX27mrW1QDVluWWzIJVA7dKRZWWqjbNHoCkQHeqfvLTnEHl4+OB+Ee9wLMh+aL9cAgk5ILbvcilRO1MxkSUV0ZBn3JHq8vElgNtnA7n1cz/D8GPVwx3OPC//7B2PvRW3Cv8htDneJocRI9TCGyvwBOSydIZalK8QClRiPGLSMQpvo04l9UW5M0xF2FxfknujcJ0BL4PUoNY6aL+ObGw8Unclh11ZU/Yh6nakL9eyIHQdV+Zw0TYAUWiSXx0RVNfOcY x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SG2PR06MB3743.apcprd06.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(4636009)(376002)(346002)(396003)(136003)(39860400002)(366004)(451199021)(52116002)(6486002)(54906003)(71200400001)(478600001)(110136005)(2616005)(83380400001)(85182001)(86362001)(4744005)(2906002)(6506007)(1076003)(186003)(6512007)(107886003)(26005)(4326008)(38100700002)(122000001)(38350700002)(66476007)(64756008)(66446008)(41300700001)(66556008)(66946007)(316002)(8676002)(5660300002)(36756003)(8936002);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?eucgb2312_cn?b?Ny9qMS9ueXpRL1VkKzB0RFJE?= =?eucgb2312_cn?b?NVAzODNnZyt4YzNkV1FieVgzNWw3TmU1SGgwd0l3TEtyeE1Jak5LbW4zL201bGMw?= =?eucgb2312_cn?b?RVZIUTh5YnpncUo3U2VsNkJ5ckdJMXRPdXJKTndyaFFkem5CblE2K0JudnQrbTRQ?= =?eucgb2312_c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YxU3lwQTF0WEkwVytIRlFDcjArTEdYVUtzM3V4UVlsSU94MFlwbzls?= =?eucgb2312_cn?b?VjdBSDQxSHRobndVV1Q5Rlp6TmU3bDBrT3BkajdNSS96NUpub29TU25ac0xIdDJW?= =?eucgb2312_cn?b?ZkRYZmJWZ1EzMXBMZVdRNG12Wm1MM0VRUTVGSndBanI2SGdKNWt4S056Sm5Wd0xi?= =?eucgb2312_cn?b?VmlmT0NJL3grUk80QmxBM0Y4RlptQjFzTHJyeUgyNTE3TU1RUjJMdWxXSjZHZVEx?= =?eucgb2312_cn?b?dXdieW56V2w1Z0dVbHlUaTRxSG9sUUhXckYwNVlMa3lIaFlsZTV0VGI5ZW5EZg==?= MIME-Version: 1.0 X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: SG2PR06MB3743.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 9932c13f-fc30-4a31-0f71-08db881c48bf X-MS-Exchange-CrossTenant-originalarrivaltime: 19 Jul 2023 05:52:06.3802 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 923e42dc-48d5-4cbe-b582-1a797a6412ed X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: 8qWGaExwFylEqqRs1AIadI/1WQGPqrOK8TA9vCfPgZJ5BgfNLEl9nqQ7T3XpXI99VvfJ9qNPQtbyan9lY525NQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYSPR06MB6544 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230718_225219_093677_1FC5699F X-CRM114-Status: GOOD ( 13.00 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org |
Series |
[v1] crypto: atmel: Use dev_err_probe instead of dev_err
|
expand
|
diff --git a/drivers/crypto/atmel-sha.c b/drivers/crypto/atmel-sha.c index 6bef634d3c86..5682957f805d 100644 --- a/drivers/crypto/atmel-sha.c +++ b/drivers/crypto/atmel-sha.c @@ -2499,8 +2499,8 @@ static int atmel_sha_dma_init(struct atmel_sha_dev *dd) { dd->dma_lch_in.chan = dma_request_chan(dd->dev, "tx"); if (IS_ERR(dd->dma_lch_in.chan)) { - dev_err(dd->dev, "DMA channel is not available\n"); - return PTR_ERR(dd->dma_lch_in.chan); + return dev_err_probe(dd->dev, PTR_ERR(dd->dma_lch_in.chan), + "DMA channel is not available\n"); } dd->dma_lch_in.dma_conf.dst_addr = dd->phys_base +
It is possible that dma_request_chan will return EPROBE_DEFER, which means that dd->dev is not ready yet. In this case, dev_err(dd->dev), there will be no output. This patch fixes the bug. Signed-off-by: Wang Ming <machel@vivo.com> --- drivers/crypto/atmel-sha.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)