On Mon, 2024-01-08 at 10:37 +0100, Uwe Kleine-König wrote: > Hello Philipp, > > the Subject is incomprehensible (to me). Maybe make it: > > platform_device: Add devm function to simplify mem and io > requests > > ? > > On Mon, Jan 08, 2024 at 10:20:42AM +0100, Philipp Stanner wrote: > > Some drivers want to use (request) a region exclusively but > > nevertheless > > create several mappings within that region. > > > > Currently, there is no managed devres function to request a region > > without mapping it. > > > > Add the function devm_platform_get_resource(). > ^ > Still the old function name -' ACK. Monday morning... > > Other than that I indifferent if this is a good idea. There are so > many > helpers around these functions ... Around which, the devres functions in general? There are, but that's kind of the point, unless we'd want everyone to call into the lowest level region-request functions with their own devres callbacks. In any case: What would your suggestion be, should parties who can't (without restructuring very large parts of their code) ioremap() and request() simultaneously just not use devres? See my patch #2 Or is there another way to reach that goal that I'm not aware of? P. > > Best regards > Uwe > > >