Re: [PATCH] mtd: nand: ecc-mtk: handle ECC clock enable failures
From: Miquel Raynal
Date: Mon Jun 29 2026 - 10:54:00 EST
On Mon, 15 Jun 2026 14:32:32 +0800, Pengpeng Hou wrote:
> mtk_ecc_get() gets a reference to the ECC platform device, obtains the
> provider state and then enables the ECC clock before initializing the
> hardware.
>
> The clk_prepare_enable() return value is currently ignored. If enabling
> the clock fails, the code still touches the ECC registers and returns a
> live ECC handle to the caller. The provider device reference acquired
> by of_find_device_by_node() is also kept even though the handle setup
> failed.
>
> [...]
Applied to mtd/fixes, thanks!
[1/1] mtd: nand: ecc-mtk: handle ECC clock enable failures
commit: 82d9a2b45b170f0c52ac61e0e3e23f212cd065f0
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