From patchwork Sat May 28 21:28:13 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 827142 Received: from bombadil.infradead.org (173-166-109-252-newengland.hfc.comcastbusiness.net [173.166.109.252]) by demeter2.kernel.org (8.14.4/8.14.3) with ESMTP id p4SLWm5j021025 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Sat, 28 May 2011 21:33:09 GMT Received: from canuck.infradead.org ([2001:4978:20e::1]) by bombadil.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1QQR3W-0007ud-8z; Sat, 28 May 2011 21:28:22 +0000 Received: from localhost ([127.0.0.1] helo=canuck.infradead.org) by canuck.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1QQR3T-0005bI-Vb; Sat, 28 May 2011 21:28:20 +0000 Received: from mail-bw0-f49.google.com ([209.85.214.49]) by canuck.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1QQR3Q-0005az-G0 for linux-arm-kernel@lists.infradead.org; Sat, 28 May 2011 21:28:17 +0000 Received: by bwz1 with SMTP id 1so2662036bwz.36 for ; Sat, 28 May 2011 14:28:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:from:to:cc:subject:date:message-id:x-mailer; bh=TddEaS6WIsoOXp+5JQrcoT1SmdOYa5PkNJsQpgOrkEI=; b=AQODhM4zCMEeNAAhDoXKwuNqKN7HxhT3QSBAGjjlMFDtbiOwM64t1UttoG0NbfAOSF 8v46F0BQjy/D8u56RLDbtyDuklLJDkhA3waIKicQPBKp+CGE6MDdqwXyMLfLwskkrtEl /9v7pGD2Mpn0LGLVZNXpuBJY8jxDHGH5YQP5E= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer; b=NSzvyvsLMn1y1g7KVcbw0FzKfsDe/OWx61O22s62Lh6xo+G5JAxPzk4VcHDcXTqCna le+ywxbZtGZpICGTPX/pkhsjcZuhkozGfUf+GDSfv8+LxJ44XPnWGFNxuvXUZF0ujtZ/ jwfAK2BuYLGuLObagCaRwSm80a1IcMdQHoaKQ= Received: by 10.204.29.23 with SMTP id o23mr1128321bkc.18.1306618094547; Sat, 28 May 2011 14:28:14 -0700 (PDT) Received: from doriath.lumag.dynalias.net (95-55-113-90.dynamic.avangarddsl.ru [95.55.113.90]) by mx.google.com with ESMTPS id af13sm2258937bkc.7.2011.05.28.14.28.12 (version=SSLv3 cipher=OTHER); Sat, 28 May 2011 14:28:13 -0700 (PDT) From: Dmitry Eremin-Solenikov To: Eric Miao Subject: [PATCH] pxa: correct icip irq handling Date: Sun, 29 May 2011 01:28:13 +0400 Message-Id: <1306618093-6572-1-git-send-email-dbaryshkov@gmail.com> X-Mailer: git-send-email 1.7.4.4 X-CRM114-Version: 20090807-BlameThorstenAndJenny ( TRE 0.7.6 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20110528_172816_710656_EFFA0B51 X-CRM114-Status: GOOD ( 14.63 ) X-Spam-Score: -0.8 (/) X-Spam-Report: SpamAssassin version 3.3.1 on canuck.infradead.org summary: Content analysis details: (-0.8 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [209.85.214.49 listed in list.dnswl.org] 0.0 FREEMAIL_FROM Sender email is freemail (dbaryshkov[at]gmail.com) -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.0 RFC_ABUSE_POST Both abuse and postmaster missing on sender domain Cc: linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: linux-arm-kernel-bounces@lists.infradead.org Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter2.kernel.org [140.211.167.43]); Sat, 28 May 2011 21:33:09 +0000 (UTC) IRQ handling on PXA25x is broken if PXA_HAVE_ISA_IRQS is enabled (then all PXA irqs are shifted to start from 16, but icip_handle_irq doesn't work in this case. Use PXA_IRQ to correct IRQ numbers in icip_handle_irq. Signed-off-by: Dmitry Eremin-Solenikov --- arch/arm/mach-pxa/irq.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/arch/arm/mach-pxa/irq.c b/arch/arm/mach-pxa/irq.c index 858e287..d9cab3b 100644 --- a/arch/arm/mach-pxa/irq.c +++ b/arch/arm/mach-pxa/irq.c @@ -141,7 +141,7 @@ asmlinkage void __exception_irq_entry icip_handle_irq(struct pt_regs *regs) if (mask == 0) break; - asm_do_IRQ(fls(mask) - 1, regs); + asm_do_IRQ(PXA_IRQ(fls(mask) - 1), regs); } while (1); }