Skip to content

Commit

Permalink
i2c: exynos5: remove an unnecessary read of FIFO_STATUS register
Browse files Browse the repository at this point in the history
This patch removes an extra read of FIFO_STATUS register in the interrrupt
service routine. Which is read again before the actual use.

Signed-off-by: Naveen Krishna Chatradhi <ch.naveen@samsung.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
  • Loading branch information
Naveen Krishna Ch authored and Wolfram Sang committed Jul 17, 2014
1 parent 57186fe commit 9f89df3
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion drivers/i2c/busses/i2c-exynos5.c
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,6 @@ static irqreturn_t exynos5_i2c_irq(int irqno, void *dev_id)

int_status = readl(i2c->regs + HSI2C_INT_STATUS);
writel(int_status, i2c->regs + HSI2C_INT_STATUS);
fifo_status = readl(i2c->regs + HSI2C_FIFO_STATUS);

/* handle interrupt related to the transfer status */
if (int_status & HSI2C_INT_I2C) {
Expand Down

0 comments on commit 9f89df3

Please sign in to comment.