Re: [PATCH 0/2] mtd: rawnand: fix GPIO CS descriptor leaks

From: Miquel Raynal

Date: Thu Nov 19 2026 - 07:37:35 EST


On Mon, 09 Nov 2026 13:27:22 +0800, Zhao Feng wrote:
> Two related fixes for GPIO chip-select descriptor leaks in the raw
> NAND core helper and its in-tree user, the Arasan controller driver:
>
> - patch 1 rolls back the already-acquired GPIO descriptors when
> rawnand_dt_parse_gpio_cs() fails midway through the cs-gpios array;
> - patch 2 releases the parsed CS array on the arasan probe error
> paths (invalid DT layout and anfc_chips_init() failure), factoring
> the remove-time gpiod_put() loop into a shared helper.
>
> [...]

Applied to nand/next, thanks!

[1/2] mtd: rawnand: parse GPIO CS with devm_gpiod_get_index_optional()
commit: 8abc246c1ff1f4bcfc6a452c4554f556e20b1115
[2/2] mtd: rawnand: arasan: drop manual GPIO CS release
commit: a61cb2eba21b897cb5ea2ea46701fcb5b7654ad8

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