Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 319143
b: refs/heads/master
c: c8db38f
h: refs/heads/master
i:
  319141: 8b9b3a0
  319139: 85499a5
  319135: 974f21e
v: v3
  • Loading branch information
Shubhrajyoti D authored and Wolfram Sang committed Jul 8, 2012
1 parent a551050 commit d33fad7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 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: e7e62df09d9be4288c1b33aff6eef078f61c97aa
refs/heads/master: c8db38f0e15c1fd5fec765081eb41180c3acaf60
12 changes: 6 additions & 6 deletions trunk/drivers/i2c/busses/i2c-omap.c
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ enum {

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

struct omap_i2c_dev {
struct device *dev;
Expand Down Expand Up @@ -718,11 +718,11 @@ omap_i2c_omap1_isr(int this_irq, void *dev_id)
#endif

/*
* OMAP3430 Errata 1.153: When an XRDY/XDR is hit, wait for XUDF before writing
* OMAP3430 Errata i462: When an XRDY/XDR is hit, wait for XUDF before writing
* data to DATA_REG. Otherwise some data bytes can be lost while transferring
* them from the memory to the I2C interface.
*/
static int errata_omap3_1p153(struct omap_i2c_dev *dev, u16 *stat, int *err)
static int errata_omap3_i462(struct omap_i2c_dev *dev, u16 *stat, int *err)
{
unsigned long timeout = 10000;

Expand Down Expand Up @@ -881,8 +881,8 @@ omap_i2c_isr(int this_irq, void *dev_id)
break;
}

if ((dev->errata & I2C_OMAP3_1P153) &&
errata_omap3_1p153(dev, &stat, &err))
if ((dev->errata & I2C_OMAP_ERRATA_I462) &&
errata_omap3_i462(dev, &stat, &err))
goto complete;

omap_i2c_write_reg(dev, OMAP_I2C_DATA_REG, w);
Expand Down Expand Up @@ -1020,7 +1020,7 @@ omap_i2c_probe(struct platform_device *pdev)
dev->errata |= I2C_OMAP_ERRATA_I207;

if (dev->rev <= OMAP_I2C_REV_ON_3430)
dev->errata |= I2C_OMAP3_1P153;
dev->errata |= I2C_OMAP_ERRATA_I462;

if (!(dev->flags & OMAP_I2C_FLAG_NO_FIFO)) {
u16 s;
Expand Down

0 comments on commit d33fad7

Please sign in to comment.