From: Arnd Bergmann <arnd@arndb.de>
To: Robert Jarzmik <robert.jarzmik@free.fr>
Cc: Daniel Mack <daniel@zonque.org>,
Haojian Zhuang <haojian.zhuang@gmail.com>,
Rob Herring <robh+dt@kernel.org>, Pawel Moll <pawel.moll@arm.com>,
Mark Rutland <mark.rutland@arm.com>,
Ian Campbell <ijc+devicetree@hellion.org.uk>,
Kumar Gala <galak@codeaurora.org>,
linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH 2/3] ARM: pxa: add pxa25x device-tree support
Date: Sun, 17 Apr 2016 17:24:12 +0200 [thread overview]
Message-ID: <5954693.SgGqqDgWJO@wuerfel> (raw)
In-Reply-To: <1460316600-15978-2-git-send-email-robert.jarzmik@free.fr>
On Sunday 10 April 2016 21:29:59 Robert Jarzmik wrote:
> +
> +DT_MACHINE_START(PXA_DT, "Marvell PXA3xx (Device Tree Support)")
> + .map_io = pxa3xx_map_io,
> + .init_irq = pxa3xx_dt_init_irq,
> + .handle_irq = pxa3xx_handle_irq,
> + .restart = pxa_restart,
> + .dt_compat = pxa3xx_dt_board_compat,
> +MACHINE_END
>
Nothing wrong with your series, it's a straightforward continuation of what
you have for the other platforms, but I have a few comments on the method
overall, and it might be good if you could work on improving those next,
basically eliminating most of the machine descriptor contents in the long
run:
- It would be nice not to call map_io() at all and instead ensure that all
drivers that have DT bindings use ioremap. The main reason for this is
that relying on the hardwired mapping makes it easy to get things wrong
in the bindings, by leaving out required memory ranges.
- The init_irq()/handle_irq() callbacks can probably be replaced with
a IRQCHIP_DECLARE() statement per irqchip variant, which then goes
on to initialize the controller and set the handler.
- The restart method is the least important here, but I guess we can
convert that into a driver, or use an existing one from DT, like
drivers/power/reset/gpio-restart.c
Arnd
next prev parent reply other threads:[~2016-04-17 15:24 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-04-10 19:29 [PATCH 1/3] ARM: pxa: prepare pxa25x interrupts for device-tree platforms Robert Jarzmik
2016-04-10 19:29 ` [PATCH 2/3] ARM: pxa: add pxa25x device-tree support Robert Jarzmik
2016-04-17 15:24 ` Arnd Bergmann [this message]
2016-04-20 6:37 ` Robert Jarzmik
[not found] ` <1460316600-15978-1-git-send-email-robert.jarzmik-GANU6spQydw@public.gmane.org>
2016-04-10 19:30 ` [PATCH 3/3] ARM: dts: add pxa25x .dtsi file Robert Jarzmik
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=5954693.SgGqqDgWJO@wuerfel \
--to=arnd@arndb.de \
--cc=daniel@zonque.org \
--cc=devicetree@vger.kernel.org \
--cc=galak@codeaurora.org \
--cc=haojian.zhuang@gmail.com \
--cc=ijc+devicetree@hellion.org.uk \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mark.rutland@arm.com \
--cc=pawel.moll@arm.com \
--cc=robert.jarzmik@free.fr \
--cc=robh+dt@kernel.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