i2c: rcar: faster irq code to minimize HW race condition
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Wed, 23 Dec 2020 17:21:51 +0000 (18:21 +0100)
committerWolfram Sang <wsa@kernel.org>
Tue, 5 Jan 2021 15:29:06 +0000 (16:29 +0100)
commitc7b514ec979e23a08c411f3d8ed39c7922751422
tree26283d7292331bc63232f611677bf13d7123f951
parent357ee8841d0b7bd822f25fc768afbc0c2ab7e47b
i2c: rcar: faster irq code to minimize HW race condition

To avoid the HW race condition on R-Car Gen2 and earlier, we need to
write to ICMCR as soon as possible in the interrupt handler. We can
improve this by writing a static value instead of masking out bits.

Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Reviewed-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
drivers/i2c/busses/i2c-rcar.c