Message ID | 20230713151518.1513949-7-thomas.bourgoin@foss.st.com |
---|---|
State | Accepted |
Commit | a4adfbc2544933ac12e7fbd50708290265546dbc |
Headers | show |
Series | [v2,1/7] dt-bindings: crypto: add new compatible for stm32-hash | expand |
diff --git a/drivers/crypto/stm32/stm32-hash.c b/drivers/crypto/stm32/stm32-hash.c index 701995a72e57..a48e6a14da2e 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