From: mark.rutland@arm.com (Mark Rutland)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 3/6] ARM: integrator: delete non-devicetree boot path
Date: Tue, 8 Oct 2013 10:51:48 +0100 [thread overview]
Message-ID: <20131008095148.GD28972@e106331-lin.cambridge.arm.com> (raw)
In-Reply-To: <1380816202-3128-1-git-send-email-linus.walleij@linaro.org>
[Adding devicetree to Cc]
On Thu, Oct 03, 2013 at 05:03:22PM +0100, Linus Walleij wrote:
> The Device Tree boot path now supports everything the ATAG
> boot can provide, and the two are equivalent. This deletes
> the ATAG boot path from the Integrator/AP and
> Integrator/CP platforms to move them on to the future.
>
> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
> ---
> arch/arm/Kconfig | 1 +
> arch/arm/mach-integrator/core.c | 57 ----------
> arch/arm/mach-integrator/integrator_ap.c | 135 ------------------------
> arch/arm/mach-integrator/integrator_cp.c | 173 -------------------------------
> arch/arm/mach-integrator/pci_v3.c | 122 +++++-----------------
> 5 files changed, 25 insertions(+), 463 deletions(-)
>
[...]
> +static int __init pci_v3_probe(struct platform_device *pdev)
> {
> + struct device_node *np = pdev->dev.of_node;
> struct of_pci_range_parser parser;
> struct of_pci_range range;
> struct resource *res;
> int irq, ret;
>
> + /* Remap the Integrator system controller */
> + ap_syscon_base = ioremap(INTEGRATOR_SC_BASE, 0x100);
It seems a shame that this didn't get described in the DT. This hasn't
been fully moved over...
> + if (!ap_syscon_base) {
> + dev_err(&pdev->dev, "unable to remap the AP syscon for PCIv3\n");
> + return -ENODEV;
> + }
> +
> + /* Device tree probe path */
> + if (!np) {
> + dev_err(&pdev->dev, "no device tree node for PCIv3\n");
> + return -ENODEV;
> + }
We didn't unmap the syscon registers, yet we mapped them here. Either
we've got a useless mapping, or we're mapping it from the wrong block of
code...
Cheers,
Mark.
next prev parent reply other threads:[~2013-10-08 9:51 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-10-03 16:03 [PATCH 3/6] ARM: integrator: delete non-devicetree boot path Linus Walleij
2013-10-08 9:51 ` Mark Rutland [this message]
2013-10-10 14:22 ` Linus Walleij
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=20131008095148.GD28972@e106331-lin.cambridge.arm.com \
--to=mark.rutland@arm.com \
--cc=linux-arm-kernel@lists.infradead.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).