of_iomap() and devres questions
Markus Mayer
mmayer at broadcom.com
Wed Apr 3 06:25:59 EST 2013
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
More information about the devicetree-discuss
mailing list