Re: [PATCH v4 36/58] mtd: rawnand: renesas: retain open-handle state on removal

From: Wolfram Sang

Date: Fri Nov 13 2026 - 15:03:13 EST


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@xxxxxxxxxxxxxxx
> Signed-off-by: James Hilliard <james.hilliard1@xxxxxxxxx>

>From what I understood from the coverletter, this seems valid.

Acked-by: Wolfram Sang <wsa+renesas@xxxxxxxxxxxxxxxxxxxx>

@Miquel: can you test it? My RZ/N1 board doesn't have NAND.