Re: [PATCH v3 2/3] i2c: designware: detect when dynamic tar update is possible

2016-08-17 Thread De Marchi, Lucas
On Wed, 2016-08-17 at 11:05 +0300, Jarkko Nikula wrote: > On 08/16/2016 05:07 PM, De Marchi, Lucas wrote: > > > > On Tue, 2016-08-16 at 17:00 +0300, Jarkko Nikula wrote: > > > > > > > > > > > +  */ > > > > + reg = dw_readl(dev, DW_IC_CON); > > > > + dw_writel(dev, reg ^

Re: [PATCH v3 2/3] i2c: designware: detect when dynamic tar update is possible

2016-08-17 Thread De Marchi, Lucas
On Wed, 2016-08-17 at 11:05 +0300, Jarkko Nikula wrote: > On 08/16/2016 05:07 PM, De Marchi, Lucas wrote: > > > > On Tue, 2016-08-16 at 17:00 +0300, Jarkko Nikula wrote: > > > > > > > > > > > +  */ > > > > + reg = dw_readl(dev, DW_IC_CON); > > > > + dw_writel(dev, reg ^

Re: [PATCH v3 2/3] i2c: designware: detect when dynamic tar update is possible

2016-08-17 Thread Jarkko Nikula
On 08/16/2016 05:07 PM, De Marchi, Lucas wrote: On Tue, 2016-08-16 at 17:00 +0300, Jarkko Nikula wrote: +*/ + reg = dw_readl(dev, DW_IC_CON); + dw_writel(dev, reg ^ DW_IC_CON_10BITADDR_MASTER, DW_IC_CON); + + if ((dw_readl(dev, DW_IC_CON) & DW_IC_CON_10BITADDR_MASTER)

Re: [PATCH v3 2/3] i2c: designware: detect when dynamic tar update is possible

2016-08-17 Thread Jarkko Nikula
On 08/16/2016 05:07 PM, De Marchi, Lucas wrote: On Tue, 2016-08-16 at 17:00 +0300, Jarkko Nikula wrote: +*/ + reg = dw_readl(dev, DW_IC_CON); + dw_writel(dev, reg ^ DW_IC_CON_10BITADDR_MASTER, DW_IC_CON); + + if ((dw_readl(dev, DW_IC_CON) & DW_IC_CON_10BITADDR_MASTER)

Re: [PATCH v3 2/3] i2c: designware: detect when dynamic tar update is possible

2016-08-16 Thread De Marchi, Lucas
On Tue, 2016-08-16 at 17:00 +0300, Jarkko Nikula wrote: > Hi, + Wolfram > > On 07/29/2016 01:03 AM, Lucas De Marchi wrote: > > > > This adapter can be synthesized with dynamic tar update enabled or > > disabled. > > When enabled it is not necessary to disable the adapter to change > > the slave

Re: [PATCH v3 2/3] i2c: designware: detect when dynamic tar update is possible

2016-08-16 Thread De Marchi, Lucas
On Tue, 2016-08-16 at 17:00 +0300, Jarkko Nikula wrote: > Hi, + Wolfram > > On 07/29/2016 01:03 AM, Lucas De Marchi wrote: > > > > This adapter can be synthesized with dynamic tar update enabled or > > disabled. > > When enabled it is not necessary to disable the adapter to change > > the slave

Re: [PATCH v3 2/3] i2c: designware: detect when dynamic tar update is possible

2016-08-16 Thread Jarkko Nikula
Hi, + Wolfram On 07/29/2016 01:03 AM, Lucas De Marchi wrote: This adapter can be synthesized with dynamic tar update enabled or disabled. When enabled it is not necessary to disable the adapter to change the slave address in some situations, which saves some time per transaction. There is no

Re: [PATCH v3 2/3] i2c: designware: detect when dynamic tar update is possible

2016-08-16 Thread Jarkko Nikula
Hi, + Wolfram On 07/29/2016 01:03 AM, Lucas De Marchi wrote: This adapter can be synthesized with dynamic tar update enabled or disabled. When enabled it is not necessary to disable the adapter to change the slave address in some situations, which saves some time per transaction. There is no

[PATCH v3 2/3] i2c: designware: detect when dynamic tar update is possible

2016-07-28 Thread Lucas De Marchi
This adapter can be synthesized with dynamic tar update enabled or disabled. When enabled it is not necessary to disable the adapter to change the slave address in some situations, which saves some time per transaction. There is no direct register to know if this feature is enabled but we can do

[PATCH v3 2/3] i2c: designware: detect when dynamic tar update is possible

2016-07-28 Thread Lucas De Marchi
This adapter can be synthesized with dynamic tar update enabled or disabled. When enabled it is not necessary to disable the adapter to change the slave address in some situations, which saves some time per transaction. There is no direct register to know if this feature is enabled but we can do