[PATCHv2 1/7] i2c: omap: Fix the revision register read
Shubhrajyoti Datta
omaplinuxkernel at gmail.com
Mon Nov 5 04:40:49 EST 2012
On Mon, Nov 5, 2012 at 2:34 PM, Felipe Balbi <balbi at ti.com> wrote:
> Hi,
>
> On Mon, Nov 05, 2012 at 02:04:56PM +0530, Shubhrajyoti wrote:
>> >> @@ -1155,7 +1187,7 @@ omap_i2c_probe(struct platform_device *pdev)
>> >>
>> >> dev->fifo_size = (dev->fifo_size / 2);
>> >>
>> >> - if (dev->rev < OMAP_I2C_REV_ON_3630_4430)
>> >> + if (dev->rev < OMAP_I2C_REV_ON_3630)
>> >> dev->b_hw = 1; /* Enable hardware fixes */
>> > looks like this was applicable to 4430 too, what happened ?
>> No actually this can be deleted completely once the
>> start -> transaction -> stop sequence recommendation is followed.
>
> yes, but we're not there just yet and this patch is changing the
> behavior
No , earlier we were truncating the register for omap4 so
OMAP_I2C_REV_ON_3630_4430 was there if we read both hi and lo for
omap4 then we donot find 3630 and 4430 value to be similar.
In this case the behavior is same as earlier also it enabled this for
lower than 3630 and
the same holds good even now.
So in essence,
Earlier OMAP_I2C_REV_ON_3630_4430 is named to OMAP_I2C_REV_ON_3630
and omap4 rev will have a 32bit value which is greater.
> of the driver in ways which don't belong to $SUBJECT.
>
> --
> balbi
More information about the linux-arm-kernel
mailing list