From patchwork Mon Jul 16 07:35:37 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 1200101 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 0E7CEE0038 for ; Mon, 16 Jul 2012 07:38:44 +0000 (UTC) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1Sqfqo-0004Hu-Jx; Mon, 16 Jul 2012 07:36:14 +0000 Received: from mail-ey0-f177.google.com ([209.85.215.177]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1SqfqM-0004GS-SU for linux-arm-kernel@lists.infradead.org; Mon, 16 Jul 2012 07:35:58 +0000 Received: by eaaf11 with SMTP id f11so1557048eaa.36 for ; Mon, 16 Jul 2012 00:35:40 -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=5WhQinlKL/e8tFYlV3ynKNAQehZSC2HcOwBbkuoo2tw=; b=P8FbZ3gnw9UL9EgbPBAQrkUGitsAIMwGnAv5IPkzd9uR9h0uKqFBerzHAHcwK+3fhG Sw/4Nzks3JdqdnBnO6OB7j1awmEmB5BCamtlo2Nd2X2+i3gcEm69YaBIII7hVNcSdeOG sNaGtuiPFlqV6cq45B9yBTrJfOl7kzQvSzl3sGdc0C8N9HrOtpkQWVWZG+/eqH8bUd3u l5HTObGRX8rSTu7k58y5fTfiCA1rdA3+38gzL0q55Fsbg0YmKwUGdynlumdD4OjA7mfj 16xU7h9wN5iBGLHBMBlPIwg7SyeQ5+a5lpD/1gurlef9CY+8wJx+wYePOjDdKTTA/tc5 nJWg== Received: by 10.14.211.200 with SMTP id w48mr7821999eeo.6.1342424140442; Mon, 16 Jul 2012 00:35:40 -0700 (PDT) Received: from [192.168.0.132] (cpc1-aztw13-0-0-cust473.18-1.cable.virginmedia.com. [77.102.241.218]) by mx.google.com with ESMTPS id k48sm16199381eep.13.2012.07.16.00.35.38 (version=SSLv3 cipher=OTHER); Mon, 16 Jul 2012 00:35:39 -0700 (PDT) Message-ID: <5003C449.6000806@linaro.org> Date: Mon, 16 Jul 2012 08:35:37 +0100 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 , Samuel Ortiz 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> <4FFB288D.4080606@linaro.org> <20120709201422.GA12242@core.coreip.homeip.net> <4FFB40A4.5060505@linaro.org> <20120709204620.GA12692@core.coreip.homeip.net> <4FFB463F.9040201@linaro.org> <20120710061757.GB29257@core.coreip.homeip.net> In-Reply-To: <20120710061757.GB29257@core.coreip.homeip.net> X-Gm-Message-State: ALoCoQl3widhlf9hRSArlAIR5+dBCIvdMxt9aMekzdMxl1iCzUjBNT1mwRd7LJi4vzLpgADMh7Dz 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.215.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 > I think it would be best if this got merged through whatever tree that > was used to introduce ab8500_irq_get_virq(); otherwise it will have to > wait till I resync with mainline sometime in the middle of the next > release cycle. I agree. Sam that's you, patch below. :) 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. Acked-by: Dmitry Torokhov Acked-by: Linus Walleij Signed-off-by: Lee Jones --- drivers/input/misc/ab8500-ponkey.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/input/misc/ab8500-ponkey.c b/drivers/input/misc/ab8500-ponkey.c index 350fd0c..1a1d974 100644 --- a/drivers/input/misc/ab8500-ponkey.c +++ b/drivers/input/misc/ab8500-ponkey.c @@ -73,8 +73,8 @@ static int __devinit ab8500_ponkey_probe(struct platform_device *pdev) ponkey->idev = input; ponkey->ab8500 = ab8500; - ponkey->irq_dbf = irq_dbf; - ponkey->irq_dbr = irq_dbr; + ponkey->irq_dbf = ab8500_irq_get_virq(ab8500, irq_dbf); + ponkey->irq_dbr = ab8500_irq_get_virq(ab8500, irq_dbr); input->name = "AB8500 POn(PowerOn) Key"; input->dev.parent = &pdev->dev;