i2c-stu300: I2C STU300 stability updates
commitc37faafa7d46622b749437f7d294201a63af4beb
authorLinus Walleij <linus.walleij@stericsson.com>
Thu, 13 Aug 2009 20:14:23 +0000 (13 22:14 +0200)
committerBen Dooks <ben-linux@fluff.org>
Thu, 20 Aug 2009 21:27:58 +0000 (20 22:27 +0100)
tree91a1db4a30d23cb1ea3e9afc22b700b5778d5618
parent61149787d65b4a2f9c638d363dc65e13cb063e29
i2c-stu300: I2C STU300 stability updates

- blk clk is enabled when an irq arrives. The clk should be enabled,
  but just to make sure.
- All error bits are handled no matter state machine state
- All irq's will run complete() except for irq's that wasn't an event.
- No more looking into status registers just in case an interrupt
  has happend and the irq handle wasn't executed.
- irq_disable/enable are now separete functions.
- clk settings calculation changed to round upwards instead of
  downwards.
- Number of address send attempts before giving up is increased to 12
  from 10 since it most times take 8 tries before getting through.

Signed-off-by: Linus Walleij <linus.walleij@stericsson.com>
Signed-off-by: Ben Dooks <ben-linux@fluff.org>
drivers/i2c/busses/i2c-stu300.c