Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 250847
b: refs/heads/master
c: b5e890f
h: refs/heads/master
i:
  250845: 22b5c59
  250843: c5b356f
  250839: 9ae6395
  250831: 3f7c47c
  250815: f014aeb
v: v3
  • Loading branch information
Virupax Sadashivpetimath authored and Ben Dooks committed May 24, 2011
1 parent 2b0ea23 commit 06c80fa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 19 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: 553553413a6abdda220a697ef439ba2f4b1d4a7c
refs/heads/master: b5e890f7e70707d1e10e8d4844806d2223e8b36d
20 changes: 2 additions & 18 deletions trunk/drivers/i2c/busses/i2c-nomadik.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
#include <linux/init.h>
#include <linux/module.h>
#include <linux/platform_device.h>
#include <linux/delay.h>
#include <linux/slab.h>
#include <linux/interrupt.h>
#include <linux/i2c.h>
Expand Down Expand Up @@ -105,9 +104,6 @@
/* maximum threshold value */
#define MAX_I2C_FIFO_THRESHOLD 15

/* per-transfer delay, required for the hardware to stabilize */
#define I2C_DELAY 150

enum i2c_status {
I2C_NOP,
I2C_ON_GOING,
Expand Down Expand Up @@ -269,12 +265,6 @@ static int init_hw(struct nmk_i2c_dev *dev)
dev->cli.operation = I2C_NO_OPERATION;

exit:
/*
* TODO: What is this delay for?
* Must be pretty pointless since the hw block
* is frozen. Or?
*/
udelay(I2C_DELAY);
return stat;
}

Expand Down Expand Up @@ -652,7 +642,6 @@ static int nmk_i2c_xfer(struct i2c_adapter *i2c_adap,

break;
}
udelay(I2C_DELAY);
}
if (status == 0)
break;
Expand Down Expand Up @@ -778,13 +767,8 @@ static irqreturn_t i2c_irq_handler(int irq, void *arg)
}
}

i2c_set_bit(dev->virtbase + I2C_ICR, I2C_IT_MTD);
i2c_set_bit(dev->virtbase + I2C_ICR, I2C_IT_MTDWS);

disable_interrupts(dev,
(I2C_IT_TXFNE | I2C_IT_TXFE | I2C_IT_TXFF
| I2C_IT_TXFOVR | I2C_IT_RXFNF
| I2C_IT_RXFF | I2C_IT_RXFE));
disable_all_interrupts(dev);
clear_all_interrupts(dev);

if (dev->cli.count) {
dev->result = -EIO;
Expand Down

0 comments on commit 06c80fa

Please sign in to comment.