Message ID | 1600413795-39256-2-git-send-email-clabbe@baylibre.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <SRS0=p7Vf=C3=lists.infradead.org=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@kernel.org> 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 2E517112E for <patchwork-linux-arm@patchwork.kernel.org>; Fri, 18 Sep 2020 07:25:35 +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 EF5C320795 for <patchwork-linux-arm@patchwork.kernel.org>; Fri, 18 Sep 2020 07:25:34 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="281uwdDU"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=baylibre-com.20150623.gappssmtp.com header.i=@baylibre-com.20150623.gappssmtp.com header.b="aS4oaZpG" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org EF5C320795 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com 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=7ooixa0HeJ0coId8cyamZ4PCVk5ToIboVj3AQNdQKGE=; b=281uwdDUOEdyfER2GDkRk2tpKr l0KwSKqdSGJHoJRXukhAghgj1Icq0WYGQ2z1t9ud7bk4foeTKLjaPNDAf2HV/1OSfX331sfGIJkZ7 t3QAG0VJkUr/4BNV6nPg+70S8jkKPZWpsYA6pkNqSVF2/pczb3njOrQrCGYVnih7JqH2kcnXQaBUg 4Tu9QpoYkf61WGZ+gn/v+3+j9v/YDVuSAWOqDNBusJLdxABBaoq2AtOoliDJOOwu60j735jUv1k/i DusG205+a0drAcVnwtH1quPWHfyuUUbGPLAx0sDLFjkCdhb0HlJ7fPoEFT9kNUHyenooQIdvZ1SBq NwMnKy7A==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kJAk3-0000Y0-Tc; Fri, 18 Sep 2020 07:23:36 +0000 Received: from mail-wm1-x342.google.com ([2a00:1450:4864:20::342]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kJAjv-0000Ud-Ib for linux-arm-kernel@lists.infradead.org; Fri, 18 Sep 2020 07:23:28 +0000 Received: by mail-wm1-x342.google.com with SMTP id e11so6037148wme.0 for <linux-arm-kernel@lists.infradead.org>; Fri, 18 Sep 2020 00:23:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=an/ZItpIvdsXZ+dkCGTRBp4WyvhqN2ZXif9hZg0TSV0=; b=aS4oaZpGgF5Yx/SjMNO4D1dl1r2QPritaZqtlULED7sRG0zDx0BocoRRJiEl6ArjM2 y3Whw2VQSIreWxm7uQES/cw4FoZJpkVTJMZIDUjU0plhB6fDQ/qR9vcKVBO2x0TCY3dk 3O310FYCGDJH1Og8IcSuHlugHCPjYWEpE3dO7PY+a6B1aKionlSIJ+urdFjock0pW3+4 iw5KDDqDvzV1umXS9x4+GSGkBv0MOgiNn6FKjZRkAL162npzPHTyH3fktrTpV7Tx2K13 n3FBPE2tl9G8h71rL0VXAR76J77g1Ns0SkxiDHhrAW4iFhwEcyvQFwWZQ0pmVfOFo8DZ MIJQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=an/ZItpIvdsXZ+dkCGTRBp4WyvhqN2ZXif9hZg0TSV0=; b=LEWtkftSR2N4wb87TcsGsOk/NkK75gW0JP+GFfgmJTWFDCqZBJ9adliW4lLh+AW77k obPwivMnwKK5vLPx4Cr//V+6KOJVPTt7r5N6NnPVAjY/P7Q/frf/jnQS/qj0HApnClHi U/ZslNOe7f5DR9B9SOWjAYrVwpIUts9woCxwx3mPeEGECUEuuDoWYjZn4HND9en3ocI8 yR7MnMDgr5AW9JVr00YmE5yeAT0LI34qcJ4pCepaKV215yE1p1DbVvdyyL/X/T6ctFV0 s/PhvoNOkLyVfFhLAFYRl/LX3hBKmo0igUAlUdxcplJCRtgN6/I5aAUKI4dwS5zU2mEN moBQ== X-Gm-Message-State: AOAM532lesQn7+mMHq3Sv4Ht6fJ02307GpxNZa5lXKIniMnj57BcjGEi UF22EX3//+KbI6eeECQTuLHizQ== X-Google-Smtp-Source: ABdhPJzDdfjoN4lKQgPDS0TV0at1cUlFXtL5wmDVSacIiOJLSNjIUz+GXZ+jG0BdRCNzSSojhweMjQ== X-Received: by 2002:a1c:6445:: with SMTP id y66mr14714398wmb.12.1600413806507; Fri, 18 Sep 2020 00:23:26 -0700 (PDT) Received: from localhost.localdomain ([51.15.160.169]) by smtp.googlemail.com with ESMTPSA id z19sm3349546wmi.3.2020.09.18.00.23.25 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 18 Sep 2020 00:23:25 -0700 (PDT) From: Corentin Labbe <clabbe@baylibre.com> To: davem@davemloft.net, herbert@gondor.apana.org.au, mripard@kernel.org, wens@csie.org Subject: [PATCH v7 01/17] crypto: sun8i-ss: Add SS_START define Date: Fri, 18 Sep 2020 07:22:59 +0000 Message-Id: <1600413795-39256-2-git-send-email-clabbe@baylibre.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1600413795-39256-1-git-send-email-clabbe@baylibre.com> References: <1600413795-39256-1-git-send-email-clabbe@baylibre.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200918_032327_617014_46344A76 X-CRM114-Status: GOOD ( 15.13 ) X-Spam-Score: 0.0 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (0.0 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2a00:1450:4864:20:0:0:0:342 listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Cc: Corentin Labbe <clabbe@baylibre.com>, linux-sunxi@googlegroups.com, linux-crypto@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org |
Series |
crypto: allwinner: add xRNG and hashes
|
expand
|
diff --git a/drivers/crypto/allwinner/sun8i-ss/sun8i-ss-core.c b/drivers/crypto/allwinner/sun8i-ss/sun8i-ss-core.c index 9a23515783a6..97012128385f 100644 --- a/drivers/crypto/allwinner/sun8i-ss/sun8i-ss-core.c +++ b/drivers/crypto/allwinner/sun8i-ss/sun8i-ss-core.c @@ -61,7 +61,7 @@ int sun8i_ss_run_task(struct sun8i_ss_dev *ss, struct sun8i_cipher_req_ctx *rctx const char *name) { int flow = rctx->flow; - u32 v = 1; + u32 v = SS_START; int i; #ifdef CONFIG_CRYPTO_DEV_SUN8I_SS_DEBUG diff --git a/drivers/crypto/allwinner/sun8i-ss/sun8i-ss.h b/drivers/crypto/allwinner/sun8i-ss/sun8i-ss.h index 0405767f1f7e..f3ffaea3a59f 100644 --- a/drivers/crypto/allwinner/sun8i-ss/sun8i-ss.h +++ b/drivers/crypto/allwinner/sun8i-ss/sun8i-ss.h @@ -13,6 +13,8 @@ #include <linux/debugfs.h> #include <linux/crypto.h> +#define SS_START 1 + #define SS_ENCRYPTION 0 #define SS_DECRYPTION BIT(6)
Instead of using an hardcoded value, let's use a defined value for SS_START. Signed-off-by: Corentin Labbe <clabbe@baylibre.com> --- drivers/crypto/allwinner/sun8i-ss/sun8i-ss-core.c | 2 +- drivers/crypto/allwinner/sun8i-ss/sun8i-ss.h | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-)