[PATCH v4 36/58] mtd: rawnand: renesas: retain open-handle state on removal
Wolfram Sang
wsa+renesas at sang-engineering.com
Fri Nov 13 12:01:00 PST 2026
On Fri, Nov 13, 2026 at 11:14:52AM -0700, James Hilliard wrote:
> Keep chip metadata and controller storage alive until the final MTD
> reference is released. Unregister and disconnect each published chip
> before releasing the resources used by its hardware operations.
>
> Disconnect all chips before dropping runtime PM and transfer buffers.
>
> Run NAND cleanup during disconnection; the final core-owned put only
> releases retained allocation and layout data.
>
> Cc: linux-renesas-soc at vger.kernel.org
> Signed-off-by: James Hilliard <james.hilliard1 at gmail.com>
>From what I understood from the coverletter, this seems valid.
Acked-by: Wolfram Sang <wsa+renesas at sang-engineering.com>
@Miquel: can you test it? My RZ/N1 board doesn't have NAND.
More information about the linux-mtd
mailing list