[PATCH] crypto: nx - don't err if compressed output > input

2015-07-29 Thread Dan Streetman
Return success instead of error if compression succeeds but the output is larger than the input. It's unlikely that the caller will use the compressed data since it's larger than the original uncompressed data, but there was no error and returning an error code is incorrect. Further, for testing

[PATCH] crypto: nx - use be32_to_cpu for __be32 field in debug msg

2015-07-29 Thread Dan Streetman
One of the debug messages in the NX 842 PowerNV driver is missing the required be32_to_cpu() wrapper when accessing the __be32 field csb->count. Add the wrapper so the message will show the correct count. Signed-off-by: Dan Streetman --- drivers/crypto/nx/nx-842-powernv.c | 3 ++- 1 file change

[PATCH] MAINTAINERS: change 842 NX owner email address

2015-07-29 Thread Dan Streetman
Change my IBM email to my personal IEEE email. I'm leaving IBM, so my email there won't work anymore. This changes the owner to my personal email, so I can still get cc'ed on patches, until someone at IBM sends a patch to take it over. Signed-off-by: Dan Streetman --- MAINTAINERS | 2 +- 1 fil

[PATCH 11/12] crypto: caam - Enable MXC devices to select CAAM driver in Kconfig

2015-07-29 Thread Victoria Milhoan
From: Steve Cornelius Allow CAAM to be selected in the kernel for Freescale i.MX devices if ARCH_MXC is enabled. Signed-off-by: Steve Cornelius Signed-off-by: Victoria Milhoan --- drivers/crypto/caam/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/crypto/ca

[PATCH 00/12] crypto: caam - Add i.MX6 support to the Freescale CAAM driver

2015-07-29 Thread Victoria Milhoan
This patch series adds i.MX6 support to the Freescale CAAM driver. Modifications include: - explicit cache coherency support in the driver - register I/O primitive support - scatter/gather entry modifications - clocking support - i.MX6 device tree support for CAAM - DMA fixes These patches have

[PATCH 01/12] crypto: caam - Add cache coherency support

2015-07-29 Thread Victoria Milhoan
Freescale i.MX6 ARM platforms do not support hardware cache coherency. This patch adds cache coherency support to the CAAM driver. Signed-off-by: Victoria Milhoan --- drivers/crypto/caam/caamhash.c | 2 +- drivers/crypto/caam/caamrng.c | 4 drivers/crypto/caam/jr.c | 18 +++

[PATCH 12/12] ARM: imx_v6_v7_defconfig: Select CAAM

2015-07-29 Thread Victoria Milhoan
Select CAAM for i.MX6 devices. Signed-off-by: Victoria Milhoan --- arch/arm/configs/imx_v6_v7_defconfig | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/arch/arm/configs/imx_v6_v7_defconfig b/arch/arm/configs/imx_v6_v7_defconfig index b47863d..7569b39 100644 --- a/arch/arm/

[PATCH 02/12] crypto: caam - Add setbits32/clrbits32/clrsetbits primitives for ARM compatibility

2015-07-29 Thread Victoria Milhoan
Add set/clear 32-bit primitives for compatibility with ARM devices since the primitives were previously only defined for the Power architecture. Signed-off-by: Victoria Milhoan --- drivers/crypto/caam/ctrl.c | 6 +++--- drivers/crypto/caam/regs.h | 23 +++ 2 files changed, 2

[PATCH 06/12] crypto: caam - Correct DMA unmap size in ahash_update_ctx()

2015-07-29 Thread Victoria Milhoan
This change fixes: [ cut here ] WARNING: CPU: 0 PID: 456 at lib/dma-debug.c:1103 check_unmap+0x438/0x958() caam_jr 2101000.jr0: DMA-API: device driver frees DMA memory with different size [device address=0x3a241080] [map ] Modules linked in: tcrypt(+) CPU: 0 PID: 4

[PATCH 09/12] ARM: dts: mx6qdl: Add CAAM device node

2015-07-29 Thread Victoria Milhoan
Add CAAM device node to the i.MX6 device tree. Signed-off-by: Victoria Milhoan --- arch/arm/boot/dts/imx6qdl.dtsi | 30 ++ 1 file changed, 26 insertions(+), 4 deletions(-) diff --git a/arch/arm/boot/dts/imx6qdl.dtsi b/arch/arm/boot/dts/imx6qdl.dtsi index e6d1359..4df

[PATCH 07/12] crypto: caam - Use local sg pointers to walk the scatterlist

2015-07-29 Thread Victoria Milhoan
Avoid moving the head of the scatterlist entry by using temporary pointers to walk the scatterlist. Signed-off-by: Victoria Milhoan --- drivers/crypto/caam/sg_sw_sec4.h | 24 +--- 1 file changed, 17 insertions(+), 7 deletions(-) diff --git a/drivers/crypto/caam/sg_sw_sec4.h

[PATCH 05/12] crypto: caam - Change kmalloc to kzalloc to avoid residual data

2015-07-29 Thread Victoria Milhoan
Since fields must be ORed in to operate correctly using any order of operations, changed allocations of the combination of extended descriptor structs + hardware scatterlists to use kzalloc() instead of kmalloc(), so as to ensure that residue data would not be ORed in with the correct data. Signed

[PATCH 10/12] ARM: dts: mx6sx: Add CAAM device node

2015-07-29 Thread Victoria Milhoan
Add CAAM device node to the i.MX6SX device tree. Signed-off-by: Victoria Milhoan --- arch/arm/boot/dts/imx6sx.dtsi | 29 + 1 file changed, 29 insertions(+) diff --git a/arch/arm/boot/dts/imx6sx.dtsi b/arch/arm/boot/dts/imx6sx.dtsi index 708175d..c73cee4 100644 --- a/

[PATCH 08/12] ARM: clk-imx6q: Add CAAM clock support

2015-07-29 Thread Victoria Milhoan
Add CAAM clock support to the i.MX6 clocking infrastructure. Signed-off-by: Victoria Milhoan --- drivers/clk/imx/clk-imx6q.c | 3 +++ include/dt-bindings/clock/imx6qdl-clock.h | 5 - 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/drivers/clk/imx/clk-imx6q.c b/dri

[PATCH 03/12] crypto: caam - Enable and disable clocks on Freescale i.MX platforms

2015-07-29 Thread Victoria Milhoan
ARM-based systems may disable clocking to the CAAM device on the Freescale i.MX platform for power management purposes. This patch enables the required clocks when the CAAM module is initialized and disables the required clocks when the CAAM module is shut down. Signed-off-by: Victoria Milhoan -

[PATCH 04/12] crypto: caam - Modify Freescale CAAM driver Scatter Gather entry definition

2015-07-29 Thread Victoria Milhoan
Modify the Scatter-Gather entry definitions for the Freescale CAAM driver to include support for both 64- and 32-bit DMA pointers. Signed-off-by: Victoria Milhoan --- drivers/crypto/caam/desc.h | 25 + drivers/crypto/caam/sg_sw_sec4.h | 1 - 2 files changed, 21 ins

Re: [PATCH 03/12] crypto: caam - Enable and disable clocks on Freescale i.MX platforms

2015-07-29 Thread Sascha Hauer
Hi Victoria, comments inline. On Wed, Jul 29, 2015 at 08:58:20PM -0700, Victoria Milhoan wrote: > ARM-based systems may disable clocking to the CAAM device on the > Freescale i.MX platform for power management purposes. This patch > enables the required clocks when the CAAM module is initialized

Re: [PATCH 09/12] ARM: dts: mx6qdl: Add CAAM device node

2015-07-29 Thread Sascha Hauer
On Wed, Jul 29, 2015 at 08:58:26PM -0700, Victoria Milhoan wrote: > Add CAAM device node to the i.MX6 device tree. > > Signed-off-by: Victoria Milhoan > --- > arch/arm/boot/dts/imx6qdl.dtsi | 30 ++ > 1 file changed, 26 insertions(+), 4 deletions(-) > > diff --git a/

Re: [PATCH 08/12] ARM: clk-imx6q: Add CAAM clock support

2015-07-29 Thread Sascha Hauer
On Wed, Jul 29, 2015 at 08:58:25PM -0700, Victoria Milhoan wrote: > Add CAAM clock support to the i.MX6 clocking infrastructure. > > Signed-off-by: Victoria Milhoan > --- > drivers/clk/imx/clk-imx6q.c | 3 +++ > include/dt-bindings/clock/imx6qdl-clock.h | 5 - > 2 files changed