[U-Boot] [PATCH 1/6] i2c: rcar_i2c: Fix u32 cast warnings

Marek Vasut marek.vasut at gmail.com
Mon Mar 4 19:45:51 UTC 2019


On 3/4/19 3:19 PM, Ismael Luceno Cortes wrote:

Hello Ismael,

the patch is missing commit message, please fix globally.

I sent this patch [1] two days ago, I believe it fixes the same issue,
can you rebase the series on top of it ?

[1] http://patchwork.ozlabs.org/patch/1050650/

> Signed-off-by: Ismael Luceno <ismael.luceno at silicon-gears.com>
> ---
>  drivers/i2c/rcar_i2c.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/i2c/rcar_i2c.c b/drivers/i2c/rcar_i2c.c
> index 8d87c73713..bd7c37a207 100644
> --- a/drivers/i2c/rcar_i2c.c
> +++ b/drivers/i2c/rcar_i2c.c
> @@ -34,9 +34,9 @@
>  #define RCAR_I2C_ICMSR_MNR		BIT(6)
>  #define RCAR_I2C_ICMSR_MAL		BIT(5)
>  #define RCAR_I2C_ICMSR_MST		BIT(4)
> -#define RCAR_I2C_ICMSR_MDE		BIT(3)
> +#define RCAR_I2C_ICMSR_MDE		((u32)BIT(3))
>  #define RCAR_I2C_ICMSR_MDT		BIT(2)
> -#define RCAR_I2C_ICMSR_MDR		BIT(1)
> +#define RCAR_I2C_ICMSR_MDR		((u32)BIT(1))
>  #define RCAR_I2C_ICMSR_MAT		BIT(0)
>  #define RCAR_I2C_ICSIER			0x10
>  #define RCAR_I2C_ICMIER			0x14
> 


-- 
Best regards,
Marek Vasut


More information about the U-Boot mailing list