Skip to contentSkip to conversation

i2c: rcar: fix mask value of prohibited bit

PATCH Applied Wolfram Sang 2 participants 2 messages Mar 20, 2018 – Mar 24, 2018

Subsystems (3)
lore
Share & tools
lore

Wolfram Sang

author maintainer
#0 lore raw

PATCH 1/1 i2c: rcar: fix mask value of prohibited bit

From: Hiromitsu Yamasaki <[email protected]>

According to documentation, Bit 7 of ICMSR is unused and 0 should be written to it. Fix the mask accordingly.

[wsa: edited commit message]
---
 drivers/i2c/busses/i2c-rcar.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/i2c/busses/i2c-rcar.c +2 -2
index 4159ebcec2bb61..c6915b83539658 100644
@@ -102,8 +102,8 @@
 #define RCAR_IRQ_RECV	(MNR | MAL | MST | MAT | MDR)
 #define RCAR_IRQ_STOP	(MST)
 
-#define RCAR_IRQ_ACK_SEND	(~(MAT | MDE) & 0xFF)
-#define RCAR_IRQ_ACK_RECV	(~(MAT | MDR) & 0xFF)
+#define RCAR_IRQ_ACK_SEND	(~(MAT | MDE) & 0x7F)
+#define RCAR_IRQ_ACK_RECV	(~(MAT | MDR) & 0x7F)
 
 #define ID_LAST_MSG	(1 << 0)
 #define ID_FIRST_MSG	(1 << 1)
Signature · 1 line
2.11.0