Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753275AbaFZFSH (ORCPT ); Thu, 26 Jun 2014 01:18:07 -0400 Received: from mailout3.samsung.com ([203.254.224.33]:50418 "EHLO mailout3.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751137AbaFZFSE (ORCPT ); Thu, 26 Jun 2014 01:18:04 -0400 X-AuditID: cbfee690-b7fb56d000003439-18-53abad09b72e From: Naveen Krishna Chatradhi To: linux-samsung-soc@vger.kernel.org, linux-i2c@vger.kernel.org Cc: naveenkrishna.ch@gmail.com, linux-arm-kernel@lists.infradead.org, sjg@chromium.org, linux-kernel@vger.kernel.org, wsa@the-dreams.de, cpgs@samsung.com, broonie@kernel.org Subject: [PATCH 1/2 v2] i2c: exynos5: remove an unnecessary read of FIFO_STATUS register Date: Thu, 26 Jun 2014 10:44:57 +0530 Message-id: <1403759698-15624-1-git-send-email-ch.naveen@samsung.com> X-Mailer: git-send-email 1.7.9.5 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrALMWRmVeSWpSXmKPExsWyRsSkWpdz7epgg7adMhZTHz5hs3h5SNNi 0+NrrBYdf78wWlzeNYfNYsb5fUwWi7b9Z7b4tmUbo8XKE7OYHTg9ZjdcZPHYOesuu8emVZ1s HpuX1Hv0bVnF6HHy1BMWj8+b5ALYo7hsUlJzMstSi/TtErgy7k14y1jwkK1i27SDTA2MV1i7 GDk5JARMJJ5OPwJli0lcuLeerYuRi0NIYCmjxPw794ESHGBFW2/VQsSnM0rsfriIEcLpZ5Jo vn2RGaSbTcBM4uCi1ewgtoiAg8S8td/ZQYqYBTYySuxZfgFshbBAlMSXj0tZQGwWAVWJgw+f gDXwCrhKbLrfxgixTUFiziQbkF4JgUXsEnvW3IaqF5D4NvkQC0SNrMSmA8wQV0tKHFxxg2UC o+ACRoZVjKKpBckFxUnpRSZ6xYm5xaV56XrJ+bmbGIGhffrfswk7GO8dsD7EmAw0biKzlGhy PjA28k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J5ot+Vp74hVKner6fSsXsZy1Kuvol5O/sqsmtn/mSrVLp+wwlluKMREMt5qLiRADwrSf+ sgIAAA== DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- Changes since v1: None 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 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/