Re: [PATCH v3 5/7] i2c: img-scb: use line_status instead of i2c->line_status

2015-09-14 Thread James Hogan
On Thu, Sep 10, 2015 at 03:50:05PM +0100, Sifan Naeem wrote: > i2c->line_status accumulates the line status bits that have been seen > with each interrupt. As we're only interested in that bit from the > current interrupt, refer to line_status (the argument to img_i2c_auto) > instead of

[PATCH v2] i2c: davinci: Optimize clock generation on Keystone SoC

2015-09-14 Thread Alexander Sverdlin
According to "KeyStone Architecture Inter-IC Control Bus User Guide", fixed additive part of frequency divisors (referred as "d" in the code and datasheet) always equals to 6, independent of module clock prescaler. module clock frequency master clock frequency =

[PATCH v2] dts: keystone: Use new "ti,keystone-i2c" compatible

2015-09-14 Thread Alexander Sverdlin
Now as "i2c-davinci" driver has special handling for Keystone it's time to switch the device tree to use new "compatible" property. Old one is left for backwards- compatibility. Signed-off-by: Alexander Sverdlin --- Changes in v2: - As suggested by Mark Rutland,