i2c: rcar: fix mask value of prohibited bit
authorHiromitsu Yamasaki <hiromitsu.yamasaki.ym@renesas.com>
Tue, 20 Mar 2018 21:04:14 +0000 (22:04 +0100)
committerWolfram Sang <wsa@the-dreams.de>
Sat, 24 Mar 2018 13:04:38 +0000 (14:04 +0100)
According to documentation, Bit 7 of ICMSR is unused and 0 should be
written to it. Fix the mask accordingly.

Signed-off-by: Hiromitsu Yamasaki <hiromitsu.yamasaki.ym@renesas.com>
[wsa: edited commit message]
Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-rcar.c

index 4159ebcec2bb61f8727fe6220b06ac097ab1637e..c6915b835396587d7d39682ef7743e85a191ee6b 100644 (file)
 #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)