Received: by 10.223.185.116 with SMTP id b49csp395593wrg; Fri, 16 Feb 2018 00:27:29 -0800 (PST) X-Google-Smtp-Source: AH8x224N4teO9zXdIHkxIq+j4fS28M4ukjoslwpjXpmECIiZFxkZAW7Gr5m+bIuHilFGw3jLoeiz X-Received: by 2002:a17:902:5269:: with SMTP id z96-v6mr5254565plh.392.1518769649326; Fri, 16 Feb 2018 00:27:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518769649; cv=none; d=google.com; s=arc-20160816; b=X9186Zbh4LG4TVl3K85P6wOEg1bc84iI0zo7PfLkpTKiKAXHuxjiDHy1e2Pu31UeIL PxGZ3WUCH6D76uwd3kemfnkouMU4qFpsjR3xHjKsO+EcKWIeuhNhEQLtknfzhhOJ1Q14 scXqR4Gb/1wcWWzc30U/QgAICeW3/pBD4rI7fHRnI840AEYR17cUniBvY7JYfJvZVrZr O45JRA1hfCi9iivjPCCGKrgsFZyzfLIUoW3gdQBXyXW6PXc9HmSEbh6ikRPmYdv32X8P Mb6Ti16h6XLWTPO11BFTayVL7YNal34GUvHkHwHRSDdX3K87lGp3GuVryT5ZZ5ziLreA 74Gg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:arc-authentication-results; bh=Yk5euKIutHRSFzHXnCZ3I0vpiuOpXd2qyxhBEuxZjFI=; b=j0WvS7f9Ak6D6E7OYkfd7oQhn7lIFq+8PMQvMgjwx6z7wY1w2kk2kNubcGXhaBmOLR voqK6YEkxkAs2xAMIzXjxn9qX8U+2mxq8JI5ervZu/ms1WtmwKlL29WcLt9bLPywSTBo qR7J3ItyGEq4ltgnyJUn9Id07hFI6247txnUEKhz9r16TehIKtjeRZTiNQ7PzEKB9R4L H1nisUVDBYHAAYoZidZCAjoFMSn0dTR/VZ2SBmfWMDfxM3QoOEQTGYcddhYFUySw/NKA 1x8ZbJ0x/c2+ZgVihrIb0/dGDTgULDIF0TMDFCPsrX2pAlBFbEACnOrl3E10Qzih/KXw AklQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e190si4059164pfe.4.2018.02.16.00.27.14; Fri, 16 Feb 2018 00:27:29 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1165301AbeBOQ1l (ORCPT + 99 others); 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 Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 3zj1s24HMlz1rKXN; Thu, 15 Feb 2018 17:27:34 +0100 (CET) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 3zj1s21qpZz1r2Zw; Thu, 15 Feb 2018 17:27:34 +0100 (CET) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id huXE1kR2eA5o; Thu, 15 Feb 2018 17:27:33 +0100 (CET) X-Auth-Info: iOSbD3puwW8ONnJwbvBVWxTVSPctXBVYzyCKiNntuH0= Received: from [IPv6:::1] (unknown [195.140.253.167]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPSA; Thu, 15 Feb 2018 17:27:32 +0100 (CET) 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 Precedence: bulk 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