From patchwork Mon Aug 31 07:31:01 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Cerveny X-Patchwork-Id: 11745655 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id BE2D513A4 for ; Mon, 31 Aug 2020 07:32:41 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 972B920738 for ; Mon, 31 Aug 2020 07:32:41 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="EtJGmMIF"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="CCTVQbAU" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 972B920738 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=computer.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:MIME-Version:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:References:In-Reply-To:Message-Id:Date:Subject:To: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=qIL3YlLyFo+RwQCwdJOs5WlsLE5HjygdqAaQHSTqbHY=; b=EtJGmMIFCrJy52kk4jASyd1FkK byWjMBEoIo82KhJGelUReBmmLYsxyErb6jCKY8F4NI4HRV7K3NxbdUPeucYTXmNnl8LZ7tPrt9gD2 dyfDjXoleC8QnQzoHS8yA61j1nyJLOt5pzrINUx9TbZ4KngewPp8/iKaeHPowLbajKLamypYwEP/1 ooAdhuNdlDZM8YAolMmkYfHQDIz6vt5K5YWxWf6D4DfnHVUPuUysaSnlSZs+gscNgI0KLXfpbKd3f 5eLep0tAfJZRi1Ak55X5N5E6dpIsQi2TIBToTd6YjxwYFmPXLiZ8Pq1n6xovgskN7o8JLWcAYsntA 3azBHcRg==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kCeIp-0008EV-2M; Mon, 31 Aug 2020 07:32:31 +0000 Received: from casper.infradead.org ([2001:8b0:10b:1236::1]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kCeIn-0008Dj-2v for linux-arm-kernel@merlin.infradead.org; Mon, 31 Aug 2020 07:32:29 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=References:In-Reply-To:Message-Id:Date: Subject:Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description; bh=Q9owZoFhQP/8v1WZ3PwRETHLEFomRSRuCsdnKw/OZVg=; b=CCTVQbAUk5PtiXHGWGsAYDd/x4 EF7f5JiN0oGLmOKbl9+dC8Tvl1dtpwsCFnLSZWdpLbqgDhUWKYm48yu87+G/3XqO1I/h3a8UP95aB OrOoTHOw+3uGwul9olVTztl1B9+4wuJkN54MAKhYbnbwIQqgvgPM7+TKRPLuiRY49QZ3uPyvYda/F YXE4HgoA4w9jPebsr5nC1JKzGCVRCttROg7qMUlnF0TA/mZPx5piuqDveqCPok90qJtk9SgfattkQ 44C6C3wfC4jn6oGIzCfAmHh/rdyC5lPS4bVl+6dKrRiufpFzZ1fe19JLb+1fSPDX5F110vRI0YKIP Hq/cZvzQ==; Received: from gw.c-home.cz ([89.24.150.100] helo=dmz.c-home.cz) by casper.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kCeIV-0002qT-Rs for linux-arm-kernel@lists.infradead.org; Mon, 31 Aug 2020 07:32:28 +0000 Received: from ubuntu1804.c-home.cz (intra-239.c-home.cz [192.168.1.239]) by dmz.c-home.cz (8.14.4+Sun/8.14.4) with ESMTP id 07V7VPlJ005879; Mon, 31 Aug 2020 09:31:37 +0200 (CEST) From: Martin Cerveny To: Corentin Labbe Subject: [PATCH v2 3/3] crypto: sun4i-ss - add the V3s variant of SS Date: Mon, 31 Aug 2020 09:31:01 +0200 Message-Id: <20200831073101.3608-4-m.cerveny@computer.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200831073101.3608-1-m.cerveny@computer.org> References: <20200831073101.3608-1-m.cerveny@computer.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200831_083212_146102_CB5B9683 X-CRM114-Status: GOOD ( 10.18 ) X-Spam-Score: -1.2 (-) X-Spam-Report: SpamAssassin version 3.4.4 on casper.infradead.org summary: Content analysis details: (-1.2 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] 0.7 SPF_SOFTFAIL SPF: sender does not match SPF record (softfail) 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, Herbert Xu , linux-kernel@vger.kernel.org, Maxime Ripard , Chen-Yu Tsai , Rob Herring , linux-crypto@vger.kernel.org, Martin Cerveny , "David S. Miller" , linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org Like A33 "sun4i-ss" has a difference, it give SHA1 digest directly in BE. So add new compatible. Tested-by: Martin Cerveny Signed-off-by: Martin Cerveny Acked-by: Corentin Labbe --- drivers/crypto/allwinner/sun4i-ss/sun4i-ss-core.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/crypto/allwinner/sun4i-ss/sun4i-ss-core.c b/drivers/crypto/allwinner/sun4i-ss/sun4i-ss-core.c index a2b67f7f8..d24496cac 100644 --- a/drivers/crypto/allwinner/sun4i-ss/sun4i-ss-core.c +++ b/drivers/crypto/allwinner/sun4i-ss/sun4i-ss-core.c @@ -31,6 +31,10 @@ static const struct ss_variant ss_a33_variant = { .sha1_in_be = true, }; +static const struct ss_variant ss_v3s_variant = { + .sha1_in_be = true, +}; + static struct sun4i_ss_alg_template ss_algs[] = { { .type = CRYPTO_ALG_TYPE_AHASH, .mode = SS_OP_MD5, @@ -505,6 +509,9 @@ static const struct of_device_id a20ss_crypto_of_match_table[] = { { .compatible = "allwinner,sun8i-a33-crypto", .data = &ss_a33_variant }, + { .compatible = "allwinner,sun8i-v3s-crypto", + .data = &ss_v3s_variant + }, {} }; MODULE_DEVICE_TABLE(of, a20ss_crypto_of_match_table);