linux/drivers/mtd/nand/raw/ingenic
Pengpeng Hou 1a8b2951ba mtd: rawnand: ingenic: handle ECC clock enable failures
ingenic_ecc_get() obtains a provider device reference and then enables
the ECC clock before returning the ECC handle.

The clk_prepare_enable() return value is currently ignored.  If enabling
the clock fails, the function still returns the ECC handle and keeps the
provider device reference even though the acquire operation did not
complete.

Return the clock enable error and drop the provider device reference on
that failure path.

Signed-off-by: Pengpeng Hou <pengpeng@iscas.ac.cn>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
2026-06-29 16:39:14 +02:00
..
ingenic_ecc.c mtd: rawnand: ingenic: handle ECC clock enable failures 2026-06-29 16:39:14 +02:00
ingenic_ecc.h mtd: rawnand: ingenic: fix empty stub helper definitions 2023-05-26 19:40:32 +02:00
ingenic_nand_drv.c mtd: rawnand: ingenic: Simplify with scoped for each OF child loop 2026-01-19 11:13:43 +01:00
jz4725b_bch.c mtd: Convert fallthrough comments into statements 2020-03-30 10:14:54 +02:00
jz4740_ecc.c mtd: rawnand: ingenic: cleanup ARRAY_SIZE() vs sizeof() use 2020-07-07 20:44:43 +02:00
jz4780_bch.c mtd: Fix misuses of of_match_ptr() 2022-01-31 17:18:03 +01:00
Kconfig mtd: rawnand: ingenic: Add dependency on MIPS || COMPILE_TEST 2020-03-11 16:17:55 +01:00
Makefile mtd: rawnand: Drop obsolete JZ4740 NAND driver 2019-07-30 10:41:54 -07:00