Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp1526img; Wed, 20 Mar 2019 12:41:07 -0700 (PDT) X-Google-Smtp-Source: APXvYqxpOudAu9v3DWenvCQF/mV7QtjNg/yPxGBrJ6S+KxC9XtEeZtv0Fc126Yh8PqSWNO8vdXyq X-Received: by 2002:a63:5858:: with SMTP id i24mr1932728pgm.222.1553110867305; Wed, 20 Mar 2019 12:41:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553110867; cv=none; d=google.com; s=arc-20160816; b=NHkzhafp4aU+cf3DvgXBRscosMdDqDfIeejnwBCneo6u1vArOemRqiCeHUrQ7NEaSP dVS5zrxexQYGeHAW3QaxhTWI3rukyF3UJkjkoBTvkfp8s0twtB/dVZR/zVRWToVP1qH/ XjmwIwE4zL6EYjt2BTUgJO9czw1s8p1KtpKMoWxWOdKv4CyRj/Ey2ENBRKTdLQICIJpR S1zELSMFxAOHABvsYAlJTNip1hGAYOohxaXeF7hqbRMKY0ETnoUZcy949tyUiHPv4wBk 7LM+GcyZQ5tjfE5c4Pod5vNSyffKwRSz2e7U6sh7wZdt//EObXjTc1leotRQ59a/eH9h xAzA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=rQ7dC83klRmTKhwOjN/IqSQfUwsj7cUPMzmBzxP6UKw=; b=QZRnJxK/u9kAmnil+f7kGk9Ut46E9RGX4Zrb8T/lcJfhlR3vGomZvHQ96MPsTzwe/u 4AOk1gpG9/ejIKEC5eiSvLPZcH+7TbrM6D3acsNWvH34Tdx0t1N50yhcCfAbgCrleojq rO+GSLDSkFIHQ/MFzMKWOwiekBCrPJ66fpP1rpQZmp+B38d6JOJepOhbJ5FtWpqioNye L5rraieY5sGLAvu/zEvna0uNQwbjSCNNb3ZzlOZ1Ax2HYE7x7FkXpKBmk5P4xcf/1M3u jQphxtWaai8rhMrjtbpLxQNbllZYg3n/drkErlwbaaXFwMPLvQsexk77z1+FJ1Ao7AC4 R8yA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=L88Tvj8k; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 65si2542924plf.288.2019.03.20.12.40.51; Wed, 20 Mar 2019 12:41:07 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=L88Tvj8k; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726577AbfCTTjh (ORCPT + 99 others); Wed, 20 Mar 2019 15:39:37 -0400 Received: from mail-pg1-f196.google.com ([209.85.215.196]:32981 "EHLO mail-pg1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725988AbfCTTjg (ORCPT ); Wed, 20 Mar 2019 15:39:36 -0400 Received: by mail-pg1-f196.google.com with SMTP id b12so2553759pgk.0; Wed, 20 Mar 2019 12:39:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=rQ7dC83klRmTKhwOjN/IqSQfUwsj7cUPMzmBzxP6UKw=; b=L88Tvj8kS8+X0u9EsGn9b/oUBZ6cB/it9A4A6nUzt5o26v+0dnnzJaHEVpdr8qS9yk 4G1mujFAnT9jLXt1np1ol9mOFYaRCadl3BCcZzcaOYJH6i6iSrXgFmcy0Jkn6yMNCax4 SWIroqkjJ5/CZUlYCN0L4O5eVXGHD23QL4aY5Ut9GdwOzzQugnDfk2ZI0lu3eFag+iTq B9YOn/ieuERTm77c9aS7bGo+ag0QpwxxK1nPgAq5+OfgpYa8cC/KBl7qNJ8DNGYwpzdD QCguZ1/D0QTnyT6DnvBGjpRZ7gkypiabqycZfJmM50LaNSq3SU2xGpQAJITKNZprZpLr uzyQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=rQ7dC83klRmTKhwOjN/IqSQfUwsj7cUPMzmBzxP6UKw=; b=AdgWlxQ1t9viBepDIZQhqAue/DdEedyQfHZ7nB/Bpn6K0iextEasU7p6raeYZCfgH6 LTsgs/SaaCAGu+FxtHJUrRgzyYA5Nd9Nvu9sj7mH0NCFH4fO6y7NPangDt5tpjYcPVFN hXLNTMnITAlJYZWSnp3h5qlfk+9XSTtIurxP4qQ2qLS5LEr9PQXYkmkgz+Bwe8CRCc0e gJnbrKXzeA4oMjHJSv7+5/ENv9ANn/RkZDV/59Gf/e/j8uNHwVI6X8nz6dvnDD6d0VPg 04tMTMy0lwGQu4bUpHwA/o+3qFS0qo1eawxC5Yn/5UVjRMGkGtdaIS8sclwYpPFyqxOl ecvA== X-Gm-Message-State: APjAAAWVvLT3jb/mmEfBOMYWmjyl1/vBlgbejzTtSh0T+KhWYxHlzfPh rf2IeMkigM8TpfN+v7MRU7XjBp3n X-Received: by 2002:a63:c242:: with SMTP id l2mr9044078pgg.138.1553110775181; Wed, 20 Mar 2019 12:39:35 -0700 (PDT) Received: from fainelli-desktop.igp.broadcom.net ([192.19.223.250]) by smtp.gmail.com with ESMTPSA id b85sm5083896pfj.56.2019.03.20.12.39.33 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 20 Mar 2019 12:39:34 -0700 (PDT) From: Florian Fainelli To: linux-kernel@vger.kernel.org Cc: jaedon.shin@gmail.com, Florian Fainelli , Kevin Cernekee , Thomas Gleixner , Jason Cooper , Marc Zyngier , Brian Norris , Gregory Fong , bcm-kernel-feedback-list@broadcom.com (maintainer:BROADCOM BCM7XXX ARM ARCHITECTURE), linux-mips@vger.kernel.org (open list:BROADCOM BMIPS MIPS ARCHITECTURE), linux-arm-kernel@lists.infradead.org (moderated list:BROADCOM BCM7XXX ARM ARCHITECTURE) Subject: [PATCH] irqchip/bcm: Restore registration print with %pOF Date: Wed, 20 Mar 2019 12:39:19 -0700 Message-Id: <20190320193920.13164-1-f.fainelli@gmail.com> X-Mailer: git-send-email 2.17.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org It is useful to print which interrupt controllers are registered in the system and which parent IRQ they use, especially given that L2 interrupt controllers do not call request_irq() on their parent interrupt and do not appear under /proc/interrupts for that reason. We used to print the base register address virtual address which had little value, use %pOF to print the path to the Device Tree node which maps to the physical address more easily and is what people need to troubleshoot systems. Signed-off-by: Florian Fainelli --- drivers/irqchip/irq-bcm7038-l1.c | 3 +++ drivers/irqchip/irq-bcm7120-l2.c | 3 +++ drivers/irqchip/irq-brcmstb-l2.c | 2 ++ 3 files changed, 8 insertions(+) diff --git a/drivers/irqchip/irq-bcm7038-l1.c b/drivers/irqchip/irq-bcm7038-l1.c index 0f6e30e9009d..0acebac1920b 100644 --- a/drivers/irqchip/irq-bcm7038-l1.c +++ b/drivers/irqchip/irq-bcm7038-l1.c @@ -343,6 +343,9 @@ int __init bcm7038_l1_of_init(struct device_node *dn, goto out_unmap; } + pr_info("registered BCM7038 L1 intc (%pOF, IRQs: %d)\n", + dn, IRQS_PER_WORD * intc->n_words); + return 0; out_unmap: diff --git a/drivers/irqchip/irq-bcm7120-l2.c b/drivers/irqchip/irq-bcm7120-l2.c index 8968e5e93fcb..541bdca9f4af 100644 --- a/drivers/irqchip/irq-bcm7120-l2.c +++ b/drivers/irqchip/irq-bcm7120-l2.c @@ -318,6 +318,9 @@ static int __init bcm7120_l2_intc_probe(struct device_node *dn, } } + pr_info("registered %s intc (%pOF, parent IRQ(s): %d)\n", + intc_name, dn, data->num_parent_irqs); + return 0; out_free_domain: diff --git a/drivers/irqchip/irq-brcmstb-l2.c b/drivers/irqchip/irq-brcmstb-l2.c index 83364fedbf0a..77822ad37aad 100644 --- a/drivers/irqchip/irq-brcmstb-l2.c +++ b/drivers/irqchip/irq-brcmstb-l2.c @@ -264,6 +264,8 @@ static int __init brcmstb_l2_intc_of_init(struct device_node *np, ct->chip.irq_set_wake = irq_gc_set_wake; } + pr_info("registered L2 intc (%pOF, parent irq: %d)\n", np, parent_irq); + return 0; out_free_domain: -- 2.17.1