Commit fea6b5eb authored by Wolfram Sang's avatar Wolfram Sang Committed by Andi Shyti

i2c: rcar: clear NO_RXDMA flag after resetting

We should allow RXDMA only if the reset was really successful, so clear
the flag after the reset call.

Fixes: 0e864b55 ("i2c: rcar: reset controller is mandatory for Gen3+")
Signed-off-by: default avatarWolfram Sang <wsa+renesas@sang-engineering.com>
Signed-off-by: default avatarAndi Shyti <andi.shyti@kernel.org>
parent 4e36c0f2
...@@ -911,10 +911,10 @@ static int rcar_i2c_master_xfer(struct i2c_adapter *adap, ...@@ -911,10 +911,10 @@ static int rcar_i2c_master_xfer(struct i2c_adapter *adap,
/* Gen3+ needs a reset. That also allows RXDMA once */ /* Gen3+ needs a reset. That also allows RXDMA once */
if (priv->devtype >= I2C_RCAR_GEN3) { if (priv->devtype >= I2C_RCAR_GEN3) {
priv->flags &= ~ID_P_NO_RXDMA;
ret = rcar_i2c_do_reset(priv); ret = rcar_i2c_do_reset(priv);
if (ret) if (ret)
goto out; goto out;
priv->flags &= ~ID_P_NO_RXDMA;
} }
rcar_i2c_init(priv); rcar_i2c_init(priv);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment