From patchwork Mon Jul 9 20:35:48 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 1174781 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 B7413DF235 for ; Mon, 9 Jul 2012 20:40:59 +0000 (UTC) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1SoKgz-0004Rr-7F; Mon, 09 Jul 2012 20:36:25 +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 1SoKgj-0004PM-M7 for linux-arm-kernel@lists.infradead.org; Mon, 09 Jul 2012 20:36:20 +0000 Received: by lbbgg6 with SMTP id gg6so17447894lbb.36 for ; Mon, 09 Jul 2012 13:35:51 -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=wkX1ccL5GBO8al/MLFsMdsPjmpS4t0iZFUqHYsLUE6s=; b=JmrR5UcDuR5Oq7K9i9VDBxTM2GrZ6CflklYH7HADXNDW+WV5vjywSt3+HHHsH0MVLU UNeiyBDDkIYFDq6Pu77O7vaYSwD2lNdDZ0kKEwUzJ2Rbj8q847SWEV5Ic1WM/EBbp1d6 CWcMW9e67Sot2p9nSPU6aMfqmXHZyR1m0wt7dYAbBbuCCw20rnYLg9k2bydnC7HD5Pa6 OYDHj+G96FjhxorUXhKR5yMIz8ngQR3ZhdcTmNzknGysADdDctWeDBLqcIDZib3r1xEH eqiqT5m/sMBaBUSn9lH30450EP9mgvadjcd4N1PNCVBboW3EBmnnKrq+rqW66vT8xkeG 5fTA== Received: by 10.152.105.173 with SMTP id gn13mr42032379lab.20.1341866151029; Mon, 09 Jul 2012 13:35:51 -0700 (PDT) Received: from [10.59.1.244] ([213.88.140.213]) by mx.google.com with ESMTPS id u10sm16821694lbm.14.2012.07.09.13.35.49 (version=SSLv3 cipher=OTHER); Mon, 09 Jul 2012 13:35:50 -0700 (PDT) Message-ID: <4FFB40A4.5060505@linaro.org> Date: Mon, 09 Jul 2012 22:35:48 +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> <4FFB288D.4080606@linaro.org> <20120709201422.GA12242@core.coreip.homeip.net> In-Reply-To: <20120709201422.GA12242@core.coreip.homeip.net> X-Gm-Message-State: ALoCoQkezkCYNCLHgey9KWVtYze8a4FBStsaP0od8T+ZY8PlIrs5jsv1ycz3HI/RCV/Q+aySKJ4u 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 Acked-by: Linus Walleij --- 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 5ceb23e..8d24189 100644 --- a/drivers/input/misc/ab8500-ponkey.c +++ b/drivers/input/misc/ab8500-ponkey.c @@ -74,8 +74,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, ponkey->irq_dbf); + ponkey->irq_dbr = ab8500_irq_get_virq(ab8500, ponkey->irq_dbr); input->name = "AB8500 POn(PowerOn) Key"; input->dev.parent = &pdev->dev;