i2c: rcar: ensure Gen3+ reset does not disturb local targets
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Thu, 11 Jul 2024 08:30:44 +0000 (10:30 +0200)
committerAndi Shyti <andi.shyti@kernel.org>
Thu, 11 Jul 2024 23:45:08 +0000 (01:45 +0200)
commitea5ea84c9d3570dc06e8fc5ee2273eaa584aa3ac
treefd5590810e74eb37dd6f87736ab4475c431bf968
parentfea6b5ebb71a2830b042e42de7ae255017ac3ce8
i2c: rcar: ensure Gen3+ reset does not disturb local targets

R-Car Gen3+ needs a reset before every controller transfer. That erases
configuration of a potentially in parallel running local target
instance. To avoid this disruption, avoid controller transfers if a
local target is running. Also, disable SMBusHostNotify because it
requires being a controller and local target at the same time.

Fixes: 3b770017b03a ("i2c: rcar: handle RXDMA HW behaviour on Gen3")
Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Signed-off-by: Andi Shyti <andi.shyti@kernel.org>
drivers/i2c/busses/i2c-rcar.c