Skip to content

Commit fea6b5e

Browse files
Wolfram SangAndi Shyti
authored andcommitted
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: 0e864b5 ("i2c: rcar: reset controller is mandatory for Gen3+") Signed-off-by: Wolfram Sang <[email protected]> Signed-off-by: Andi Shyti <[email protected]>
1 parent 4e36c0f commit fea6b5e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/i2c/busses/i2c-rcar.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -911,10 +911,10 @@ static int rcar_i2c_master_xfer(struct i2c_adapter *adap,
911911

912912
/* Gen3+ needs a reset. That also allows RXDMA once */
913913
if (priv->devtype >= I2C_RCAR_GEN3) {
914-
priv->flags &= ~ID_P_NO_RXDMA;
915914
ret = rcar_i2c_do_reset(priv);
916915
if (ret)
917916
goto out;
917+
priv->flags &= ~ID_P_NO_RXDMA;
918918
}
919919

920920
rcar_i2c_init(priv);

0 commit comments

Comments
 (0)