Re: [PATCH] mtd: rawnand: atmel: Release the HSMC clock on legacy init failure
From: Miquel Raynal
Date: Tue Nov 17 2026 - 09:23:36 EST
On Tue, 03 Nov 2026 10:06:02 +0000, Wentao Liang wrote:
> When atmel_hsmc_nand_controller_legacy_init() fails after acquiring the
> NFC clock with of_clk_get(), the error paths return without dropping the
> clock reference. For failures after clk_prepare_enable(), the clock is
> also left enabled. The caller returns the error without running the
> controller removal path, so the reference and the enable count are both
> leaked.
>
> [...]
Applied to nand/next, thanks!
[1/1] mtd: rawnand: atmel: Release the HSMC clock on legacy init failure
commit: 85dc1b1e3bf5d299fc3531dfa9ee8473bcfc075e
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