Re: [PATCH v3 2/5] i2c: designware: Master mode as separated driver

From: Andy Shevchenko
Date: Fri Nov 18 2016 - 07:30:45 EST


On Fri, 2016-11-18 at 11:19 +0000, Luis Oliveira wrote:
> Â- The functions related to I2C master mode of operation were
> transformed in a single driver.
> Â- The name of the i2c-designware-core.c had to be changed to i2c-
> designware-src.c to for the cmake to be able to correctly compile both
> modules into one
> Â- Common definitions were moved to i2c-designware-core.h

> Âdrivers/i2c/busses/i2c-designware-src.cÂÂÂÂÂÂÂÂÂÂÂÂ| 252
> +++++++++++++++

Perhaps i2c-designware-common.c ?

> @@ -21,8 +21,6 @@
> Â * ------------------------------------------------------------------
> ----------
> Â *
> Â */
> -
> -

No need to do that in this patch.

> Â#define DW_IC_CON_MASTER 0x1
> Â#define DW_IC_CON_SPEED_STD 0x2
> Â#define DW_IC_CON_SPEED_FAST 0x4
> @@ -32,6 +30,123 @@
> Â#define DW_IC_CON_RESTART_EN 0x20
> Â#define DW_IC_CON_SLAVE_DISABLE 0x40
> Â
> +/*
> + * Registers offset
> + */
> +#define DW_IC_CON 0x0

Okay, can we split this to move definitions and the rest?

--
Andy Shevchenko <andriy.shevchenko@xxxxxxxxxxxxxxx>
Intel Finland Oy