]> git.baikalelectronics.ru Git - kernel.git/commit
i2c-designware: Don't use the IC_CLR_INTR register to clear interrupts
authorShinya Kuribayashi <shinya.kuribayashi@necel.com>
Fri, 6 Nov 2009 12:44:37 +0000 (21:44 +0900)
committerBen Dooks <ben-linux@fluff.org>
Wed, 9 Dec 2009 00:19:09 +0000 (00:19 +0000)
commitc683ed1d325c3524a60a8df900352f28c13af695
tree1d6c6e6294c91cffb32ec05ff3295e2472338938
parenta89f51b9adb18aab05e96c75c1aafed9180e674f
i2c-designware: Don't use the IC_CLR_INTR register to clear interrupts

We're strongly discouraged from using the IC_CLR_INTR register because
it clears all software-clearable interrupts asserted at the moment.

  stat = readl(IC_INTR_STAT);
    :
    :  <=== Interrupts asserted during this period will be lost
    :
  readl(IC_CLR_INTR);

Instead, use the separately-prepared IC_CLR_* registers.

At the same time, this patch adds all remaining interrupt definitions
available in the DesignWare I2C hardware.

Signed-off-by: Shinya Kuribayashi <shinya.kuribayashi@necel.com>
Signed-off-by: Ben Dooks <ben-linux@fluff.org>
drivers/i2c/busses/i2c-designware.c