Thread (17 messages) 17 messages, 5 authors, 2014-06-05

Re: [PATCH v6 1/6] clocksource: Add support for the Mediatek SoCs

From: Gregory CLEMENT <hidden>
Date: 2014-06-04 11:25:36
Also in: linux-arm-kernel

Hi Rob,

On 04/06/2014 13:18, Rob Herring wrote:

[...]
quoted
+
+       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.
quoted
+
+       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.

-- 
Gregory Clement, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help