diff options
| author | Lionel Debieve <[email protected]> | 2018-01-29 14:28:11 +0000 |
|---|---|---|
| committer | Herbert Xu <[email protected]> | 2018-02-15 15:26:55 +0000 |
| commit | d03d29bd1857b2d0e3aecdfe514ec0fc38390b24 (patch) | |
| tree | 1cc94287bbd5652864bd5619350bc34a91e1b336 /drivers/crypto/stm32/stm32-hash.c | |
| parent | crypto: stm32/hash - fix performance issues (diff) | |
| download | kernel-d03d29bd1857b2d0e3aecdfe514ec0fc38390b24.tar.gz kernel-d03d29bd1857b2d0e3aecdfe514ec0fc38390b24.zip | |
crypto: stm32/hash - rework padding length
Due to another patch, the dma fails when padding is
needed as the given length is not correct.
Signed-off-by: Lionel Debieve <[email protected]>
Signed-off-by: Herbert Xu <[email protected]>
Diffstat (limited to 'drivers/crypto/stm32/stm32-hash.c')
| -rw-r--r-- | drivers/crypto/stm32/stm32-hash.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/crypto/stm32/stm32-hash.c b/drivers/crypto/stm32/stm32-hash.c index d540cdfaf993..981e45692695 100644 --- a/drivers/crypto/stm32/stm32-hash.c +++ b/drivers/crypto/stm32/stm32-hash.c @@ -627,7 +627,7 @@ static int stm32_hash_dma_send(struct stm32_hash_dev *hdev) writesl(hdev->io_base + HASH_DIN, buffer, DIV_ROUND_UP(ncp, sizeof(u32))); } - stm32_hash_set_nblw(hdev, DIV_ROUND_UP(ncp, sizeof(u32))); + stm32_hash_set_nblw(hdev, ncp); reg = stm32_hash_read(hdev, HASH_STR); reg |= HASH_STR_DCAL; stm32_hash_write(hdev, HASH_STR, reg); |
