6.5-stable review patch. If anyone has any objections, please let me know. ------------------ From: Thomas Bourgoin <thomas.bourgoin@xxxxxxxxxxx> 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@xxxxxxxxxxxxxxx Reviewed-by: Linus Walleij <linus.walleij@xxxxxxxxxx> Signed-off-by: Thomas Bourgoin <thomas.bourgoin@xxxxxxxxxxx> Signed-off-by: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx> Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx> --- drivers/crypto/stm32/stm32-hash.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- 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 st reg = stm32_hash_read(hdev, HASH_CR); - if (!hdev->pdata->has_mdmat) { + if (hdev->pdata->has_mdmat) { if (mdma) reg |= HASH_CR_MDMAT; else