History

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.

Lionel Debieve committed 7 years ago

Commit f3880a21 parent 0acabec1 file · +2 −2Browse files

Unified · Split

drivers/crypto/stm32/stm32-hash.c+2−2
@@ -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,

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t