From: Rob Herring <robherring2@gmail.com>
To: Gregory CLEMENT <gregory.clement@free-electrons.com>
Cc: "Mark Rutland" <mark.rutland@arm.com>,
"Andrew Lunn" <andrew@lunn.ch>,
"linux-doc@vger.kernel.org" <linux-doc@vger.kernel.org>,
"Thierry Reding" <thierry.reding@gmail.com>,
"Heiko Stübner" <heiko.stuebner@bq.com>,
"Russell King - ARM Linux" <linux@arm.linux.org.uk>,
"Arnd Bergmann" <arnd@arndb.de>,
"Daniel Lezcano" <daniel.lezcano@linaro.org>,
"linux-arm-kernel@lists.infradead.org"
<linux-arm-kernel@lists.infradead.org>,
"Florian Vaussard" <florian.vaussard@epfl.ch>,
"Sebastian Hesselbarth" <sebastian.hesselbarth@gmail.com>,
"devicetree@vger.kernel.org" <devicetree@vger.kernel.org>,
"Jason Cooper" <jason@lakedaemon.net>,
"Pawel Moll" <pawel.moll@arm.com>,
"Ian Campbell" <ijc+devicetree@hellion.org.uk>,
"Marc Zyngier" <marc.zyngier@arm.com>,
"Rob Herring" <robh+dt@kernel.org>,
"Matthias Brugger" <matthias.bgg@gmail.com>,
"Thomas Gleixner" <tglx@linutronix.de>
Subject: Re: [PATCH v6 1/6] clocksource: Add support for the Mediatek SoCs
Date: Wed, 4 Jun 2014 08:52:42 -0500 [thread overview]
Message-ID: <CAL_JsqJGMDNKwJ7M5-mtbbKTa434=pXUTfYZH39Tja0LwJO7_A@mail.gmail.com> (raw)
In-Reply-To: <538F0230.7090800@free-electrons.com>
On Wed, Jun 4, 2014 at 6:25 AM, Gregory CLEMENT
<gregory.clement@free-electrons.com> wrote:
> Hi Rob,
>
> On 04/06/2014 13:18, Rob Herring wrote:
>
> [...]
>
>>> +
>>> + if (of_address_to_resource(node, 0, &res))
>>> + panic("Failed to parse resource\n");
>>
>> panics are a bit pointless at this stage since your console is
>> typically not up yet. Warning and continuing on with boot gives you a
>> better shot at actually seeing the message.
>>
>>> +
>>> + if (!request_mem_region(res.start, resource_size(&res), "mtk-timer"))
>>> + panic("Registers are a busy IO resource");
>>> +
>>> + evt->gpt_base = ioremap(res.start, resource_size(&res));
>>
>> of_iomap instead of these 3 calls.
>
> Actually of_iomap doesn't request_mem_region, that's why for
> mvebu we are trying now to replace of_iomap by request_mem_region/ioremap.
Then perhaps we should add of_iomap_resource which does both. It could
possibly be added into of_iomap, but we'd have to ignore any failures
due to overlapping regions.
Rob
next prev parent reply other threads:[~2014-06-04 13:52 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-05-30 16:55 [PATCH v6 0/6] arm: Add basic support for Mediatek Cortex-A7 SoCs Matthias Brugger
[not found] ` <1401468964-5307-1-git-send-email-matthias.bgg-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2014-05-30 16:55 ` [PATCH v6 1/6] clocksource: Add support for the Mediatek SoCs Matthias Brugger
2014-06-04 11:18 ` Rob Herring
2014-06-04 11:25 ` Gregory CLEMENT
2014-06-04 13:46 ` Thomas Gleixner
2014-06-04 13:52 ` Rob Herring [this message]
2014-05-30 16:56 ` [PATCH v6 2/6] dt-bindings: add mtk-timer bindings Matthias Brugger
2014-06-04 11:05 ` Rob Herring
2014-05-30 16:56 ` [PATCH v6 3/6] vendor-prefixes: add prefix for Mediaktek Inc Matthias Brugger
2014-06-04 11:06 ` Rob Herring
2014-05-30 16:56 ` [PATCH v6 4/6] arm: add basic support for Mediatek MT6589 boards Matthias Brugger
2014-05-30 16:56 ` [PATCH v6 5/6] dt-bindings: add documentation for Mediatek SoC Matthias Brugger
2014-06-03 12:51 ` Rob Herring
2014-06-05 10:26 ` Matthias Brugger
2014-05-30 16:56 ` [PATCH v6 6/6] arm: mediatek: add dts for Aquaris5 mobile phone Matthias Brugger
2014-06-03 12:48 ` [PATCH v6 0/6] arm: Add basic support for Mediatek Cortex-A7 SoCs Daniel Lezcano
2014-06-03 13:15 ` Matthias Brugger
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='CAL_JsqJGMDNKwJ7M5-mtbbKTa434=pXUTfYZH39Tja0LwJO7_A@mail.gmail.com' \
--to=robherring2@gmail.com \
--cc=andrew@lunn.ch \
--cc=arnd@arndb.de \
--cc=daniel.lezcano@linaro.org \
--cc=devicetree@vger.kernel.org \
--cc=florian.vaussard@epfl.ch \
--cc=gregory.clement@free-electrons.com \
--cc=heiko.stuebner@bq.com \
--cc=ijc+devicetree@hellion.org.uk \
--cc=jason@lakedaemon.net \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-doc@vger.kernel.org \
--cc=linux@arm.linux.org.uk \
--cc=marc.zyngier@arm.com \
--cc=mark.rutland@arm.com \
--cc=matthias.bgg@gmail.com \
--cc=pawel.moll@arm.com \
--cc=robh+dt@kernel.org \
--cc=sebastian.hesselbarth@gmail.com \
--cc=tglx@linutronix.de \
--cc=thierry.reding@gmail.com \
/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).