From: Al Viro
With that, all ->sendmsg() instances are converted to iov_iter primitives
and are agnostic wrt the kind of iov_iter they are working with.
So's the last remaining ->recvmsg() instance that wasn't kind-agnostic yet.
All ->sendmsg() and ->recvmsg() advance ->msg_iter by the amount act
For some reason this series never reached the mailing list... resending.
The following series of patches includes functional updates to the
driver as well as some trivial changes.
- Fix checks/warnings from checkpatch
- Update how the CCP is built (Kconfig and Makefile)
- Use dma_set_mask_and_coh
Replace the setting of the DMA masks with the dma_set_mask_and_coherent
function call.
Signed-off-by: Tom Lendacky
---
drivers/crypto/ccp/ccp-platform.c |7 +--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/drivers/crypto/ccp/ccp-platform.c
b/drivers/crypto/ccp/ccp-platf
Where applicable, convert calls to their devm_ counterparts, e.g. kzalloc
to devm_kzalloc.
Signed-off-by: Tom Lendacky
---
drivers/crypto/ccp/ccp-dev.c |2 +-
drivers/crypto/ccp/ccp-pci.c | 19 +--
drivers/crypto/ccp/ccp-platform.c | 11 +++
3 files chan
Add HAS_IOMEM as a Kconfig dependency. Always include ccp-platform.c
in the CCP build and conditionally include ccp-pci.c.
Signed-off-by: Tom Lendacky
---
drivers/crypto/Kconfig |2 +-
drivers/crypto/ccp/Makefile |9 ++---
2 files changed, 3 insertions(+), 8 deletions(-)
diff -
Changes to address warnings and errors reported by the checkpatch
script.
Signed-off-by: Tom Lendacky
---
drivers/crypto/ccp/ccp-crypto-aes-cmac.c | 12 +++-
drivers/crypto/ccp/ccp-crypto-aes-xts.c |4 +---
drivers/crypto/ccp/ccp-crypto-aes.c |3 +--
drivers/crypto/ccp/cc
Add support for ACPI to the CCP platform driver.
Signed-off-by: Tom Lendacky
---
drivers/crypto/Kconfig|2 -
drivers/crypto/ccp/ccp-platform.c | 96 +++--
2 files changed, 93 insertions(+), 5 deletions(-)
diff --git a/drivers/crypto/Kconfig b/dr
test_aead_speed is written for sync algorithms without specifically
requiring them. The effect is that an async algorithm may be used without
setting up the request callback, this leading to a kernel panic.
Signed-off-by: Cristian Stoica
---
crypto/tcrypt.c | 3 ++-
1 file changed, 2 insertions(