From patchwork Thu May 28 13:03:33 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vaibhav Hiremath X-Patchwork-Id: 6498501 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 51EE59F38C for ; Thu, 28 May 2015 13:10:08 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 91569205CB for ; Thu, 28 May 2015 13:10:06 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id A2263205CA for ; Thu, 28 May 2015 13:10:04 +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 1YxxWW-000568-4o; Thu, 28 May 2015 13:07:00 +0000 Received: from mail-pa0-f45.google.com ([209.85.220.45]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1YxxWN-0004lV-Jb for linux-arm-kernel@lists.infradead.org; Thu, 28 May 2015 13:06:52 +0000 Received: by paza2 with SMTP id a2so23305926paz.3 for ; Thu, 28 May 2015 06:06:29 -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=hkjt8jETRmEk/ImkxWirlA9Fn0yvHH4ADgQ9YpuhN88=; b=mEhNfjwq3bDstw1DxC75ErTskM2kESnQJp8EQ0oxXvMwlMQDtX+upzrTcTpnFUM7Xr 3HZ+ArmUR+PPhHmArU1ZlDLswCzvTo5bVxPGgmFPtat1LCZkr5VX9W+dLUKH4Z64hoye DXJla+ZwH01mPqjdnJ8BM6BC98nBewkijTU2VOKxBp4M0Cu4IbGbQHI34D38LCKGXqb9 FfhcdwOl4r6whIKiR573paWxy7gGitpQV+sODno60WJ5pc2BFgXkHuigKdQXRyvFG8Cn FaVv/1imtnj17twd1nDvYPZ245lQBHd3qXI+NdAE/EMAMn3/g3LIxmdhp6pUWDpIYzKA 2PzA== X-Gm-Message-State: ALoCoQmWoI59xXbRzmU9M+rtkRkOstuos1+knCueTRoqaEVnedMXSVt/Z0NzevhcWsskwhn5qJ9J X-Received: by 10.68.205.67 with SMTP id le3mr5426561pbc.94.1432818389831; Thu, 28 May 2015 06:06:29 -0700 (PDT) Received: from localhost.localdomain ([202.62.77.106]) by mx.google.com with ESMTPSA id dc5sm2392557pbc.53.2015.05.28.06.06.26 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 28 May 2015 06:06:28 -0700 (PDT) From: Vaibhav Hiremath To: linux-i2c@vger.kernel.org Subject: [PATCH 01/12] i2c: pxa: keep i2c irq ON in suspend Date: Thu, 28 May 2015 18:33:33 +0530 Message-Id: <1432818224-17070-2-git-send-email-vaibhav.hiremath@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1432818224-17070-1-git-send-email-vaibhav.hiremath@linaro.org> References: <1432818224-17070-1-git-send-email-vaibhav.hiremath@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150528_060651_748083_ABE1F99B X-CRM114-Status: GOOD ( 10.12 ) X-Spam-Score: -0.7 (/) Cc: Leilei Shang , Wolfram Sang , Vaibhav Hiremath , Raul Xiong , Xiaofan Tian , linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , 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.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, 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 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 Signed-off-by: Vaibhav Hiremath --- 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; }