Re: [PATCH] mtd: nand: mtk-ecc: stop on ECC idle timeouts
From: Miquel Raynal <miquel.raynal@bootlin.com>
Date: 2026-06-23 14:08:53
Also in:
linux-mediatek, lkml
From: Miquel Raynal <miquel.raynal@bootlin.com>
Date: 2026-06-23 14:08:53
Also in:
linux-mediatek, lkml
Hello,
diff --git a/drivers/mtd/nand/ecc-mtk.c b/drivers/mtd/nand/ecc-mtk.c index c75bb8b80..96703f0a4 100644 --- a/drivers/mtd/nand/ecc-mtk.c +++ b/drivers/mtd/nand/ecc-mtk.c@@ -123,8 +123,8 @@ static int mt7622_ecc_regs[] = { [ECC_DECIRQ_STA] = 0x144, }; -static inline void mtk_ecc_wait_idle(struct mtk_ecc *ecc, - enum mtk_ecc_operation op) +static inline int mtk_ecc_wait_idle(struct mtk_ecc *ecc, + enum mtk_ecc_operation op)
Looks good, but could you follow up with a patch which removes the inline keyword as well? It does not seem to serve any purpose there.