From: Stephen Warren <swarren-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>
To: Thierry Reding <thierry.reding-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Cc: linux-tegra-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org
Subject: Re: [PATCH v2 3/4] soc/tegra: Initialize interrupt controller from DT
Date: Mon, 30 Jun 2014 14:31:02 -0600 [thread overview]
Message-ID: <53B1C906.2080806@wwwdotorg.org> (raw)
In-Reply-To: <1403917351-13215-3-git-send-email-thierry.reding-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
On 06/27/2014 07:02 PM, Thierry Reding wrote:
> From: Thierry Reding <treding-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
>
> Obtains the register ranges for the legacy interrupt controller from DT
> and provide hard-coded values as fallback.
> diff --git a/arch/arm/mach-tegra/irq.c b/arch/arm/mach-tegra/irq.c
> - if (num_ictlrs > ARRAY_SIZE(ictlr_reg_base)) {
> - WARN(1, "Too many (%d) interrupt controllers found. Maximum is %d.",
> - num_ictlrs, ARRAY_SIZE(ictlr_reg_base));
> - num_ictlrs = ARRAY_SIZE(ictlr_reg_base);
> + if (num_ictlrs != max_ictlrs) {
> + WARN(1, "Too many (%d) interrupt controllers found. Maximum is %u.",
> + num_ictlrs, max_ictlrs);
We should change that message to something more like:
Wrong number (%d) interrupt controllers found. Expected %u.
Feel free to make that a separate patch though.
> - if (!of_have_populated_dt())
> - gic_init(0, 29, distbase,
> - IO_ADDRESS(TEGRA_ARM_PERIF_BASE + 0x100));
> + if (!of_have_populated_dt()) {
> + void __iomem *cpubase = ioremap_nocache(0x50040000, 0x2000);
> + gic_init(0, 29, distbase, cpubase);
> + }
That if will never fire these days. We should rip out that block sometime.
WARNING: multiple messages have this Message-ID (diff)
From: swarren@wwwdotorg.org (Stephen Warren)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v2 3/4] soc/tegra: Initialize interrupt controller from DT
Date: Mon, 30 Jun 2014 14:31:02 -0600 [thread overview]
Message-ID: <53B1C906.2080806@wwwdotorg.org> (raw)
In-Reply-To: <1403917351-13215-3-git-send-email-thierry.reding@gmail.com>
On 06/27/2014 07:02 PM, Thierry Reding wrote:
> From: Thierry Reding <treding@nvidia.com>
>
> Obtains the register ranges for the legacy interrupt controller from DT
> and provide hard-coded values as fallback.
> diff --git a/arch/arm/mach-tegra/irq.c b/arch/arm/mach-tegra/irq.c
> - if (num_ictlrs > ARRAY_SIZE(ictlr_reg_base)) {
> - WARN(1, "Too many (%d) interrupt controllers found. Maximum is %d.",
> - num_ictlrs, ARRAY_SIZE(ictlr_reg_base));
> - num_ictlrs = ARRAY_SIZE(ictlr_reg_base);
> + if (num_ictlrs != max_ictlrs) {
> + WARN(1, "Too many (%d) interrupt controllers found. Maximum is %u.",
> + num_ictlrs, max_ictlrs);
We should change that message to something more like:
Wrong number (%d) interrupt controllers found. Expected %u.
Feel free to make that a separate patch though.
> - if (!of_have_populated_dt())
> - gic_init(0, 29, distbase,
> - IO_ADDRESS(TEGRA_ARM_PERIF_BASE + 0x100));
> + if (!of_have_populated_dt()) {
> + void __iomem *cpubase = ioremap_nocache(0x50040000, 0x2000);
> + gic_init(0, 29, distbase, cpubase);
> + }
That if will never fire these days. We should rip out that block sometime.
next prev parent reply other threads:[~2014-06-30 20:31 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-06-28 1:02 [PATCH v2 1/4] of: Add NVIDIA Tegra Legacy Interrupt Controller binding Thierry Reding
2014-06-28 1:02 ` Thierry Reding
[not found] ` <1403917351-13215-1-git-send-email-thierry.reding-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2014-06-28 1:02 ` [PATCH v2 2/4] ARM: tegra: Add legacy interrupt controller nodes Thierry Reding
2014-06-28 1:02 ` Thierry Reding
2014-06-28 1:02 ` [PATCH v2 3/4] soc/tegra: Initialize interrupt controller from DT Thierry Reding
2014-06-28 1:02 ` Thierry Reding
[not found] ` <1403917351-13215-3-git-send-email-thierry.reding-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2014-06-30 20:31 ` Stephen Warren [this message]
2014-06-30 20:31 ` Stephen Warren
2014-06-28 1:02 ` [PATCH v2 4/4] soc/tegra: Remove unused defines Thierry Reding
2014-06-28 1:02 ` Thierry Reding
2014-06-30 17:43 ` [PATCH v2 1/4] of: Add NVIDIA Tegra Legacy Interrupt Controller binding Mark Rutland
2014-06-30 17:43 ` Mark Rutland
2014-06-30 18:38 ` Stephen Warren
2014-06-30 18:38 ` Stephen Warren
[not found] ` <53B1AE95.3000602-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>
2014-07-01 13:10 ` Mark Rutland
2014-07-01 13:10 ` Mark Rutland
2014-06-30 20:32 ` Stephen Warren
2014-06-30 20:32 ` Stephen Warren
[not found] ` <53B1C948.6050603-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>
2014-08-25 17:35 ` Stephen Warren
2014-08-25 17:35 ` Stephen Warren
[not found] ` <53FB73EE.7000508-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>
2014-08-26 6:17 ` Thierry Reding
2014-08-26 6:17 ` Thierry Reding
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=53B1C906.2080806@wwwdotorg.org \
--to=swarren-3lzwwm7+weoh9zmkesr00q@public.gmane.org \
--cc=linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org \
--cc=linux-tegra-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=thierry.reding-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.