Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp6270331pxb; Thu, 27 Jan 2022 09:59:49 -0800 (PST) X-Google-Smtp-Source: ABdhPJw6OvzeDSFflKW8+LisYvZQp6zi5Y1edPnqA5N4WmuBSW9F5alHQaf6Ju/ulN2WUeJ9sugi X-Received: by 2002:a17:907:3da1:: with SMTP id he33mr3708250ejc.207.1643306389165; Thu, 27 Jan 2022 09:59:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643306389; cv=none; d=google.com; s=arc-20160816; b=NeLDE9DFMFpNY64mx3K4OYmV3qbmj7KUcziIFqoSrHbbg7RH5t1A/DaIKgW72mxwPg EoUerBipkTh9NPpT9LBdHV4eSNK6wV1GAQlA/DFpStLfdzIA0CFgj9JEvYBbsk5700Zy OhL2sWwgRgZUeW/pfw9G7itc47EjvPaZWEzykb+RHXH31TQSizFCs7Kr4SVV8gPVktok SNAPFp+rCsCcgH6YWyPJwC1/JxxaWPisK3vyJTtb7/VdPRQMEpJ2QLB9VFhGcabJ2fHx /wKvzadXqHRFPKW24zStjVxb6NvVJP1GPf5jZ3zang5NZ+pB7s5XYVkG8E81FSPEGDih DAPA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=rHeKMXAaLg6IuvGDnn0shLvzStT/hC8/1M7xoIXIxrI=; b=vWriYR+lvv+UHtEBJ0Ul0ltbz7aAONb0zRM8RHg5ZDh+s9LSYL6janHHOmzm3qEoL0 +adTYfwRmpGMnvyE/N1N0Phpm1mXX/N76Z4Pk1ggGMxhIdWo1AYFzFSsQNIhXykdo8Hz dPrEKv9FwZNm1Dv5eAitmuzsX9UYc6bno0LeUa5Dd5LeAhhEZatHGDGEnhNUdzlqE8K7 yRFZmwdi4DI6Bmuh0IdCuvjjuvGi6LTCZHriL4Lb4uIMa8tiqwTJ/O42p6398+SzVZAp 1tpEBZeoskP8rRIJIu/OC0Px8eMxdqza0zrAVo02PyMViI7yMyvKr583AyCxLE4It/YZ XuOQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b="lzX/2ah9"; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b6si1778926ejb.527.2022.01.27.09.59.12; Thu, 27 Jan 2022 09:59:49 -0800 (PST) Received-SPF: pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b="lzX/2ah9"; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239487AbiA0K3Q (ORCPT + 99 others); Thu, 27 Jan 2022 05:29:16 -0500 Received: from relay12.mail.gandi.net ([217.70.178.232]:53749 "EHLO relay12.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239472AbiA0K3O (ORCPT ); Thu, 27 Jan 2022 05:29:14 -0500 Received: (Authenticated sender: alexandre.belloni@bootlin.com) by relay12.mail.gandi.net (Postfix) with ESMTPSA id B5EA8200007; Thu, 27 Jan 2022 10:29:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1643279353; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=rHeKMXAaLg6IuvGDnn0shLvzStT/hC8/1M7xoIXIxrI=; b=lzX/2ah9KiYW8ZzpNYXXE68QxFOx/BqCp/q9phw6VTvFjy1Z+CMRmnar/w4+3uL/1/02n6 wlf+kTebg2zFVgPNmTWKW5WHy7rL+ZiOVEsTWaaTQvv2LbjVeNdu4Kihrv1fMZm4nC08BF ZgEzKg55761a9qoaWrxuVOxJGP1mqXYd+rx+b9hWZ5vw10W6Rfo7F0MYUf4b7Epxoww2Kd 2qummBx7wXUKvEG11KWgcm4jGzbi+DFagpeHmR9DHSkX50GkzgmniBAlkwHUgjdQI1gjmr FIQ3RF1pbbk0X7+0MteEuJJ0xUN09ikmbp2z9FvsyQryydmfr4cmVJMmNSKd0w== Date: Thu, 27 Jan 2022 11:29:11 +0100 From: Alexandre Belloni To: Kavyasree Kotagiri Cc: herbert@gondor.apana.org.au, davem@davemloft.net, nicolas.ferre@microchip.com, ludovic.desroches@microchip.com, tudor.ambarus@microchip.com, UNGLinuxDriver@microchip.com, linux-crypto@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] crypto: atmel: add support for AES and SHA IPs available on lan966x SoC Message-ID: References: <20220127080408.15791-1-kavyasree.kotagiri@microchip.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220127080408.15791-1-kavyasree.kotagiri@microchip.com> Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On 27/01/2022 13:34:08+0530, Kavyasree Kotagiri wrote: > This patch adds support for hardware version of AES and SHA IPs > available on lan966x SoC. > > Tested-by: Vradha Panchal > Signed-off-by: Kavyasree Kotagiri > --- > drivers/crypto/atmel-aes.c | 2 ++ > drivers/crypto/atmel-sha.c | 2 ++ > 2 files changed, 4 insertions(+) > > diff --git a/drivers/crypto/atmel-aes.c b/drivers/crypto/atmel-aes.c > index fe0558403191..358f1092d890 100644 > --- a/drivers/crypto/atmel-aes.c > +++ b/drivers/crypto/atmel-aes.c > @@ -2509,6 +2509,8 @@ static void atmel_aes_get_cap(struct atmel_aes_dev *dd) > > /* keep only major version number */ > switch (dd->hw_version & 0xff0) { > + case 0x700: > + fallthrough; I don't think fallthrough is needed in that case. > case 0x500: > dd->caps.has_dualbuff = 1; > dd->caps.has_cfb64 = 1; > diff --git a/drivers/crypto/atmel-sha.c b/drivers/crypto/atmel-sha.c > index 1b13f601fd95..6c7bb91c8cce 100644 > --- a/drivers/crypto/atmel-sha.c > +++ b/drivers/crypto/atmel-sha.c > @@ -2508,6 +2508,8 @@ static void atmel_sha_get_cap(struct atmel_sha_dev *dd) > > /* keep only major version number */ > switch (dd->hw_version & 0xff0) { > + case 0x700: > + fallthrough; > case 0x510: > dd->caps.has_dma = 1; > dd->caps.has_dualbuff = 1; > -- > 2.17.1 > -- Alexandre Belloni, co-owner and COO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com