Message ID | 1454503612-21344-3-git-send-email-fabio.estevam@nxp.com (mailing list archive) |
---|---|
State | Accepted |
Delegated to: | Herbert Xu |
Headers | show
Return-Path: <linux-crypto-owner@kernel.org> X-Original-To: patchwork-linux-crypto@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 74447BEEE5 for <patchwork-linux-crypto@patchwork.kernel.org>; Wed, 3 Feb 2016 13:20:32 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 8FEBE202C8 for <patchwork-linux-crypto@patchwork.kernel.org>; Wed, 3 Feb 2016 13:20:31 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 9DDE12027D for <patchwork-linux-crypto@patchwork.kernel.org>; Wed, 3 Feb 2016 13:20:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751476AbcBCNUa (ORCPT <rfc822;patchwork-linux-crypto@patchwork.kernel.org>); Wed, 3 Feb 2016 08:20:30 -0500 Received: from mail-bl2on0088.outbound.protection.outlook.com ([65.55.169.88]:55376 "EHLO na01-bl2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751407AbcBCNU3 (ORCPT <rfc822;linux-crypto@vger.kernel.org>); Wed, 3 Feb 2016 08:20:29 -0500 X-Greylist: delayed 2004 seconds by postgrey-1.27 at vger.kernel.org; Wed, 03 Feb 2016 08:20:28 EST Received: from BLUPR0301CA0024.namprd03.prod.outlook.com (10.162.113.162) by DM2PR0301MB0701.namprd03.prod.outlook.com (10.160.96.27) with Microsoft SMTP Server (TLS) id 15.1.390.13; Wed, 3 Feb 2016 12:47:04 +0000 Received: from BY2FFO11FD051.protection.gbl (2a01:111:f400:7c0c::179) by BLUPR0301CA0024.outlook.office365.com (2a01:111:e400:5259::34) with Microsoft SMTP Server (TLS) id 15.1.396.15 via Frontend Transport; Wed, 3 Feb 2016 12:47:04 +0000 Authentication-Results: spf=fail (sender IP is 192.88.158.2) smtp.mailfrom=nxp.com; nxp.com; dkim=none (message not signed) header.d=none;nxp.com; dmarc=none action=none header.from=nxp.com; Received-SPF: Fail (protection.outlook.com: domain of nxp.com does not designate 192.88.158.2 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.158.2; helo=az84smr01.freescale.net; Received: from az84smr01.freescale.net (192.88.158.2) by BY2FFO11FD051.mail.protection.outlook.com (10.1.15.188) with Microsoft SMTP Server (TLS) id 15.1.409.7 via Frontend Transport; Wed, 3 Feb 2016 12:47:03 +0000 Received: from fabio-Latitude-E6410.am.freescale.net (fabio-Latitude-E6410.am.freescale.net [10.29.244.212]) by az84smr01.freescale.net (8.14.3/8.14.0) with ESMTP id u13CktG8032693; Wed, 3 Feb 2016 05:47:01 -0700 From: Fabio Estevam <fabio.estevam@nxp.com> To: <herbert@gondor.apana.org.au> CC: <s.trumtrar@pengutronix.de>, <marex@denx.de>, <linux@arm.linux.org.uk>, <linux-crypto@vger.kernel.org>, Fabio Estevam <fabio.estevam@nxp.com> Subject: [PATCH v3 3/3] crypto: sahara - fill the statesize field Date: Wed, 3 Feb 2016 10:46:52 -0200 Message-ID: <1454503612-21344-3-git-send-email-fabio.estevam@nxp.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1454503612-21344-1-git-send-email-fabio.estevam@nxp.com> References: <1454503612-21344-1-git-send-email-fabio.estevam@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 130989772237023140; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Microsoft-Exchange-Diagnostics: 1; BY2FFO11FD051; 1:yEB25DsqkIrUuAp4ldw4cqL85TGLVskf6Nhc1z1SPldEFpWzyVBmq6UMXLo4EY8lh97kICuvYi6aQEHa3fs0gNJiBmhnmzqxG5pNy05mlv386+lxlCxW1xfv/8H9tF9mn/CnrFfUps4NyGfBYIEHm6yacJnK/PGFurixI2e4sLDx7mtF2UIl/ONQsL99dnKQRmhb6xr0pFv4uTWeP1m+hSgnb5pNPnYXroVMp62BtTTFj25loXwrasoa967KgcDXks4LoNfCu3/updXtQweBk4KfRmRF14JLiPSiWvapbVuun1d64EniH3jdFsuV1YcO/T/VuG7xR2NZBAF1GCgMP14LO8roSx+ZRcbeu+9qHMhV8ZUs6AbvPhfOYjQOjRAzlWnt7Zlbwg4B402SBSIVIkC9Q6oTNMEmIMQWs/GIq6RmZwfT7lFqRZwa0/cJ2KHXLOvXDCqlLFTedH+pJ2FxaUhwEgrVvsQBck666OdkVUVa0GquvMOeG/0Xa5PlcNLPZdV7oskMGZP1xCloTX3R7FnKgTYJ9l6j/Df5+SJ0tvciXEgX6KBYnHUAeUCU8kapHvkHxXmPW8UXbnkjgGgFbQ== X-Forefront-Antispam-Report: CIP:192.88.158.2; CTRY:US; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(2980300002)(1110001)(1109001)(339900001)(189002)(199003)(76176999)(4326007)(50466002)(2906002)(36756003)(87936001)(5001960100002)(586003)(1220700001)(11100500001)(229853001)(6806005)(5008740100001)(5003940100001)(92566002)(2351001)(104016004)(106466001)(1096002)(19580395003)(19580405001)(105606002)(33646002)(50226001)(50986999)(86362001)(2950100001)(77096005)(189998001)(48376002)(47776003)(85426001)(7059030); DIR:OUT; SFP:1101; SCL:1; SRVR:DM2PR0301MB0701; H:az84smr01.freescale.net; FPR:; SPF:Fail; MLV:sfv; MX:1; A:1; LANG:en; MIME-Version: 1.0 Content-Type: text/plain X-MS-Office365-Filtering-Correlation-Id: 7e8d1882-4831-42e6-9cb4-08d32c981dc9 X-Microsoft-Exchange-Diagnostics: 1; DM2PR0301MB0701; 2:JJkC3MUXHwS/aZUr1W70D5Pk8OXkNufrX/ydUK8fmGoqIOGfgHZxw/YuQPOn5dn48GwcnnI1iIkc0bX/Au2BJXKt1Fh/jCJqaO98mmRItqtAx00LEA0UZvUg2/eyGCFN4yXajLdex60w8QaYb98FcEBOGjIBVJ+voNO0F/QZG7c84LfNQUr2H+O1bP8/GvGt; 3:uwnbTgt/E3fPcFgn0gMGdUebGOo3IR79L61iJ3BHgDS/WeFxrQpPmDmsnVb7A6XzAgc7OItjZRZYLqJ1EOrH4d3BtRdHrMDOqOJZIrvLxQYBNV6Ra3JkO7Kl7Jw2Vjvsc6YrKubg9u/DAOb3T2DoNvwWHStB108ANwDuRYdkDBDJvSehCZv4zWEBd9RdxPX/tyTGkTnxFNhGApmWfBPhJJr9h6uPSHEaNSJt5kpVsy0=; 25:aWIBOOpHMyGxmhUL8Wzt7gneQtg6ytxNWI0ypjWghrjeu2b1pc5THvZikvLD3LSQO2OOKelofj3GC4JGOedDn3Am2iZLs2hxIXlFKH+bpD99023NAGeyyNNfHTXyJ8KVhWRPcXQXh3PRBcHrAqMu8YZRcwe3Z425E7VjeGOwSi1UqKh3X0zvKHaf8QkItoE+dOlcy6F2lryPFzSm0gdCh2Ps//Q1PoRMyPujOTAmpazvVOwYKuUYQq4kMj4XakO+ X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:DM2PR0301MB0701; X-Microsoft-Antispam-PRVS: <DM2PR0301MB070146F9A9DA01EA987202B3E3D00@DM2PR0301MB0701.namprd03.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(8121501046)(13018025)(13015025)(13023025)(13024025)(5005006)(13017025)(10201501046)(3002001); SRVR:DM2PR0301MB0701; BCL:0; PCL:0; RULEID:(400006); SRVR:DM2PR0301MB0701; X-Microsoft-Exchange-Diagnostics: 1; DM2PR0301MB0701; 4:rXZQpEYbJmsb9gbQOkRENmoyFth/uBIofelsARSCh69n401AFf7x/iJ0cpKKptSLr4oc2oY7XG9o8gg5nHcx8rxO27cU2emlHx6HWHnDQjt5e2wRQRHCPARsy6Xv4WyoOfRfubYg1930Y7kuVFoWdn05FLcn7ovWiiWy9sUTqfZE69+fZGhEWlTfOxjd2t9kO0R1r6HXgwDXMRYbDBQSNaIDALmXQLlSDRc4aTqtw7oxPOypqIYJTsSO1g1+X+SzJX45SRqjyj8AZ8uO52vrbajsZigj8YFyEmHSQm3szXq+fcRa/A9AQ74f8w9WyRnLt+kKqXpAKmT+jVOxllSwizSgUNc+7w+/C/AsceCvniSj6EnyGSXED5v7L24k5lkWl4x0c2tJziV4SbFenn+iYHRSLK0taPQ1sSEHz5/c/DMYKWbdu5bW7KlGVA2OaeNxvzNZV5kDgZqPlg0oLymifbc11ylliRk07LSWBFSYIaSJ3VDfMT21icmJ6KlNaRmK X-Forefront-PRVS: 08417837C5 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DM2PR0301MB0701; 23:5z8odqmgyhLRsAPn4yneaEdEGS9FOYkrt+kbhOE?= =?us-ascii?Q?kG9aycgJNFnWrXPeMD7YjWRzC8kDCRtDuVNExp7AcJ6alHB3S4tqNn+O4cPO?= =?us-ascii?Q?mKJUUB/nc3yNig/ZysnfW4vUwgUxCVlm/9SHRcIizoefU+SThCKLpSgYZgKn?= =?us-ascii?Q?Bdb0Nb/g1iAEdoZ0HnUGFOrTIXnG4bNSKuwXmV/Im16RIkz0eXQ1g78RuVB5?= =?us-ascii?Q?aoHG9mH7ULa32p7+iqgfA2eJ2mqs+FpMNfhk9S/nGjdInucE0yy5lbtVrkTU?= =?us-ascii?Q?feYSpsBWDKAvPForMIM5XyaHC09Ep8gj6z5XDz/t/dvU4GYqMdFK1QDhGwPc?= =?us-ascii?Q?c0KU0SIAkEf60WsarKGF7Y8PGozAKrDEZnh269XzAWE5igr86xFbahbg9GhM?= =?us-ascii?Q?csqpv4kF9j1KnCQJNHiOIap4VWSATu0zTLIKWVJlYAiDudeC0iJuFeg/N7gr?= =?us-ascii?Q?MwulkIhv3OmtSJzQCccthxqxtSSnD2CRCKq0ybN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nosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Feb 2016 12:47:03.4839 (UTC) X-MS-Exchange-CrossTenant-Id: 5afe0b00-7697-4969-b663-5eab37d5f47e X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5afe0b00-7697-4969-b663-5eab37d5f47e; Ip=[192.88.158.2]; Helo=[az84smr01.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM2PR0301MB0701 Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: <linux-crypto.vger.kernel.org> X-Mailing-List: linux-crypto@vger.kernel.org X-Spam-Status: No, score=-7.3 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/drivers/crypto/sahara.c b/drivers/crypto/sahara.c index 9db09b6..c3f3d89 100644 --- a/drivers/crypto/sahara.c +++ b/drivers/crypto/sahara.c @@ -1259,6 +1259,7 @@ static struct ahash_alg sha_v3_algs[] = { .export = sahara_sha_export, .import = sahara_sha_import, .halg.digestsize = SHA1_DIGEST_SIZE, + .halg.statesize = sizeof(struct sahara_sha_reqctx), .halg.base = { .cra_name = "sha1", .cra_driver_name = "sahara-sha1", @@ -1286,6 +1287,7 @@ static struct ahash_alg sha_v4_algs[] = { .export = sahara_sha_export, .import = sahara_sha_import, .halg.digestsize = SHA256_DIGEST_SIZE, + .halg.statesize = sizeof(struct sahara_sha_reqctx), .halg.base = { .cra_name = "sha256", .cra_driver_name = "sahara-sha256",
Currently the sahara driver fails to probe: sahara: probe of 63ff8000.crypto failed with error -22 This happens since commit 8996eafdcbad ("crypto: ahash - ensure statesize is non-zero"), which requires statesize to be filled. Pass the statesize members for sha1 and sha256, so we can probe the driver successfully again. Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com> --- drivers/crypto/sahara.c | 2 ++ 1 file changed, 2 insertions(+)