diff options
author | Tom Rini <trini@konsulko.com> | 2020-10-01 08:36:29 -0400 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2020-10-01 08:36:29 -0400 |
commit | 47e180fa63a9e1eb441782920b2bf0202634f0d8 (patch) | |
tree | a1b6aa92c0f19e1f6ebff7f008adab77c946da1a | |
parent | 8e8dc04c3affadd40f157e37be27e4c57fade56e (diff) | |
parent | 86a73b0905430c0a637280d33afa498b366f4d23 (diff) |
Merge tag 'late-bugfix-for-2020.10' of https://gitlab.denx.de/u-boot/custodians/u-boot-i2c
i2c late bugfix for v2020.10
- rcar_i2c: Fix i2c read/write errors
fixes commit 7c8f821e ("i2c: rcar_i2c: Set the slave address from rcar_i2c_xfer")
-rw-r--r-- | drivers/i2c/rcar_i2c.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/i2c/rcar_i2c.c b/drivers/i2c/rcar_i2c.c index 4267bbfa5a..663c342cd8 100644 --- a/drivers/i2c/rcar_i2c.c +++ b/drivers/i2c/rcar_i2c.c @@ -211,7 +211,7 @@ static int rcar_i2c_xfer(struct udevice *dev, struct i2c_msg *msg, int nmsgs) int ret; for (; nmsgs > 0; nmsgs--, msg++) { - ret = rcar_i2c_set_addr(dev, msg->addr, 1); + ret = rcar_i2c_set_addr(dev, msg->addr, !!(msg->flags & I2C_M_RD)); if (ret) return ret; |