mirror of
https://github.com/torvalds/linux.git
synced 2024-11-21 19:41:42 +00:00
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>
This commit is contained in:
parent
0acabecebc
commit
f3880a2356
@ -461,7 +461,7 @@ static int stm32_hash_xmit_dma(struct stm32_hash_dev *hdev,
|
||||
|
||||
dma_async_issue_pending(hdev->dma_lch);
|
||||
|
||||
if (!wait_for_completion_interruptible_timeout(&hdev->dma_completion,
|
||||
if (!wait_for_completion_timeout(&hdev->dma_completion,
|
||||
msecs_to_jiffies(100)))
|
||||
err = -ETIMEDOUT;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user