From patchwork Thu Oct 3 16:03:13 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 20807 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qe0-f70.google.com (mail-qe0-f70.google.com [209.85.128.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 30C2325CAB for ; Thu, 3 Oct 2013 16:03:20 +0000 (UTC) Received: by mail-qe0-f70.google.com with SMTP id b4sf5505217qen.1 for ; Thu, 03 Oct 2013 09:03:20 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=mime-version:x-gm-message-state:delivered-to:from:to:cc:subject :date:message-id:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=NvGNW9KLmtrh+rwXun+k87XVP5Bx3WGlWbDYDwzf/Rc=; b=PLgU0P576zaMl8GkwFUbm3HLKxroDkvhu/lgc68xaKRZkQjdaKr2yWdSZPxaiiLG4u uWgbCIpGvC7XPl+rWGUIZHS1Xfx2RzyNOcEgu85TZTS3jF2HtQpmdmAzsdLvZ3U6810q WjhkTwhQu4m2O7T1w60VE9wVNEDtXYvCsLzPkbBAnzilki+f/NTQfr9TzAyH/FetB+4E qJYBA32SXlOXHZjov1ZThEORHEDQO5+fwWVQ+gJvPOSKF4MU1fx9gvnnF14NYpF7qIuz dCzZA/uuszZ/cWlAA1YGvOqz+UmKfgq6XFdQ8bWrpFuVsWmc4BHcneEnQWVRdTdx7B0P XUQw== X-Received: by 10.58.147.70 with SMTP id ti6mr1360044veb.8.1380816200021; Thu, 03 Oct 2013 09:03:20 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.59.14 with SMTP id v14ls1036776qeq.87.gmail; Thu, 03 Oct 2013 09:03:19 -0700 (PDT) X-Received: by 10.220.181.136 with SMTP id by8mr8147728vcb.11.1380816199895; Thu, 03 Oct 2013 09:03:19 -0700 (PDT) Received: from mail-ve0-f174.google.com (mail-ve0-f174.google.com [209.85.128.174]) by mx.google.com with ESMTPS id gq10si1880825vdc.121.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 03 Oct 2013 09:03:19 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.128.174 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.128.174; Received: by mail-ve0-f174.google.com with SMTP id jy13so1830752veb.33 for ; Thu, 03 Oct 2013 09:03:19 -0700 (PDT) X-Gm-Message-State: ALoCoQnsqqz2A6IxzX2yEuZnI0FnFukbxGmTJl2t81XZTw71+AJ6/FpWPJWOmz0Sl4HyE2SAkp7r X-Received: by 10.52.165.131 with SMTP id yy3mr6711638vdb.25.1380816199798; Thu, 03 Oct 2013 09:03:19 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.220.174.196 with SMTP id u4csp189654vcz; Thu, 3 Oct 2013 09:03:19 -0700 (PDT) X-Received: by 10.14.48.14 with SMTP id u14mr4114748eeb.74.1380816198676; Thu, 03 Oct 2013 09:03:18 -0700 (PDT) Received: from mail-ee0-f42.google.com (mail-ee0-f42.google.com [74.125.83.42]) by mx.google.com with ESMTPS id x7si6607291eeo.127.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 03 Oct 2013 09:03:18 -0700 (PDT) Received-SPF: neutral (google.com: 74.125.83.42 is neither permitted nor denied by best guess record for domain of linus.walleij@linaro.org) client-ip=74.125.83.42; Received: by mail-ee0-f42.google.com with SMTP id b45so1207801eek.29 for ; Thu, 03 Oct 2013 09:03:18 -0700 (PDT) X-Received: by 10.14.0.6 with SMTP id 6mr3852417eea.76.1380816198128; Thu, 03 Oct 2013 09:03:18 -0700 (PDT) Received: from localhost.localdomain ([85.235.11.236]) by mx.google.com with ESMTPSA id f49sm17299207eec.7.1969.12.31.16.00.00 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Thu, 03 Oct 2013 09:03:17 -0700 (PDT) From: Linus Walleij To: linux-arm-kernel@lists.infradead.org Cc: Linus Walleij Subject: [PATCH 2/6] ARM: integrator: print the Linux IRQ in LL_DEBUG code Date: Thu, 3 Oct 2013 18:03:13 +0200 Message-Id: <1380816193-3086-1-git-send-email-linus.walleij@linaro.org> X-Mailer: git-send-email 1.8.3.1 X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: linus.walleij@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.128.174 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , The static HW irqs have no meaning in the interrupt handler and does not correlate to the /proc/interrupts IRQ numbers anymore, print the Linux IRQ number instead. Signed-off-by: Linus Walleij --- arch/arm/mach-integrator/pci_v3.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-integrator/pci_v3.c b/arch/arm/mach-integrator/pci_v3.c index bef1005..2d10793 100644 --- a/arch/arm/mach-integrator/pci_v3.c +++ b/arch/arm/mach-integrator/pci_v3.c @@ -605,7 +605,7 @@ v3_pci_fault(unsigned long addr, unsigned int fsr, struct pt_regs *regs) return 1; } -static irqreturn_t v3_irq(int dummy, void *devid) +static irqreturn_t v3_irq(int irq, void *devid) { #ifdef CONFIG_DEBUG_LL struct pt_regs *regs = get_irq_regs(); @@ -615,7 +615,7 @@ static irqreturn_t v3_irq(int dummy, void *devid) extern void printascii(const char *); sprintf(buf, "V3 int %d: pc=0x%08lx [%08lx] LBFADDR=%08x LBFCODE=%02x " - "ISTAT=%02x\n", IRQ_AP_V3INT, pc, instr, + "ISTAT=%02x\n", irq, pc, instr, __raw_readl(ap_syscon_base + INTEGRATOR_SC_LBFADDR_OFFSET), __raw_readl(ap_syscon_base + INTEGRATOR_SC_LBFCODE_OFFSET) & 255, v3_readb(V3_LB_ISTAT));