Re: [PATCH] crypto: ccp - Remove redundant cpu-to-le32 macros

2017-04-05 Thread Herbert Xu
On Tue, Mar 28, 2017 at 08:58:28AM -0500, Gary R Hook wrote:
> Endianness is dealt with when the command descriptor is
> copied into the command queue. Remove any occurrences of
> cpu_to_le32() found elsewhere.
> 
> Signed-off-by: Gary R Hook 

Patch applied.  Thanks.
-- 
Email: Herbert Xu 
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt


[PATCH] crypto: ccp - Remove redundant cpu-to-le32 macros

2017-03-28 Thread Gary R Hook
Endianness is dealt with when the command descriptor is
copied into the command queue. Remove any occurrences of
cpu_to_le32() found elsewhere.

Signed-off-by: Gary R Hook 
---
 drivers/crypto/ccp/ccp-dev-v5.c |   22 +++---
 1 file changed, 11 insertions(+), 11 deletions(-)

diff --git a/drivers/crypto/ccp/ccp-dev-v5.c b/drivers/crypto/ccp/ccp-dev-v5.c
index 5e08654..e03d06a 100644
--- a/drivers/crypto/ccp/ccp-dev-v5.c
+++ b/drivers/crypto/ccp/ccp-dev-v5.c
@@ -419,22 +419,22 @@ static int ccp5_perform_des3(struct ccp_op *op)
CCP_DES3_ENCRYPT() = op->u.des3.action;
CCP_DES3_MODE() = op->u.des3.mode;
CCP_DES3_TYPE() = op->u.des3.type;
-   CCP5_CMD_FUNCTION() = cpu_to_le32(function.raw);
+   CCP5_CMD_FUNCTION() = function.raw;
 
-   CCP5_CMD_LEN() = cpu_to_le32(op->src.u.dma.length);
+   CCP5_CMD_LEN() = op->src.u.dma.length;
 
-   CCP5_CMD_SRC_LO() = cpu_to_le32(ccp_addr_lo(>src.u.dma));
-   CCP5_CMD_SRC_HI() = cpu_to_le32(ccp_addr_hi(>src.u.dma));
-   CCP5_CMD_SRC_MEM() = cpu_to_le32(CCP_MEMTYPE_SYSTEM);
+   CCP5_CMD_SRC_LO() = ccp_addr_lo(>src.u.dma);
+   CCP5_CMD_SRC_HI() = ccp_addr_hi(>src.u.dma);
+   CCP5_CMD_SRC_MEM() = CCP_MEMTYPE_SYSTEM;
 
-   CCP5_CMD_DST_LO() = cpu_to_le32(ccp_addr_lo(>dst.u.dma));
-   CCP5_CMD_DST_HI() = cpu_to_le32(ccp_addr_hi(>dst.u.dma));
-   CCP5_CMD_DST_MEM() = cpu_to_le32(CCP_MEMTYPE_SYSTEM);
+   CCP5_CMD_DST_LO() = ccp_addr_lo(>dst.u.dma);
+   CCP5_CMD_DST_HI() = ccp_addr_hi(>dst.u.dma);
+   CCP5_CMD_DST_MEM() = CCP_MEMTYPE_SYSTEM;
 
-   CCP5_CMD_KEY_LO() = cpu_to_le32(lower_32_bits(key_addr));
+   CCP5_CMD_KEY_LO() = lower_32_bits(key_addr);
CCP5_CMD_KEY_HI() = 0;
-   CCP5_CMD_KEY_MEM() = cpu_to_le32(CCP_MEMTYPE_SB);
-   CCP5_CMD_LSB_ID() = cpu_to_le32(op->sb_ctx);
+   CCP5_CMD_KEY_MEM() = CCP_MEMTYPE_SB;
+   CCP5_CMD_LSB_ID() = op->sb_ctx;
 
return ccp5_do_cmd(, op->cmd_q);
 }