diff mbox series

[U-Boot,v2,4/6] i2c: rcar_i2c: Don't mask errors with EREMOTEIO at rcar_i2c_xfer

Message ID 20190305111556.17560-4-ismael.luceno@silicon-gears.com
State Superseded
Delegated to: Marek Vasut
Headers show
Series [U-Boot,v2,1/6] i2c: rcar_i2c: Setup SCL/SDA delay at rcar_i2c_set_speed | expand

Commit Message

Ismael Luceno Cortes March 5, 2019, 11:16 a.m. UTC
Signed-off-by: Ismael Luceno <ismael.luceno@silicon-gears.com>
---

Notes:
    Changes since v1:
    - Rebased on top of patch 1050650 ("i2c: rcar_i2c: Add Gen3 SoC support")

 drivers/i2c/rcar_i2c.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Marek Vasut March 5, 2019, 6:29 p.m. UTC | #1
On 3/5/19 12:16 PM, Ismael Luceno Cortes wrote:

Commit message is missing :-(

> Signed-off-by: Ismael Luceno <ismael.luceno@silicon-gears.com>
> ---
> 
> Notes:
>     Changes since v1:
>     - Rebased on top of patch 1050650 ("i2c: rcar_i2c: Add Gen3 SoC support")
> 
>  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 7131f0c994..d6b0418290 100644
> --- a/drivers/i2c/rcar_i2c.c
> +++ b/drivers/i2c/rcar_i2c.c
> @@ -217,7 +217,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;
>
diff mbox series

Patch

diff --git a/drivers/i2c/rcar_i2c.c b/drivers/i2c/rcar_i2c.c
index 7131f0c994..d6b0418290 100644
--- a/drivers/i2c/rcar_i2c.c
+++ b/drivers/i2c/rcar_i2c.c
@@ -217,7 +217,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;