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.
Unified · Split
| @@ -461,8 +461,8 @@ static int stm32_hash_xmit_dma(struct stm32_hash_dev *hdev, · 460 unmodified lines | |||
| 461 | 461 | ||
| 462 | dma_async_issue_pending(hdev->dma_lch); | 462 | dma_async_issue_pending(hdev->dma_lch); |
| 463 | 463 | ||
| 464 | if (!wait_for_completion_interruptible_timeout(&hdev->dma_completion, | 464 | if (!wait_for_completion_timeout(&hdev->dma_completion, |
| 465 | msecs_to_jiffies(100))) | 465 | msecs_to_jiffies(100))) |
| 466 | err = -ETIMEDOUT; | 466 | err = -ETIMEDOUT; |
| 467 | 467 | ||
| 468 | if (dma_async_is_tx_complete(hdev->dma_lch, cookie, | 468 | if (dma_async_is_tx_complete(hdev->dma_lch, cookie, |