Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1383077

Re: [PATCH 2/3] ARM: pxa: add pxa25x device-tree support

Path csiph.com!goblin2!goblin.stu.neva.ru!gothmog.csi.it!bofh.it!news.nic.it!robomod
From Robert Jarzmik <robert.jarzmik@free.fr>
Newsgroups linux.kernel
Subject Re: [PATCH 2/3] ARM: pxa: add pxa25x device-tree support
Date Wed, 20 Apr 2016 08:40:02 +0200
Message-ID <rpTXQ-3o7-5@gated-at.bofh.it> (permalink)
References <rmtnb-1ww-3@gated-at.bofh.it> <rmtnb-1ww-1@gated-at.bofh.it> <roWO6-6uI-9@gated-at.bofh.it>
X-Original-To Arnd Bergmann <arnd@arndb.de>
X-Me-Helo belgarion
X-Me-Auth amFyem1pay5yb2JlcnRAb3JhbmdlLmZy
X-Me-Date Wed, 20 Apr 2016 08:37:29 +0200
X-Me-IP 109.222.118.156
X-URL http://belgarath.falguerolles.org/
User-Agent Gnus/5.130008 (Ma Gnus v0.8) Emacs/24.4 (gnu/linux)
MIME-Version 1.0
Content-Type text/plain
Sender robomod@news.nic.it
List-ID <linux-kernel.vger.kernel.org>
X-Mailing-List linux-kernel@vger.kernel.org
Approved robomod@news.nic.it
Lines 50
Organization linux.* mail to news gateway
X-Original-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
X-Original-Date Wed, 20 Apr 2016 08:37:26 +0200
X-Original-Message-ID <871t60u6op.fsf@belgarion.home>
X-Original-References <1460316600-15978-1-git-send-email-robert.jarzmik@free.fr> <1460316600-15978-2-git-send-email-robert.jarzmik@free.fr> <5954693.SgGqqDgWJO@wuerfel>
X-Original-Sender linux-kernel-owner@vger.kernel.org
Xref csiph.com linux.kernel:1383077

Show key headers only | View raw


Arnd Bergmann <arnd@arndb.de> writes:

> 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.
Okay, that sounds good, I'll add it to my todo list.
I seem to remember some legacy driver relying on one of these mapping (cpufreq
for pxa relying on memory controller maybe ...), but that's a fix easy enough to
queue. Let's hope I'm not bitten by something else.

> - 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.
Okay, I'll verify that, especially that the ordering is ensured, ie. that
interrupts are available at the same time that when it was the machine code
calling the irq init, and that's also going to my todo list.

>
> - 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
I think most of the required stuff is already done. The only remaining part is
the reset status clearing specific to pxa, which as you said would ask for a
very tiny driver.

As soon as I'm done with the ac97 rework and if no v4l2 pressure is applied to
pxa, I'll work on this and the MMP to pinctrl conversion.

Thanks for the comments, and cheers.

--
Robert

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

Re: [PATCH 2/3] ARM: pxa: add pxa25x device-tree support Arnd Bergmann <arnd@arndb.de> - 2016-04-17 17:30 +0200
  Re: [PATCH 2/3] ARM: pxa: add pxa25x device-tree support Robert Jarzmik <robert.jarzmik@free.fr> - 2016-04-20 08:40 +0200

csiph-web