From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1165322AbeBOQ1l (ORCPT ); Thu, 15 Feb 2018 11:27:41 -0500 Received: from mail-out.m-online.net ([212.18.0.9]:58273 "EHLO mail-out.m-online.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1033429AbeBOQ1i (ORCPT ); Thu, 15 Feb 2018 11:27:38 -0500 X-Auth-Info: iOSbD3puwW8ONnJwbvBVWxTVSPctXBVYzyCKiNntuH0= Subject: Re: [PATCH v3 0/5] crypto: ahash.c: Require export/import in ahash To: Herbert Xu , Kamil Konieczny Cc: linux-crypto@vger.kernel.org, "David S. Miller" , Bartlomiej Zolnierkiewicz , Sonic Zhang , Fabio Estevam , Shawn Guo , Tom Lendacky , Jan Engelhardt , Arvind Yadav , Linus Walleij , Joakim Bech , linux-kernel@vger.kernel.org References: <20180118183404.12583-1-k.konieczny@partner.samsung.com> <20180215154132.GA7352@gondor.apana.org.au> From: Marek Vasut Message-ID: <6b29116a-c39c-9813-34a0-d5c05bd30c9d@denx.de> Date: Thu, 15 Feb 2018 17:27:32 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <20180215154132.GA7352@gondor.apana.org.au> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 02/15/2018 04:41 PM, Herbert Xu wrote: > On Thu, Jan 18, 2018 at 07:33:59PM +0100, Kamil Konieczny wrote: >> First four patches add empty hash export and import functions to each driver, >> with the same behaviour as in crypto framework. The last one drops them from >> crypto framework. Last one for ahash.c depends on all previous. >> >> Changes in v3: >> added change for bfin_crc.c >> make this a patchset, instead of unreleated patches >> make commit message more descriptive >> >> Kamil Konieczny (5): >> crypto: mxs-dcp: Add empty hash export and import >> crypto: n2_core: Add empty hash export and import >> crypto: ux500/hash: Add empty export and import >> crypto: bfin_crc: Add empty hash export and import >> crypto: ahash.c: Require export/import in ahash >> >> crypto/ahash.c | 18 ++---------------- >> drivers/crypto/bfin_crc.c | 12 ++++++++++++ >> drivers/crypto/mxs-dcp.c | 14 ++++++++++++++ >> drivers/crypto/n2_core.c | 12 ++++++++++++ >> drivers/crypto/ux500/hash/hash_core.c | 18 ++++++++++++++++++ >> 5 files changed, 58 insertions(+), 16 deletions(-) > > All applied. Thanks. This makes no sense, cfr my comment on 5/5 Seems like if the driver doesn't implement those, the core can easily detect that and perform the necessary action. Moving the checks out of core seems like the wrong thing to do, rather you should enhance the checks in core if they're insufficient in my opinion. -- Best regards, Marek Vasut