From patchwork Tue Jul 14 07:36:40 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vaibhav Hiremath X-Patchwork-Id: 51085 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f200.google.com (mail-lb0-f200.google.com [209.85.217.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 1991E202B9 for ; Tue, 14 Jul 2015 07:39:30 +0000 (UTC) Received: by lbbvz8 with SMTP id vz8sf518351lbb.2 for ; Tue, 14 Jul 2015 00:39: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:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=GOxPtD54g5FtRtNNDpdRx8szXcHSok8JKI0k9y0Sous=; b=akCnYxUeIYLVOzqlXZgg3pPw5Wj9oaGGygZTqk1uzvM0Rrcltisg3/BnSu0yIPpeTO 7AjS61JVb671JCV4WSwS4E8cfdRhWMjB+QulzeDojPfO6MFWlXfaJWZ+bB3fqYqptQYB X4Qpc4/e8WAsrofkmmg4+0Hp4ozrr7ye+pIFxB/VS6l4yAqPc6IFq64PfwYk8n5dZ90c 1Bi65svUElbGdXS/QJ8+zMqTsAm85HOgwHvdvhx5KFQIDb0KrCFRL4SPbJjN/A47h7A9 2vhe3cXPZa+uyi9jw58B1tKNbE2+wWqzVcx8RNw8boUzZRXqyZMjv8nfUYA2XzKvRjId jKkg== X-Gm-Message-State: ALoCoQlrQNCchzat3sdN/iHOfQUFlZUJFMhV06bRdUcbIg6hWqwwk5NHWG9IrhX2ZM9vv5Jgk6Zl X-Received: by 10.112.85.69 with SMTP id f5mr20800775lbz.23.1436859569003; Tue, 14 Jul 2015 00:39:29 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.5.200 with SMTP id u8ls7597lau.55.gmail; Tue, 14 Jul 2015 00:39:28 -0700 (PDT) X-Received: by 10.152.239.131 with SMTP id vs3mr37038005lac.102.1436859568682; Tue, 14 Jul 2015 00:39:28 -0700 (PDT) Received: from mail-lb0-f182.google.com (mail-lb0-f182.google.com. [209.85.217.182]) by mx.google.com with ESMTPS id f8si152755lbv.92.2015.07.14.00.39.28 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 14 Jul 2015 00:39:28 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.182 as permitted sender) client-ip=209.85.217.182; Received: by lbbyj8 with SMTP id yj8so1105814lbb.0 for ; Tue, 14 Jul 2015 00:39:28 -0700 (PDT) X-Received: by 10.112.125.34 with SMTP id mn2mr6504903lbb.76.1436859568215; Tue, 14 Jul 2015 00:39:28 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.108.230 with SMTP id hn6csp2195000lbb; Tue, 14 Jul 2015 00:39:27 -0700 (PDT) X-Received: by 10.66.145.33 with SMTP id sr1mr11256300pab.41.1436859566388; Tue, 14 Jul 2015 00:39:26 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h4si328330pda.83.2015.07.14.00.39.25; Tue, 14 Jul 2015 00:39:26 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752755AbbGNHjO (ORCPT + 26 others); Tue, 14 Jul 2015 03:39:14 -0400 Received: from mail-pa0-f43.google.com ([209.85.220.43]:33941 "EHLO mail-pa0-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752825AbbGNHjM (ORCPT ); Tue, 14 Jul 2015 03:39:12 -0400 Received: by pacan13 with SMTP id an13so1348378pac.1 for ; Tue, 14 Jul 2015 00:39:11 -0700 (PDT) X-Received: by 10.67.1.226 with SMTP id bj2mr11245779pad.34.1436859551862; Tue, 14 Jul 2015 00:39:11 -0700 (PDT) Received: from localhost.localdomain ([202.62.77.106]) by smtp.gmail.com with ESMTPSA id pe3sm275937pdb.55.2015.07.14.00.39.07 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 14 Jul 2015 00:39:10 -0700 (PDT) From: Vaibhav Hiremath To: linux-i2c@vger.kernel.org Cc: wsa@the-dreams.de, robh+dt@kernel.org, robert.jarzmik@free.fr, yizhang@marvell.com, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Leilei Shang , Raul Xiong , Xiaofan Tian , Vaibhav Hiremath Subject: [PATCH-v4 01/11] i2c: pxa: keep i2c irq ON in suspend Date: Tue, 14 Jul 2015 13:06:40 +0530 Message-Id: <1436859410-28878-2-git-send-email-vaibhav.hiremath@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1436859410-28878-1-git-send-email-vaibhav.hiremath@linaro.org> References: <1436859410-28878-1-git-send-email-vaibhav.hiremath@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: vaibhav.hiremath@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.182 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , 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; }