Re: [PATCH v2 5/6] i2c: i2c-stm32f7: Add DMA support

2018-04-04 Thread Pierre Yves MORDRET
On 04/03/2018 05:39 PM, Wolfram Sang wrote: > >> +#define STM32F7_I2C_DMA_LEN_MIN 0x1 > ... > >> +if (i2c_dev->dma && f7_msg->count >= STM32F7_I2C_DMA_LEN_MIN) { > > Are you using DMA for every message with a length >= 1? The setup of > that might be more expensive

Re: [PATCH v2 5/6] i2c: i2c-stm32f7: Add DMA support

2018-04-04 Thread Pierre Yves MORDRET
On 04/03/2018 05:39 PM, Wolfram Sang wrote: > >> +#define STM32F7_I2C_DMA_LEN_MIN 0x1 > ... > >> +if (i2c_dev->dma && f7_msg->count >= STM32F7_I2C_DMA_LEN_MIN) { > > Are you using DMA for every message with a length >= 1? The setup of > that might be more expensive

Re: [PATCH v2 5/6] i2c: i2c-stm32f7: Add DMA support

2018-04-03 Thread Wolfram Sang
> +#define STM32F7_I2C_DMA_LEN_MIN 0x1 ... > + if (i2c_dev->dma && f7_msg->count >= STM32F7_I2C_DMA_LEN_MIN) { Are you using DMA for every message with a length >= 1? The setup of that might be more expensive than the DMA gain, if so. signature.asc Description: PGP

Re: [PATCH v2 5/6] i2c: i2c-stm32f7: Add DMA support

2018-04-03 Thread Wolfram Sang
> +#define STM32F7_I2C_DMA_LEN_MIN 0x1 ... > + if (i2c_dev->dma && f7_msg->count >= STM32F7_I2C_DMA_LEN_MIN) { Are you using DMA for every message with a length >= 1? The setup of that might be more expensive than the DMA gain, if so. signature.asc Description: PGP

[PATCH v2 5/6] i2c: i2c-stm32f7: Add DMA support

2018-03-21 Thread Pierre-Yves MORDRET
This patch adds DMA support for i2c-stm32f7 driver Signed-off-by: M'boumba Cedric Madianga Signed-off-by: Pierre-Yves MORDRET --- Version history: v1: * Initial v2: * fix kbuild test robot issue (format) --- fixup!

[PATCH v2 5/6] i2c: i2c-stm32f7: Add DMA support

2018-03-21 Thread Pierre-Yves MORDRET
This patch adds DMA support for i2c-stm32f7 driver Signed-off-by: M'boumba Cedric Madianga Signed-off-by: Pierre-Yves MORDRET --- Version history: v1: * Initial v2: * fix kbuild test robot issue (format) --- fixup! i2c: i2c-stm32f7: Add DMA support ---