From patchwork Mon Jul 6 19:24:45 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vaibhav Hiremath X-Patchwork-Id: 6727411 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 21231C05AC for ; Mon, 6 Jul 2015 19:30:15 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 3A5EA205F2 for ; Mon, 6 Jul 2015 19:30:14 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 55B56205EB for ; Mon, 6 Jul 2015 19:30:13 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZCC3h-0007Hc-ME; Mon, 06 Jul 2015 19:28:05 +0000 Received: from mail-pa0-f43.google.com ([209.85.220.43]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZCC3e-0007FC-II for linux-arm-kernel@lists.infradead.org; Mon, 06 Jul 2015 19:28:03 +0000 Received: by pabvl15 with SMTP id vl15so99973717pab.1 for ; Mon, 06 Jul 2015 12:27:41 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=8NRG7RWk7bjIR8OJ7lWOSEzfCzjwvHukwzWQUQEJvQQ=; b=YxM0FRuBrtTUDQ7FyH3DsIgsPFYwdp6rMmq8webjANg0HhqMNTIOs6kOhAZrl1uZzG m1oL4jg0WujeQDpdZvaRFz+qrUlpeSYmLyX/ZixIZh0ydSuPOGJLrPgxLrHRHfcUsJEA X0BMECA31bCPvQ56SMW3+HUbNj2MC/qoDfSdWUnuubRrwe653G/2QhL//DFvm29RX3T1 v8+GLrCUfICsJMdUWV1yY7dlBcfjbswa2UK9bYydekgrnIqLChKK3lNA9QQ4keMNqbHH 6IgEZqyvvF5SzzAF14khe39n4GkOnfPKGxkoTH2VKgNqX07mvL+1m7900By8jkmSHemF sxhg== X-Gm-Message-State: ALoCoQmTtYmRoE9DzjBFdIcRiYIReQtkzvhvYrj7WxgvP2EP3y/dQiapNdUXHip+325If9Z2j75E X-Received: by 10.68.135.36 with SMTP id pp4mr868943pbb.134.1436210861881; Mon, 06 Jul 2015 12:27:41 -0700 (PDT) Received: from localhost.localdomain ([202.62.77.106]) by mx.google.com with ESMTPSA id x7sm19293964pas.28.2015.07.06.12.27.37 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 06 Jul 2015 12:27:40 -0700 (PDT) From: Vaibhav Hiremath To: linux-i2c@vger.kernel.org Subject: [PATCH-v3 01/11] i2c: pxa: keep i2c irq ON in suspend Date: Tue, 7 Jul 2015 00:54:45 +0530 Message-Id: <1436210695-19159-2-git-send-email-vaibhav.hiremath@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1436210695-19159-1-git-send-email-vaibhav.hiremath@linaro.org> References: <1436210695-19159-1-git-send-email-vaibhav.hiremath@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150706_122802_634529_9C21002B X-CRM114-Status: GOOD ( 12.48 ) X-Spam-Score: -2.6 (--) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, Leilei Shang , wsa@the-dreams.de, linux-kernel@vger.kernel.org, Vaibhav Hiremath , robh+dt@kernel.org, Raul Xiong , Xiaofan Tian , robert.jarzmik@free.fr, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, 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 From: Leilei Shang During suspend there may still be some i2c access happening, as the interrupt is shared between multiple drivers. And if we don't keep i2c irq ON, there may be i2c access timeout if i2c is in irq mode of operation. Signed-off-by: Raul Xiong Signed-off-by: Xiaofan Tian [vaibhav.hiremath@linaro.org: updated Changelog] Signed-off-by: Vaibhav Hiremath Cc: Wolfram Sang --- drivers/i2c/busses/i2c-pxa.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/i2c/busses/i2c-pxa.c b/drivers/i2c/busses/i2c-pxa.c index d9c0d6a..f4ac8c5 100644 --- a/drivers/i2c/busses/i2c-pxa.c +++ b/drivers/i2c/busses/i2c-pxa.c @@ -1232,8 +1232,9 @@ static int i2c_pxa_probe(struct platform_device *dev) i2c->adap.algo = &i2c_pxa_pio_algorithm; } else { i2c->adap.algo = &i2c_pxa_algorithm; - ret = request_irq(irq, i2c_pxa_handler, IRQF_SHARED, - dev_name(&dev->dev), i2c); + ret = request_irq(irq, i2c_pxa_handler, + IRQF_SHARED | IRQF_NO_SUSPEND, + dev_name(&dev->dev), i2c); if (ret) goto ereqirq; }