ixp4xx_crypto: simplyfy the code a bit.

2010-01-10 Thread Krzysztof Halasa
Signed-off-by: Krzysztof Hałasa diff --git a/drivers/crypto/ixp4xx_crypto.c b/drivers/crypto/ixp4xx_crypto.c index 2ae7148..a28df93 100644 --- a/drivers/crypto/ixp4xx_crypto.c +++ b/drivers/crypto/ixp4xx_crypto.c @@ -104,7 +104,7 @@ struct buffer_desc { u16 buf_len; #endif u32 ph

ixp4xx_crypto: Fix possible NULL ptr dereference.

2010-01-10 Thread Krzysztof Halasa
Signed-off-by: Krzysztof Hałasa diff --git a/drivers/crypto/ixp4xx_crypto.c b/drivers/crypto/ixp4xx_crypto.c index f8f6515..2ae7148 100644 --- a/drivers/crypto/ixp4xx_crypto.c +++ b/drivers/crypto/ixp4xx_crypto.c @@ -786,10 +786,8 @@ static struct buffer_desc *chainup_buffers(struct device *dev,

IXP4xx: Fix whitespace problems in ixp4xx_crypto.

2010-01-10 Thread Krzysztof Halasa
Signed-off-by: Krzysztof Hałasa diff --git a/drivers/crypto/ixp4xx_crypto.c b/drivers/crypto/ixp4xx_crypto.c index 0c7e4f5..f8f6515 100644 --- a/drivers/crypto/ixp4xx_crypto.c +++ b/drivers/crypto/ixp4xx_crypto.c @@ -64,7 +64,7 @@ #define MOD_DES 0x #define MOD_TDEA2 0x0100 -#define

IXP4xx: Simplify get_crypt_desc() and get_crypt_desc_emerg() in ixp4xx_crypto.

2010-01-10 Thread Krzysztof Halasa
Signed-off-by: Krzysztof Hałasa diff --git a/drivers/crypto/ixp4xx_crypto.c b/drivers/crypto/ixp4xx_crypto.c index 99f06e1..0c7e4f5 100644 --- a/drivers/crypto/ixp4xx_crypto.c +++ b/drivers/crypto/ixp4xx_crypto.c @@ -277,26 +277,25 @@ static struct crypt_ctl *get_crypt_desc(void) int i;

IXP4xx: Fix ixp4xx_crypto sparse warnings.

2010-01-10 Thread Krzysztof Halasa
Signed-off-by: Krzysztof Hałasa diff --git a/drivers/crypto/ixp4xx_crypto.c b/drivers/crypto/ixp4xx_crypto.c index cac026a..99f06e1 100644 --- a/drivers/crypto/ixp4xx_crypto.c +++ b/drivers/crypto/ixp4xx_crypto.c @@ -402,7 +402,7 @@ static void one_packet(dma_addr_t phys) break;

Re: [6 PATCHes] IXP4xx crypto driver fixes.

2010-01-10 Thread Krzysztof Halasa
IXP4xx: Fix ixp4xx_crypto little-endian operation. Signed-off-by: Krzysztof Hałasa Fixes the following on IXP425 little-endian: NPE-C: firmware functionality 0x5, revision 0x2:1 alg: skcipher: Test 1 failed on encryption for ecb(des)-ixp4xx : 01 23 45 67 89 ab cd e7 alg: skcipher: Test

[6 PATCHes] IXP4xx crypto driver fixes.

2010-01-10 Thread Krzysztof Halasa
Christian, Herbert, I'm attaching 6 patches for IXP4xx crypto accelerator: IXP4xx: Fix ixp4xx_crypto little-endian operation. IXP4xx: Fix ixp4xx_crypto sparse warnings. IXP4xx: Simplify get_crypt_desc() and get_crypt_desc_emerg() in ixp4xx_crypto. IXP4xx: Fix whitespace p