From: Marek Vasut Date: Wed, 6 Mar 2019 13:40:59 +0100 Subject: [U-Boot] [PATCH v3 4/6] i2c: rcar_i2c: Don't mask errors with EREMOTEIO at rcar_i2c_xfer In-Reply-To: <20190306104613.8153-4-ismael.luceno@silicon-gears.com> References: <20190306104613.8153-1-ismael.luceno@silicon-gears.com> <20190306104613.8153-4-ismael.luceno@silicon-gears.com> Message-ID: <7219a52c-ff8a-354e-198e-47f678657ca2@gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 3/6/19 11:46 AM, Ismael Luceno Cortes wrote: > Fix rcar_i2c_xfer return value, previously it was always returning > -EREMOTEIO when dealing with errors from calls to the read/write > functions. > > Signed-off-by: Ismael Luceno Reviewed-by: Marek Vasut > --- > drivers/i2c/rcar_i2c.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/i2c/rcar_i2c.c b/drivers/i2c/rcar_i2c.c > index a88fbcf34f..9223eaecbf 100644 > --- a/drivers/i2c/rcar_i2c.c > +++ b/drivers/i2c/rcar_i2c.c > @@ -221,7 +221,7 @@ static int rcar_i2c_xfer(struct udevice *dev, struct i2c_msg *msg, int nmsgs) > ret = rcar_i2c_write_common(dev, msg); > > if (ret) > - return -EREMOTEIO; > + return ret; > } > > return ret; > -- Best regards, Marek Vasut