Re: [PATCH] mtd: rawnand: gpmi: fix probe error path when CONFIG_PM=N
From: Miquel Raynal
Date: Fri Dec 04 2026 - 16:34:18 EST
On Thu, 26 Nov 2026 21:32:39 +0800, Yige Jiang wrote:
> With CONFIG_PM disabled, gpmi_nand_probe() enables the clocks by hand
> and gpmi_nand_remove() disables them again, but the probe error path
> was not updated to match:
>
> - if gpmi_init() or gpmi_nand_init() fails, exit_nfc_init releases the
> DMA channel but leaves the clocks prepared and enabled, so every
> failed probe attempt adds another enable count;
> - if gpmi_enable_clk() fails, the jump to exit_acquire_resources skips
> release_resources(), so the DMA channel taken by acquire_resources()
> is never released.
>
> [...]
Applied to nand/next, thanks!
[1/1] mtd: rawnand: gpmi: fix probe error path when CONFIG_PM=N
commit: 04b9a8f1a110fc5043d19ac15cfac90f6d3bd9b2
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