From patchwork Wed Jun 25 10:38:16 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Naveen Krishna Chatradhi X-Patchwork-Id: 4419291 Return-Path: X-Original-To: patchwork-linux-samsung-soc@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id B3688BEEAA for ; Wed, 25 Jun 2014 10:42:29 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 03BC620320 for ; Wed, 25 Jun 2014 10:42:29 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 34521202D1 for ; Wed, 25 Jun 2014 10:42:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754214AbaFYKlX (ORCPT ); Wed, 25 Jun 2014 06:41:23 -0400 Received: from mailout2.samsung.com ([203.254.224.25]:35861 "EHLO mailout2.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752683AbaFYKlW (ORCPT ); Wed, 25 Jun 2014 06:41:22 -0400 Received: from epcpsbgr5.samsung.com (u145.gpu120.samsung.co.kr [203.254.230.145]) by mailout2.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0N7Q0017E0CWGA80@mailout2.samsung.com>; Wed, 25 Jun 2014 19:41:20 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [172.20.52.124]) by epcpsbgr5.samsung.com (EPCPMTA) with SMTP id D8.B5.16580.057AAA35; Wed, 25 Jun 2014 19:41:20 +0900 (KST) X-AuditID: cbfee691-b7f2f6d0000040c4-92-53aaa7500084 Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id 53.5F.04943.057AAA35; Wed, 25 Jun 2014 19:41:20 +0900 (KST) Received: from chnaveen-ubuntu.sisodomain.com ([107.108.83.161]) by mmp1.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0N7Q000BH0CP6Q60@mmp1.samsung.com>; Wed, 25 Jun 2014 19:41:20 +0900 (KST) 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] i2c: exynos5: remove an unnecessary read of FIFO_STATUS register Date: Wed, 25 Jun 2014 16:08:16 +0530 Message-id: <1403692697-7381-1-git-send-email-ch.naveen@samsung.com> X-Mailer: git-send-email 1.7.9.5 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrILMWRmVeSWpSXmKPExsWyRsSkRjdg+apgg6erlSymPnzCZvHykKbF psfXWC06/n5htLi8aw6bxYzz+5gsFm37z2zxbcs2RouVJ2YxO3B6zG64yOKxc9Zddo9NqzrZ PDYvqffo27KK0ePkqScsHp83yQWwR3HZpKTmZJalFunbJXBl9G9fzFJwjK3iwtf/jA2MB1m7 GDk5JARMJDpfz2WHsMUkLtxbz9bFyMUhJLCUUeLX8/PsMEVrf2yBSixilJjYfJMFwulnkjjY epAFpIpNwEzi4KLVYB0iAg4S89Z+ZwcpYhbYyCixZ/kFsH3CAuESHS3XmUFsFgFViRc9a8Hi vAIuEr8OrgIaxAG0TkFiziQbkF4JgXnsEtMn72SDqBeQ+Db5EFSNrMSmA8wQ10lKHFxxg2UC o+ACRoZVjKKpBckFxUnpRaZ6xYm5xaV56XrJ+bmbGIHBffrfs4k7GO8fsD7EmAw0biKzlGhy PjA68kriDY3NjCxMTUyNjcwtzUgTVhLnTX+UFCQkkJ5YkpqdmlqQWhR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7eV99U2Ipzkg01GIuKk4EALZCWNyz AgAA DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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 --- 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) {