From patchwork Mon Jul 9 18:53:01 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 1174531 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) by patchwork2.kernel.org (Postfix) with ESMTP id 2A165DF235 for ; Mon, 9 Jul 2012 18:56:50 +0000 (UTC) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1SoJ56-0007Ep-EP; Mon, 09 Jul 2012 18:53:12 +0000 Received: from mail-lb0-f177.google.com ([209.85.217.177]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1SoJ53-0007Dw-89 for linux-arm-kernel@lists.infradead.org; Mon, 09 Jul 2012 18:53:10 +0000 Received: by lbbgg6 with SMTP id gg6so17324596lbb.36 for ; Mon, 09 Jul 2012 11:53:05 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding :x-gm-message-state; bh=KRBlIuVLL5FQ9i4EATnhoTEQxlJ2/lr877n/iJviipw=; b=bmqUlbsbuHzamofNofkqYk5n85AMPLkQPCkpTUZujeNI/bOJg1rMiDextd1+UsgXeX s7vdvwAkqz9Bwpcqd6P6CuJ8zL+fgMan3f+UW4ZNHYBTEwVCr3iLKq5IvX2rKGaGSJx6 jOiwgV16i4UI/AlH5e3LhQLb0ce7nHOG09Umb1maDzwRSvSiFf4l8rf2GqQpse4AWI7f 46qh5nZPWZywUY76lazYC9ohIW3p1LQFfVVp+kPBFQf4tGf/kE9aNXga5x9toTXSaiyU 1h2JwpdIF7mZqPbdXNpoYif1s1ZgGm8vqf0A2huf5rIARvrTKFilEkKq2OW+BgQc+N8G rMfw== Received: by 10.112.25.106 with SMTP id b10mr18657360lbg.36.1341859984909; Mon, 09 Jul 2012 11:53:04 -0700 (PDT) Received: from [10.59.1.244] ([213.88.140.213]) by mx.google.com with ESMTPS id sm7sm48056459lab.5.2012.07.09.11.53.03 (version=SSLv3 cipher=OTHER); Mon, 09 Jul 2012 11:53:03 -0700 (PDT) Message-ID: <4FFB288D.4080606@linaro.org> Date: Mon, 09 Jul 2012 20:53:01 +0200 From: Lee Jones User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:13.0) Gecko/20120615 Thunderbird/13.0.1 MIME-Version: 1.0 To: Dmitry Torokhov Subject: Re: [PATCH 7/9] Input: ab8500-ponkey: Create AB8500 domain IRQ mapping References: <1341493572-29735-1-git-send-email-lee.jones@linaro.org> <4FF6994B.9040801@linaro.org> <20120706173957.GA10202@core.coreip.homeip.net> In-Reply-To: <20120706173957.GA10202@core.coreip.homeip.net> X-Gm-Message-State: ALoCoQn8yk6BU5eZpXjTqdl3h/242Or+n0ww39qK80Eif1uD02Ptt476MNYDz4+2RyKDAk+TAfZK X-Spam-Note: CRM114 invocation failed 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.217.177 listed in list.dnswl.org] -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] Cc: STEricsson_nomadik_linux@list.st.com, arnd@arndb.de, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linus.walleij@stericsson.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: , Sender: linux-arm-kernel-bounces@lists.infradead.org Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org From: Lee Jones Date: Tue, 26 Jun 2012 10:46:50 +0100 Subject: [PATCH 1/1] Input: ab8500-ponkey: Create AB8500 domain IRQ mapping Before we can use any domain allocated IRQ, we need to first create a map between the Hardware IRQ (hwirq) and the Linux Virtual IRQ (virq). We do this with a helper function provided by the AB8500 IRQ domain controller called ab8500_irq_get_virq(). We need to do this for both IRQs which the Power-On-Key driver uses; one for button press, the other for button depress. Signed-off-by: Lee Jones --- drivers/input/misc/ab8500-ponkey.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/input/misc/ab8500-ponkey.c b/drivers/input/misc/ab8500-ponkey.c index 5ceb23e..08d42d1 100644 --- a/drivers/input/misc/ab8500-ponkey.c +++ b/drivers/input/misc/ab8500-ponkey.c @@ -82,6 +82,7 @@ static int __devinit ab8500_ponkey_probe(struct platform_device *pdev) input_set_capability(input, EV_KEY, KEY_POWER); + ponkey->irq_dbf = ab8500_irq_get_virq(ab8500, ponkey->irq_dbf); error = request_any_context_irq(ponkey->irq_dbf, ab8500_ponkey_handler, 0, "ab8500-ponkey-dbf", ponkey); if (error < 0) { @@ -90,6 +91,7 @@ static int __devinit ab8500_ponkey_probe(struct platform_device *pdev) goto err_free_mem; } + ponkey->irq_dbr = ab8500_irq_get_virq(ab8500, ponkey->irq_dbr); error = request_any_context_irq(ponkey->irq_dbr, ab8500_ponkey_handler, 0, "ab8500-ponkey-dbr", ponkey); if (error < 0) {