Message ID | 20230706073719.1156288-7-thomas.bourgoin@foss.st.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp2388142vqx; Thu, 6 Jul 2023 01:01:17 -0700 (PDT) X-Google-Smtp-Source: APBJJlEUJc4IE3I6UjBCj7mus0UFFKXAL179vc7M9dfpMIt7zhPC1kRjMuJG3YXX2l/jVxs9XRur X-Received: by 2002:a05:6870:c69c:b0:1b3:f010:87c2 with SMTP id cv28-20020a056870c69c00b001b3f01087c2mr1560113oab.30.1688630477226; Thu, 06 Jul 2023 01:01:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688630477; cv=none; d=google.com; s=arc-20160816; b=Grp1O0+WFEaw1g7AmZ/L9cRPPo2bIFbskHjtpZZ2bxebpB1SonQqviyYbqlpnGsY3V eb9Ipzet7rKW9aO2m+uRRllFFqctN0ZlddnP16aXdRY51hzS4mLs7ckU3nqTRQzflM+k Wxo00rvt1thgsGmpP9prPZh6n2zXYwk9tX4/hlbI625BoNp4Z+YcrVr6lew1+jbwRkno Zvw5ZL7JSsapVon5Xvggpubwanb8myrNxNIhy3Qg6s+WC3AIsn+BGNAumzfhkOZQSeJE MDmCSGqAPV43YlVNlkn/2MQZZ5iLvO4RDTTYf8/vZSTKbYSgp1FevJ4CCd3K0WRnPn14 VGUA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=AfA8C5Z2MLV8Uji9mrzEkXwlc7KnvC3knmxH0kuI2O8=; fh=tUOLXbYg6yQ+/v4k7Q2EmKHjiTMAnnvqlYEqREZQ370=; b=T41KJJceo1V9Q4ysyD7GfG9+ueIjmYaYqAsRHqCbLQpJO0FIYH585QKLJ6v5ot43ks Cd0sc5u+VyBDTt6VJHMVgbEcgzSAXWppmP0+THomkL+14SzegkJNDVkIBbSa8V/2rSkL uJ0a8OXRvV0h82XjFbP5Ku0wR0bLfclrJKBAfYmrTeVJWz6sPWDnlIndubHus4BcsIW8 OfxmnskDgYSenu4Bk56Cdu0v/to7uvimNgKJm+0STyrtoAWoGQoV+5ApZzPmy0ki24ta M2sngbYYdIDVw3o8Ttksf+fn3MCwZCzhRQzEn1pjr9CNNQOuIjYSEQDp7anJevAyN9Vg ToiA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=CtbL8eVw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=foss.st.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f23-20020a635557000000b00553b9b18886si948435pgm.638.2023.07.06.01.01.02; Thu, 06 Jul 2023 01:01:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=CtbL8eVw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=foss.st.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233452AbjGFHkY (ORCPT <rfc822;hadasmailinglist@gmail.com> + 99 others); Thu, 6 Jul 2023 03:40:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53666 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233771AbjGFHkR (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Thu, 6 Jul 2023 03:40:17 -0400 Received: from mx07-00178001.pphosted.com (mx08-00178001.pphosted.com [91.207.212.93]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 26A251FEE; Thu, 6 Jul 2023 00:39:54 -0700 (PDT) Received: from pps.filterd (m0046660.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 3667B0TI024691; Thu, 6 Jul 2023 09:39:38 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foss.st.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding : content-type; s=selector1; bh=AfA8C5Z2MLV8Uji9mrzEkXwlc7KnvC3knmxH0kuI2O8=; b=CtbL8eVwEEUYL3PPysAOStd5DgpUi+0VPXgyp41S4EEgfllIJbgvwzG79zkgrIRoMrn6 TL/noRFqCALEBtbjV0v6H49FqkWfKR/pl1Ho7whFO2ylVSBOjJBNVG5K/sWYsYMtw4CC jn/y/AtOBxW8+PKECGLDvTqmrizCJs26BDECviKvqnJxX0d1QdNPzgmeEHI3vjBO8hTZ tmA8UJWyzBTVWM3QUiGYhW6utuj0i9TJuDtxR7if+KpylIR+CDIsIlEu780+DM3oRaGa NT7NKFXgT70LGlOM+rllmzN70A5wIkoZ4Gyj5lKHlEassIOqNBphAFXMWcbp7QeUlkHD aQ== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com (PPS) with ESMTPS id 3rnkt8jegm-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 06 Jul 2023 09:39:33 +0200 Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id D5621100052; Thu, 6 Jul 2023 09:39:30 +0200 (CEST) Received: from Webmail-eu.st.com (shfdag1node3.st.com [10.75.129.71]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id CDD57212FA9; Thu, 6 Jul 2023 09:39:30 +0200 (CEST) Received: from localhost (10.201.22.9) by SHFDAG1NODE3.st.com (10.75.129.71) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.21; Thu, 6 Jul 2023 09:39:30 +0200 From: Thomas BOURGOIN <thomas.bourgoin@foss.st.com> To: Thomas BOURGOIN <thomas.bourgoin@foss.st.com>, Herbert Xu <herbert@gondor.apana.org.au>, "David S . Miller" <davem@davemloft.net>, Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Conor Dooley <conor+dt@kernel.org>, Maxime Coquelin <mcoquelin.stm32@gmail.com>, Alexandre Torgue <alexandre.torgue@foss.st.com>, Lionel Debieve <lionel.debieve@foss.st.com>, Linus Walleij <linus.walleij@linaro.org> CC: <linux-crypto@vger.kernel.org>, <devicetree@vger.kernel.org>, <linux-stm32@st-md-mailman.stormreply.com>, <linux-arm-kernel@lists.infradead.org>, <linux-kernel@vger.kernel.org> Subject: [PATCH 6/7] crypto: stm32 - fix MDMAT condition Date: Thu, 6 Jul 2023 09:37:18 +0200 Message-ID: <20230706073719.1156288-7-thomas.bourgoin@foss.st.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230706073719.1156288-1-thomas.bourgoin@foss.st.com> References: <20230706073719.1156288-1-thomas.bourgoin@foss.st.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.201.22.9] X-ClientProxiedBy: SHFCAS1NODE1.st.com (10.75.129.72) To SHFDAG1NODE3.st.com (10.75.129.71) X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.957,Hydra:6.0.591,FMLib:17.11.176.26 definitions=2023-07-06_04,2023-07-06_01,2023-05-22_02 X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1770657391045147525?= X-GMAIL-MSGID: =?utf-8?q?1770657391045147525?= |
Series |
Support of HASH on STM32MP13
|
|
Commit Message
Thomas Bourgoin
July 6, 2023, 7:37 a.m. UTC
From: Thomas Bourgoin <thomas.bourgoin@foss.st.com> If IP has MDMAT support, set or reset the bit MDMAT in Control Register. Fixes: b56403a25af7 ("crypto: stm32/hash - Support Ux500 hash") Signed-off-by: Thomas Bourgoin <thomas.bourgoin@foss.st.com> --- drivers/crypto/stm32/stm32-hash.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Comments
On Thu, Jul 6, 2023 at 9:39 AM Thomas BOURGOIN <thomas.bourgoin@foss.st.com> wrote: > From: Thomas Bourgoin <thomas.bourgoin@foss.st.com> > > If IP has MDMAT support, set or reset the bit MDMAT in Control Register. > > Fixes: b56403a25af7 ("crypto: stm32/hash - Support Ux500 hash") > Signed-off-by: Thomas Bourgoin <thomas.bourgoin@foss.st.com> Oops probably my fault. Reviewed-by: Linus Walleij <linus.walleij@linaro.org> This should probably be applied for fixes/stable. Yours, Linus Walleij
diff --git a/drivers/crypto/stm32/stm32-hash.c b/drivers/crypto/stm32/stm32-hash.c index ee68e38b6e28..0b5e580efbba 100644 --- a/drivers/crypto/stm32/stm32-hash.c +++ b/drivers/crypto/stm32/stm32-hash.c @@ -544,7 +544,7 @@ static int stm32_hash_xmit_dma(struct stm32_hash_dev *hdev, reg = stm32_hash_read(hdev, HASH_CR); - if (!hdev->pdata->has_mdmat) { + if (hdev->pdata->has_mdmat) { if (mdma) reg |= HASH_CR_MDMAT; else