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: 49102 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 26655202A3 for ; Thu, 28 May 2015 13:06:36 +0000 (UTC) Received: by lbbqq2 with SMTP id qq2sf10402560lbb.0 for ; Thu, 28 May 2015 06:06:35 -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=9qnuMhduIDU5H9mJkadQGvhnLUiBYlLczpqCfv839gw=; b=ZZABxROurCpcSjmLDbsA+Eu0t1zxVFarkn37TOj4IyTccY9anIWHxMjehw1w/bcGw/ HTRlprCGFdP4nKum0iENnXjAtIlyND8KSqqvTyX51v2Mf9F+JC+K65NEdo8gqWQ4HuI9 00x6e9O8LwFBRZOlQO1J/DmEBoKYE693IJtNfxMCru06xgNpc8oPzFpKIsbaA4kr53K6 wRgmWL1UUWAUyEkk1wntaSXZ8FF435pZFrsUczDHigRiv2F1xnjmBOuTXAqlXSyj/lRW DFgbGay1hK13CBv6kMykQNKLjSAnbxW/2B6cNbnYXhUYhhV3GY57K0lJ+u9x+rM7nram 0CLw== X-Gm-Message-State: ALoCoQk1uqESL5YHrleUvBccDCf/VmYHAc6ZDgM8JV5KUy/WH8rLWjEZ13vlZxkf8fdyrWTKGnuz X-Received: by 10.180.97.9 with SMTP id dw9mr7749468wib.2.1432818394611; Thu, 28 May 2015 06:06:34 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.203.227 with SMTP id kt3ls162613lac.18.gmail; Thu, 28 May 2015 06:06:34 -0700 (PDT) X-Received: by 10.112.139.198 with SMTP id ra6mr2716470lbb.15.1432818394442; Thu, 28 May 2015 06:06:34 -0700 (PDT) Received: from mail-la0-f49.google.com (mail-la0-f49.google.com. [209.85.215.49]) by mx.google.com with ESMTPS id h3si1891422lbj.145.2015.05.28.06.06.34 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 28 May 2015 06:06:34 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.49 as permitted sender) client-ip=209.85.215.49; Received: by lagv1 with SMTP id v1so31189619lag.3 for ; Thu, 28 May 2015 06:06:34 -0700 (PDT) X-Received: by 10.152.6.69 with SMTP id y5mr2673105lay.72.1432818394104; Thu, 28 May 2015 06:06:34 -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 hn6csp1144150lbb; Thu, 28 May 2015 06:06:32 -0700 (PDT) X-Received: by 10.66.224.237 with SMTP id rf13mr5215374pac.131.1432818392278; Thu, 28 May 2015 06:06:32 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i4si3510427pdh.229.2015.05.28.06.06.31; Thu, 28 May 2015 06:06:32 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-i2c-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 S1753647AbbE1NGa (ORCPT + 1 other); Thu, 28 May 2015 09:06:30 -0400 Received: from mail-pd0-f170.google.com ([209.85.192.170]:36547 "EHLO mail-pd0-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753633AbbE1NGa (ORCPT ); Thu, 28 May 2015 09:06:30 -0400 Received: by pdfh10 with SMTP id h10so41412461pdf.3 for ; Thu, 28 May 2015 06:06:29 -0700 (PDT) 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 Cc: Wolfram Sang , linux-arm-kernel@lists.infradead.org, Leilei Shang , Raul Xiong , Xiaofan Tian , Vaibhav Hiremath 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> Sender: linux-i2c-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-i2c@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.49 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 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; }