From patchwork Tue Jan 15 12:55:50 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 1977781 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) by patchwork1.kernel.org (Postfix) with ESMTP id 3BF0A3FE1B for ; Tue, 15 Jan 2013 13:07:40 +0000 (UTC) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1Tv68p-0008JM-7X; Tue, 15 Jan 2013 13:01:24 +0000 Received: from mail-wi0-f180.google.com ([209.85.212.180]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1Tv64L-0006bL-4C for linux-arm-kernel@lists.infradead.org; Tue, 15 Jan 2013 12:56:46 +0000 Received: by mail-wi0-f180.google.com with SMTP id hj13so63557wib.1 for ; Tue, 15 Jan 2013 04:56:43 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:from:to:cc:subject:date:message-id:x-mailer:in-reply-to :references:x-gm-message-state; bh=Et1XdbwJ1AJm7/mBaM7mBp6VVkfIN3dKdTiNwKbFmdg=; b=Xu8vechiUQvsYqKONZ4rQcWRrWe9LbW7wC/ap70JWZ68Ggi7XQpaDs5W5ScYlK0JBj fgxMIfm+ttDnDdL1qlnh1gYYZW8p5lJshgCQ964kaSfc2A1OvjEGYqid6d7Psv9LhNZG JGfjqqMMm9NyBqk5ow4wuFi6SKF5hlWSoqvPWNlA8kVqlAZ3yLojjHmrQTS8xNwDWAsv BSD0d2dY0I3bwsMXVyhTr0+lFREQZEFJraz/C8roVOdXeyLbF946oQ6wr3kPTFCAB6kf 9SezP6ts0mhN1315qSIe2gVkG+Iu5ZZYcdvBlROMa9y5HFXxbXAaEB+UpoYzuuKEXhFi vQng== X-Received: by 10.180.101.99 with SMTP id ff3mr3610084wib.21.1358254603000; Tue, 15 Jan 2013 04:56:43 -0800 (PST) Received: from localhost.localdomain (cpc1-aztw13-0-0-cust473.18-1.cable.virginmedia.com. [77.102.241.218]) by mx.google.com with ESMTPS id eo10sm3672833wib.9.2013.01.15.04.56.41 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 15 Jan 2013 04:56:42 -0800 (PST) From: Lee Jones To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 10/26] mfd: ab8500-debugfs: Wake-up device on debugfs IRQ Date: Tue, 15 Jan 2013 12:55:50 +0000 Message-Id: <1358254566-12419-11-git-send-email-lee.jones@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1358254566-12419-1-git-send-email-lee.jones@linaro.org> References: <1358254566-12419-1-git-send-email-lee.jones@linaro.org> X-Gm-Message-State: ALoCoQl626J8rP1abNheMS8Lx1TXqpf8tnhoiM7er9LcqSx5mf4AGMN88cCoOCQ9NNL1u604nEWc X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20130115_075645_588321_A8086B86 X-CRM114-Status: GOOD ( 11.33 ) X-Spam-Score: -2.6 (--) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-2.6 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [209.85.212.180 listed in list.dnswl.org] -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] Cc: Lee Jones , linus.walleij@stericsson.com, arnd@arndb.de, sameo@linux.intel.com X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: linux-arm-kernel-bounces@lists.infradead.org Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org Ensure the device wakes up if the debugfs IRQ fires if we're in suspend mode. Signed-off-by: Lee Jones --- drivers/mfd/ab8500-debugfs.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/mfd/ab8500-debugfs.c b/drivers/mfd/ab8500-debugfs.c index 71df8e4..b3ddc23 100644 --- a/drivers/mfd/ab8500-debugfs.c +++ b/drivers/mfd/ab8500-debugfs.c @@ -616,7 +616,8 @@ static ssize_t ab8500_subscribe_write(struct file *file, } err = request_threaded_irq(user_val, NULL, ab8500_debug_handler, - 0, "ab8500-debug", &dev->kobj); + IRQF_SHARED | IRQF_NO_SUSPEND, + "ab8500-debug", &dev->kobj); if (err < 0) { printk(KERN_ERR "request_threaded_irq failed %d, %lu\n", err, user_val);