mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Miquel Raynal <miquel.raynal@bootlin.com>
To: linux-mtd@lists.infradead.org, Rosen Penev <rosenp@gmail.com>
Cc: Robert Jarzmik <robert.jarzmik@free.fr>,
	 Richard Weinberger <richard@nod.at>,
	Vignesh Raghavendra <vigneshr@ti.com>,
	 Nathan Chancellor <nathan@kernel.org>,
	 Nick Desaulniers <ndesaulniers@google.com>,
	 Bill Wendling <morbo@google.com>,
	Justin Stitt <justinstitt@google.com>,
	 linux-kernel@vger.kernel.org, llvm@lists.linux.dev
Subject: Re: [PATCH] mtd: docg3: use devm_platform_ioremap_resource()
Date: Wed, 09 Sep 2026 09:55:53 +0200	[thread overview]
Message-ID: <178894055366.2043044.18327879742122474927.b4-ty@bootlin.com> (raw)
In-Reply-To: <20260907004910.226013-1-rosenp@gmail.com>

On Sun, 06 Sep 2026 17:49:10 -0700, Rosen Penev wrote:
> Replace the open-coded platform_get_resource(IORESOURCE_MEM, 0) plus
> devm_ioremap() sequence with devm_platform_ioremap_resource(), which folds
> the resource lookup, region reservation and mapping into one step and
> returns an ERR_PTR checked with IS_ERR()/PTR_ERR().
> 
> The canonical docg3 register window is DOC_IOSPACE_SIZE (0x2000), which is
> the size any platform provides for this device, so mapping the full
> resource is equivalent to the previous fixed-size devm_ioremap().
> 
> [...]

Applied to mtd/next, thanks!

[1/1] mtd: docg3: use devm_platform_ioremap_resource()
      commit: 8fcbb04ee5152b303980b2b48d69c6f7f4094ca6

Patche(s) should be available on mtd/linux.git and will be
part of the next PR (provided that no robot complains by then).

Kind regards,
Miquèl


      reply	other threads:[~2026-09-09  7:55 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-09-07  0:49 Rosen Penev
2026-09-09  7:55 ` Miquel Raynal [this message]

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:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

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

  git send-email \
    --in-reply-to=178894055366.2043044.18327879742122474927.b4-ty@bootlin.com \
    --to=miquel.raynal@bootlin.com \
    --cc=justinstitt@google.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mtd@lists.infradead.org \
    --cc=llvm@lists.linux.dev \
    --cc=morbo@google.com \
    --cc=nathan@kernel.org \
    --cc=ndesaulniers@google.com \
    --cc=richard@nod.at \
    --cc=robert.jarzmik@free.fr \
    --cc=rosenp@gmail.com \
    --cc=vigneshr@ti.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®