Re: [RESEND PATCH v1 2/6] i2c: i2c-stm32f7: Add slave support

2018-03-21 Thread Pierre Yves MORDRET
Hi Wolfram STM32 I2C F7 can be both Master and Slave mode. Whenever a master command (I2C or SMBus) a START condition is generated and the master flag (master_mode) is set and managed accordingly : sw and ITs/ Now if a slave is registered it's managed accordingly as long as there is no master comm

Re: [RESEND PATCH v1 2/6] i2c: i2c-stm32f7: Add slave support

2018-03-20 Thread Pierre Yves MORDRET
On 03/20/2018 10:52 AM, Wolfram Sang wrote: > >> I do believe the hw can support it, even it looks odd to me having the same >> I2C >> in slave and master mode at the same time. > > I2C is multi-master, so it is perfectly valid for a device to be master > and slave. I do have seen designs maki

Re: [RESEND PATCH v1 2/6] i2c: i2c-stm32f7: Add slave support

2018-03-20 Thread Wolfram Sang
> I do believe the hw can support it, even it looks odd to me having the same > I2C > in slave and master mode at the same time. I2C is multi-master, so it is perfectly valid for a device to be master and slave. I do have seen designs making use of that more than once. > Nevertheless the driver

Re: [RESEND PATCH v1 2/6] i2c: i2c-stm32f7: Add slave support

2018-03-19 Thread Pierre Yves MORDRET
I do believe the hw can support it, even it looks odd to me having the same I2C in slave and master mode at the same time. Nevertheless the driver is devised to support either master or slave more but not at the same time. Regards On 03/17/2018 09:51 PM, Wolfram Sang wrote: > >> + * @master_mode:

Re: [RESEND PATCH v1 2/6] i2c: i2c-stm32f7: Add slave support

2018-03-17 Thread Wolfram Sang
> + * @master_mode: boolean to know in which mode the I2C is running (master or > + * slave) It can't do both at the same time? signature.asc Description: PGP signature

[RESEND PATCH v1 2/6] i2c: i2c-stm32f7: Add slave support

2018-03-12 Thread Pierre-Yves MORDRET
This patch adds slave support for I2C controller embedded in STM32F7 SoC Signed-off-by: M'boumba Cedric Madianga Signed-off-by: Pierre-Yves MORDRET --- Version history: v1: * Initial --- --- drivers/i2c/busses/Kconfig | 1 + drivers/i2c/busses/i2c-stm32f7.c | 434

[RESEND PATCH v1 2/6] i2c: i2c-stm32f7: Add slave support

2018-02-27 Thread Pierre-Yves MORDRET
This patch adds slave support for I2C controller embedded in STM32F7 SoC Signed-off-by: M'boumba Cedric Madianga Signed-off-by: Pierre-Yves MORDRET --- Version history: v1: * Initial --- --- drivers/i2c/busses/Kconfig | 1 + drivers/i2c/busses/i2c-stm32f7.c | 434