From: Thomas Bourgoin Date: Thu, 13 Jul 2023 15:15:17 +0000 (+0200) Subject: crypto: stm32 - fix MDMAT condition X-Git-Tag: v6.6.17~4031^2~90 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a4adfbc2544933ac12e7fbd50708290265546dbc;p=platform%2Fkernel%2Flinux-rpi.git crypto: stm32 - fix MDMAT condition If IP has MDMAT support, set or reset the bit MDMAT in Control Register. Fixes: b56403a25af7 ("crypto: stm32/hash - Support Ux500 hash") Cc: stable@vger.kernel.org Reviewed-by: Linus Walleij Signed-off-by: Thomas Bourgoin Signed-off-by: Herbert Xu --- diff --git a/drivers/crypto/stm32/stm32-hash.c b/drivers/crypto/stm32/stm32-hash.c index 701995a..a48e6a1 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