From patchwork Mon Jul 9 20:59:43 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 1174851 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 AF08740B18 for ; Mon, 9 Jul 2012 21:02:41 +0000 (UTC) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1SoL3j-0000SV-Dj; Mon, 09 Jul 2012 20:59:55 +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 1SoL3d-0000RR-GK for linux-arm-kernel@lists.infradead.org; Mon, 09 Jul 2012 20:59:51 +0000 Received: by lbbgg6 with SMTP id gg6so17475892lbb.36 for ; Mon, 09 Jul 2012 13:59:47 -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=qfZmMW24/2wyDlTic0dT58CFzEuAg7pF7kMXM/6lvpo=; b=S8HGY7rH3wGQnnLL+nNTEe+DIzrOhgxc+8OdYEUzMgcOJv9NHX5bmxI9swAj9+g3wp w1xVAMtH3JXLszx2ytPVfBiAFFS0y9PcCF+xtRTOYyA2yLv7ZpXDQO1AiKOunc8Q0jsT MLifIULRUgOZJPTK3wIYwKan1IPCgMTWefPJVQeQZ9kSpSjvBQ62fSrz7Z3kVkP8ur3V rcmoW7JyRJgHT/MkbNGmFko82qSKIqrn0cRlZYRk9Es/+933aWS2WKpKVDPdm/qKNFOi xqBguV55xQcJFI3xwneWobbQT+Eg4sj/BvETJzmH5EcF8zvEulS6uhRZAhqH7gpeNcUy kT8w== Received: by 10.112.42.34 with SMTP id k2mr19185148lbl.0.1341867586892; Mon, 09 Jul 2012 13:59:46 -0700 (PDT) Received: from [10.59.1.244] ([213.88.140.213]) by mx.google.com with ESMTPS id lv13sm48301074lab.8.2012.07.09.13.59.44 (version=SSLv3 cipher=OTHER); Mon, 09 Jul 2012 13:59:45 -0700 (PDT) Message-ID: <4FFB463F.9040201@linaro.org> Date: Mon, 09 Jul 2012 22:59:43 +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> <4FFB40A4.5060505@linaro.org> <20120709204620.GA12692@core.coreip.homeip.net> In-Reply-To: <20120709204620.GA12692@core.coreip.homeip.net> X-Gm-Message-State: ALoCoQlubhSk+NyyHjy08wg/mskjiEC7xG0JzlmKz09zgUM7a/0SaYOEd0Us5jmUAm82z/sEqVUs 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 Sorry for the cock-up(s). 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: Dmitry Torokhov Acked-by: on whatever Dmitry Acked. --- 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..f6764af 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, irq_dbf); + ponkey->irq_dbr = ab8500_irq_get_virq(ab8500, irq_dbr); input->name = "AB8500 POn(PowerOn) Key"; input->dev.parent = &pdev->dev;