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: 14059 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id CC8A923E2E for ; Tue, 15 Jan 2013 12:56:44 +0000 (UTC) Received: from mail-vc0-f175.google.com (mail-vc0-f175.google.com [209.85.220.175]) by fiordland.canonical.com (Postfix) with ESMTP id 95055A19341 for ; Tue, 15 Jan 2013 12:56:44 +0000 (UTC) Received: by mail-vc0-f175.google.com with SMTP id fy7so55101vcb.20 for ; Tue, 15 Jan 2013 04:56:44 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:x-forwarded-to:x-forwarded-for:delivered-to:x-received :received-spf:x-received:from:to:cc:subject:date:message-id:x-mailer :in-reply-to:references:x-gm-message-state; bh=Et1XdbwJ1AJm7/mBaM7mBp6VVkfIN3dKdTiNwKbFmdg=; b=WqXGhcUSbo9uykvbFlQHsH75tDqSHFNdeTyziaOFyd5vcvadFQTFftezGul6k2Blfj a0wfEbHODhIX8VcAP4KcfQqYQ2Gd9whNv2ONdPNJGrCExHPKfRiinkuGtPPlEOKd2vb0 +dpiuEv7inisDTnznFx1ukyOvjVpkaF35YFwL24jxuZSyIGyFO6a6g8lRpbC3mzyLs8r mC71ZC+ZCrA6fzZX0BwouVc/jk+03AL0EFXpr5T6JV99ppCe0tTCh5bPx3ZpPyT2u3JV AZBWciCTGmLbz8xn8vWLDMCuIN4H8pdONxUUsH1rke3t0azsOJ2LU6Xrjc6n7WxhUz5u pNaA== X-Received: by 10.52.176.6 with SMTP id ce6mr91864308vdc.57.1358254604069; Tue, 15 Jan 2013 04:56:44 -0800 (PST) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.58.145.101 with SMTP id st5csp110601veb; Tue, 15 Jan 2013 04:56:43 -0800 (PST) X-Received: by 10.180.8.130 with SMTP id r2mr3587119wia.28.1358254603384; Tue, 15 Jan 2013 04:56:43 -0800 (PST) Received: from mail-wg0-f47.google.com (mail-wg0-f47.google.com [74.125.82.47]) by mx.google.com with ESMTPS id y1si27424555wje.37.2013.01.15.04.56.43 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 15 Jan 2013 04:56:43 -0800 (PST) Received-SPF: neutral (google.com: 74.125.82.47 is neither permitted nor denied by best guess record for domain of lee.jones@linaro.org) client-ip=74.125.82.47; Authentication-Results: mx.google.com; spf=neutral (google.com: 74.125.82.47 is neither permitted nor denied by best guess record for domain of lee.jones@linaro.org) smtp.mail=lee.jones@linaro.org Received: by mail-wg0-f47.google.com with SMTP id dq11so41964wgb.14 for ; Tue, 15 Jan 2013 04:56:43 -0800 (PST) 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 Cc: arnd@arndb.de, linus.walleij@stericsson.com, sameo@linux.intel.com, Lee Jones 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: ALoCoQkx5kp76tuItHrc0YKbfQemDnj99Il1qKhggCZQRJ11Zp+xfHfXmqh7amzPh6fxppUemnuV 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);