Skip to content

Commit f3880a2

Browse files
ldebieveherbertx
authored andcommitted
crypto: stm32/hash - remove interruptible condition for dma
When DMA is used, waiting for completion must not be interruptible as it can generate an error that is not handle by the driver. There is no need to put the completion interruptible in this driver. Signed-off-by: Lionel Debieve <lionel.debieve@st.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
1 parent 0acabec commit f3880a2

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎drivers/crypto/stm32/stm32-hash.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -461,8 +461,8 @@ static int stm32_hash_xmit_dma(struct stm32_hash_dev *hdev,
461461

462462
dma_async_issue_pending(hdev->dma_lch);
463463

464-
if (!wait_for_completion_interruptible_timeout(&hdev->dma_completion,
465-
msecs_to_jiffies(100)))
464+
if (!wait_for_completion_timeout(&hdev->dma_completion,
465+
msecs_to_jiffies(100)))
466466
err = -ETIMEDOUT;
467467

468468
if (dma_async_is_tx_complete(hdev->dma_lch, cookie,

0 commit comments

Comments
 (0)