Thread (1 message) 1 message, 1 author, 2013-05-28

Re: [RFC] [PATCH 0/3] of: allow to support irq domain register as platform_device for platform_device

From: Arnd Bergmann <hidden>
Date: 2013-05-28 15:41:33

On Tuesday 28 May 2013, Jean-Christophe PLAGNIOL-VILLARD wrote:
        Today in the current of implementation we populate all the ressources
        at of_platform_populate time. But this leed to a chicken-egg dilemat
        some the irq present in DT are from platform_device too. And you can
        not resolve them as of_platform_populate. So delay the populate of irq
        at platform_drv_probe.
I like it a lot, thanks for doing this!

Obviously this needs to be tested well on all architectures, but I think
it's the right solution for the problem. I was originally thinking we'd
just allocated the resources dynamically using devm_kmalloc in
platform_drv_probe, but your solution to preallocate them at boot
time seems nicer.

I believe we still need the same patch for the amba bus, and possibly
a couple more, but platform_bus covers most of the interesting cases.

	Arnd
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help