diff options
| author | Thomas Bourgoin <thomas.bourgoin@foss.st.com> | 2023-07-13 17:15:17 +0200 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2023-09-13 09:48:43 +0200 |
| commit | 5aa493719d8f02f17ecd0e1546f5b08e2ca137f6 (patch) | |
| tree | d447404d5d2cee847df54060b6c0f959a0e3fe0f | |
| parent | 3b8c7cc94e298fd0242e1025a8aafa9259a09b0d (diff) | |
| download | linux-5aa493719d8f02f17ecd0e1546f5b08e2ca137f6.tar.gz linux-5aa493719d8f02f17ecd0e1546f5b08e2ca137f6.zip | |
crypto: stm32 - fix MDMAT condition
commit a4adfbc2544933ac12e7fbd50708290265546dbc upstream.
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 <linus.walleij@linaro.org>
Signed-off-by: Thomas Bourgoin <thomas.bourgoin@foss.st.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
| -rw-r--r-- | drivers/crypto/stm32/stm32-hash.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/crypto/stm32/stm32-hash.c b/drivers/crypto/stm32/stm32-hash.c index 9760fca94eb5..fabae6da627b 100644 --- a/drivers/crypto/stm32/stm32-hash.c +++ b/drivers/crypto/stm32/stm32-hash.c @@ -492,7 +492,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 |
