OSDN Git Service

crypto: inside-secure - fix the ring wr_cache offset
authorAntoine Ténart <antoine.tenart@free-electrons.com>
Thu, 15 Jun 2017 07:56:18 +0000 (09:56 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Tue, 20 Jun 2017 03:21:41 +0000 (11:21 +0800)
The EIP197_HIA_xDR_CFG_WR_CACHE macro was defined to use an offset of
23, which is wrong as it's actually 25. Fix this.

Reported-by: Igal Liberman <igall@marvell.com>
Signed-off-by: Antoine Tenart <antoine.tenart@free-electrons.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/inside-secure/safexcel.h

index c17fdd4..0328a93 100644 (file)
@@ -99,7 +99,7 @@
 #define EIP197_HIA_xDR_WR_RES_BUF              BIT(22)
 #define EIP197_HIA_xDR_WR_CTRL_BUG             BIT(23)
 #define EIP197_HIA_xDR_WR_OWN_BUF              BIT(24)
-#define EIP197_HIA_xDR_CFG_WR_CACHE(n)         (((n) & 0x7) << 23)
+#define EIP197_HIA_xDR_CFG_WR_CACHE(n)         (((n) & 0x7) << 25)
 #define EIP197_HIA_xDR_CFG_RD_CACHE(n)         (((n) & 0x7) << 29)
 
 /* EIP197_HIA_CDR_THRESH */