[PATCHv2] mtd: rawnand: ndfc: use devm_platform_ioremap_resource()

Miquel Raynal miquel.raynal at bootlin.com
Fri Sep 4 11:09:07 PDT 2026


On Mon, 24 Aug 2026 13:21:20 -0700, Rosen Penev wrote:
> Replace the open-coded of_iomap()/iounmap() with the managed
> devm_platform_ioremap_resource() helper. This fixes a mapping leak on
> driver remove (the old code never called iounmap()) and simplifies the
> error path by dropping the manual cleanup in ndfc_probe().
> 
> There is no overlapping memory-region concern introduced by this
> change: each supported board DT describes a single ndfc node with a
> unique 0x2000 register region, and the EBC parent uses dcr-reg rather
> than a MEM reg resource, so the newly added request_mem_region() cannot
> conflict with an existing reservation. Distinct chip selects map to
> distinct 64-bit physical addresses, so CS instances do not overlap.
> 
> [...]

Applied to nand/next, thanks!

[1/1] mtd: rawnand: ndfc: use devm_platform_ioremap_resource()
      commit: 0d66f9895f286d2fab396a71e6efeb95c4a7e5a6

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




More information about the linux-mtd mailing list