linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] i2c: exynos5: remove an unnecessary read of FIFO_STATUS register
@ 2014-06-25 10:38 Naveen Krishna Chatradhi
  2014-06-25 10:38 ` [PATCH 2/2] i2c: exynos5: fix minor styling nits Naveen Krishna Chatradhi
  0 siblings, 1 reply; 4+ messages in thread
From: Naveen Krishna Chatradhi @ 2014-06-25 10:38 UTC (permalink / raw)
  To: linux-samsung-soc, linux-i2c
  Cc: naveenkrishna.ch, linux-arm-kernel, sjg, linux-kernel, wsa, cpgs,
	broonie

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>
---
 drivers/i2c/busses/i2c-exynos5.c |    1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/i2c/busses/i2c-exynos5.c b/drivers/i2c/busses/i2c-exynos5.c
index 63d2292..0d1a7bc 100644
--- a/drivers/i2c/busses/i2c-exynos5.c
+++ b/drivers/i2c/busses/i2c-exynos5.c
@@ -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) {
-- 
1.7.9.5


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-06-26  4:59 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-06-25 10:38 [PATCH 1/2] i2c: exynos5: remove an unnecessary read of FIFO_STATUS register Naveen Krishna Chatradhi
2014-06-25 10:38 ` [PATCH 2/2] i2c: exynos5: fix minor styling nits Naveen Krishna Chatradhi
2014-06-25 10:49   ` Sachin Kamat
2014-06-26  4:58     ` Naveen Krishna Ch

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).