archive mirror
 help / color / mirror / Atom feed
From: Linus Walleij <>
To: Benjamin Herrenschmidt <>
Cc: OpenBMC Maillist <>,,
	 "" <>,
	Greg KH <>,
	Andrew Jeffery <>
Subject: Re: [RFC PATCH 01/14] devres: Add devm_of_iomap()
Date: Fri, 29 Jun 2018 11:14:47 +0200	[thread overview]
Message-ID: <> (raw)
In-Reply-To: <>

On Fri, Jun 22, 2018 at 6:31 AM Benjamin Herrenschmidt
<> wrote:

> There are still quite a few cases where a device might want
> to get to a different node of the device-tree, obtain the
> resources and map them.
> We have of_iomap() and of_io_request_and_map() but they both
> have shortcomings, such as not returning the size of the
> resource found (which can be useful) and not being "managed".
> This adds a devm_of_iomap() that provides all of these and
> should probably replace uses of the above in most drivers.
> Signed-off-by: Benjamin Herrenschmidt <>

Ugh I just feel I have seen homecooked solutions to this problem
a few times :/

I wonder if it is easy to find these cases and replace them with
this neat function...

Thanks for doing this.
Reviewed-by: Linus Walleij <>

Linus Walleij

  reply	other threads:[~2018-06-29  9:15 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-06-22  4:31 [RFC PATCH 00/14] fsi: Fixes and Coldfire coprocessor offload Benjamin Herrenschmidt
2018-06-22  4:31 ` [RFC PATCH 01/14] devres: Add devm_of_iomap() Benjamin Herrenschmidt
2018-06-29  9:14   ` Linus Walleij [this message]
2018-06-29 20:27     ` Andy Shevchenko
2018-06-30  1:06       ` Benjamin Herrenschmidt
2018-06-22  4:31 ` [RFC PATCH 02/14] fsi: Move code around to avoid forward declaration Benjamin Herrenschmidt

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \ \ \ \ \ \ \ \ \ \
    --subject='Re: [RFC PATCH 01/14] devres: Add devm_of_iomap()' \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).