Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 193178
b: refs/heads/master
c: 8a9d97d
h: refs/heads/master
v: v3
  • Loading branch information
manjugk manjugk authored and Ben Dooks committed May 19, 2010
1 parent 011fc3a commit 033ccea
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: f3083d921d8964b66502a0456f62a9d29cd029ef
refs/heads/master: 8a9d97d3a126fd33894e137f84ab47ec406df24f
6 changes: 5 additions & 1 deletion trunk/drivers/i2c/busses/i2c-omap.c
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@ enum {

/* Errata definitions */
#define I2C_OMAP_ERRATA_I207 (1 << 0)
#define I2C_OMAP3_1P153 (1 << 1)

struct omap_i2c_dev {
struct device *dev;
Expand Down Expand Up @@ -954,7 +955,7 @@ omap_i2c_isr(int this_irq, void *dev_id)
break;
}

if ((dev->rev <= OMAP_I2C_REV_ON_3430) &&
if ((dev->errata & I2C_OMAP3_1P153) &&
errata_omap3_1p153(dev, &stat, &err))
goto complete;

Expand Down Expand Up @@ -1057,6 +1058,9 @@ 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 (!(cpu_class_is_omap1() || cpu_is_omap2420())) {
u16 s;

Expand Down

0 comments on commit 033ccea

Please sign in to comment.