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: 50780 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f69.google.com (mail-la0-f69.google.com [209.85.215.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 045B3229FC for ; Mon, 6 Jul 2015 19:28:03 +0000 (UTC) Received: by laar3 with SMTP id r3sf50537032laa.1 for ; Mon, 06 Jul 2015 12:28:01 -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=hJRAes+gS0JITXD/XTbS/PGtohu/UhwNeXW3JsLaPmR2gGYsUC+kxwWTXGLdmrsy2f VbmM19CNka81UlghpKF8O8/CnHJXg8dBJK5J6UCDIUJe+JoSZMWTJtw1nrvMBdjZNCGH 4xLZ0sB9pxULAWrfpAuP0IF0MiqTpTF+FSUTiXEomT8F2/p0mHGMHAZu5FaZY/ZaXWON vOymt7tv6lc5WCkn+Lu8nj5pVgDM6i6PJUqCpEuop44o5Xn4LpseTbSDvsiPLiNo2svO gb1aR9HWiKI5or14cYixiA0I+iDT0z9wdqDtofan50Si7NKt6YZJcoi6s8Ocqj3h2duB Em9w== X-Gm-Message-State: ALoCoQk6VxQf2DGif/y9JeJKdek+EpOWGrWXwY+PeWsNpf/Cgg7f+AUjM16C7uFD6M685DBk+a5S X-Received: by 10.112.148.101 with SMTP id tr5mr202974lbb.13.1436210881660; Mon, 06 Jul 2015 12:28:01 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.29.169 with SMTP id l9ls733128lah.52.gmail; Mon, 06 Jul 2015 12:28:01 -0700 (PDT) X-Received: by 10.112.41.171 with SMTP id g11mr378288lbl.123.1436210881448; Mon, 06 Jul 2015 12:28:01 -0700 (PDT) Received: from mail-la0-f48.google.com (mail-la0-f48.google.com. [209.85.215.48]) by mx.google.com with ESMTPS id ms1si16047851lbb.53.2015.07.06.12.28.01 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 06 Jul 2015 12:28:01 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.48 as permitted sender) client-ip=209.85.215.48; Received: by laar3 with SMTP id r3so168459685laa.0 for ; Mon, 06 Jul 2015 12:28:01 -0700 (PDT) X-Received: by 10.112.93.37 with SMTP id cr5mr431562lbb.106.1436210881157; Mon, 06 Jul 2015 12:28:01 -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 hn6csp1921090lbb; Mon, 6 Jul 2015 12:28:00 -0700 (PDT) X-Received: by 10.70.96.2 with SMTP id do2mr814610pdb.67.1436210879422; Mon, 06 Jul 2015 12:27:59 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id ij4si30409727pbc.142.2015.07.06.12.27.58; Mon, 06 Jul 2015 12:27:59 -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 S1754496AbbGFT1s (ORCPT + 29 others); Mon, 6 Jul 2015 15:27:48 -0400 Received: from mail-pa0-f46.google.com ([209.85.220.46]:36788 "EHLO mail-pa0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753661AbbGFT1m (ORCPT ); Mon, 6 Jul 2015 15:27:42 -0400 Received: by pacgz10 with SMTP id gz10so26170259pac.3 for ; Mon, 06 Jul 2015 12:27:41 -0700 (PDT) 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 Cc: linux-arm-kernel@lists.infradead.org, wsa@the-dreams.de, robert.jarzmik@free.fr, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, robh+dt@kernel.org, Leilei Shang , Raul Xiong , Xiaofan Tian , Vaibhav Hiremath 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> 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.215.48 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; }