Hi all,

I have a few questions regarding the implementation of the of_iomap() function.

As it currently stands, the function parses the device tree for the device's address and then simply calls ioremap() with that address and the associated size.

The first question that has come up is why of_iomap() doesn't also call request_mem_region()? Is there a particular reason for it or has it just not yet been implemented?

The second question is regarding the use of devres in of_iomap(). Would it make sense for of_iomap() to use devm_ioremap() or, better yet, devm_request_and_ioremap() instead of simply calling ioremap()?

Thanks,
-Markus

_______________________________________________
devicetree-discuss mailing list
[email protected]
https://lists.ozlabs.org/listinfo/devicetree-discuss

Reply via email to