linux-omap.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] i2c: fix missing handling of errata I2C_OMAP3_1P153
@ 2012-02-06 14:33 tasskjapp
  2012-02-09 11:37 ` Tasslehoff Kjappfot
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: tasskjapp @ 2012-02-06 14:33 UTC (permalink / raw)
  To: linux-omap; +Cc: Tasslehoff Kjappfot

From: Tasslehoff Kjappfot <tasskjapp@gmail.com>

i2c_prope set the dev->errata flag, but omap_i2c_init cleared the flag again. Move the errata handling to i2c_init.

Signed-off-by: Tasslehoff Kjappfot <tasskjapp@gmail.com>
---
 drivers/i2c/busses/i2c-omap.c |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/drivers/i2c/busses/i2c-omap.c b/drivers/i2c/busses/i2c-omap.c
index 801df60..ecaa60d 100644
--- a/drivers/i2c/busses/i2c-omap.c
+++ b/drivers/i2c/busses/i2c-omap.c
@@ -473,6 +473,10 @@ static int omap_i2c_init(struct omap_i2c_dev *dev)
 	if (dev->flags & OMAP_I2C_FLAG_APPLY_ERRATA_I207)
 		dev->errata |= I2C_OMAP_ERRATA_I207;
 
+	if (dev->rev <= OMAP_I2C_REV_ON_3430)
+		dev->errata |= I2C_OMAP3_1P153;
+
+
 	/* Enable interrupts */
 	dev->iestate = (OMAP_I2C_IE_XRDY | OMAP_I2C_IE_RRDY |
 			OMAP_I2C_IE_ARDY | OMAP_I2C_IE_NACK |
@@ -1058,9 +1062,6 @@ omap_i2c_probe(struct platform_device *pdev)
 
 	dev->rev = omap_i2c_read_reg(dev, OMAP_I2C_REV_REG) & 0xff;
 
-	if (dev->rev <= OMAP_I2C_REV_ON_3430)
-		dev->errata |= I2C_OMAP3_1P153;
-
 	if (!(dev->flags & OMAP_I2C_FLAG_NO_FIFO)) {
 		u16 s;
 
-- 
1.7.5.4


^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2012-02-17 12:40 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-02-06 14:33 [PATCH] i2c: fix missing handling of errata I2C_OMAP3_1P153 tasskjapp
2012-02-09 11:37 ` Tasslehoff Kjappfot
2012-02-11 17:18 ` Shubhrajyoti
2012-02-14  8:55   ` Tasslehoff Kjappfot
     [not found] ` <1328538811-13097-1-git-send-email-tasskjapp-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2012-02-14  9:59   ` Tasslehoff Kjappfot
2012-02-14 10:15     ` [PATCH v2] " Tasslehoff Kjappfot
2012-02-16 11:36       ` Shubhrajyoti Datta
2012-02-17 12:19         ` [PATCH v3] " Tasslehoff Kjappfot
2012-02-17 12:40           ` Shubhrajyoti Datta

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).