diff options
| author | Pengpeng Hou <pengpeng@iscas.ac.cn> | 2026-07-03 15:42:33 +0800 |
|---|---|---|
| committer | Miquel Raynal <miquel.raynal@bootlin.com> | 2026-07-03 15:46:05 +0200 |
| commit | f9a13e05a327080c3a1c8165adf9e678fb68fef2 (patch) | |
| tree | 3febff9656abbd9847a4f5b38426990898f7daa4 /Documentation/tty/git@git.tavy.me:linux.git | |
| parent | d322e40f4edf92bf0ca329e5aa4ae1c0316feb38 (diff) | |
mtd: rawnand: fsl_ifc: return errors for failed page reads
fsl_ifc_run_command() logs controller timeout and other non-OPC
completion states in ctrl->nand_stat. fsl_ifc_read_page() then only
increments the ECC failure counter for non-OPC status and still returns
max_bitflips, which can be zero.
Return -ETIMEDOUT when the command did not complete at all and -EIO for
other non-OPC read completions so the NAND core does not treat a failed
page read as a clean page.
Fixes: 82771882d960 ("NAND Machine support for Integrated Flash Controller")
Cc: stable@vger.kernel.org
Signed-off-by: Pengpeng Hou <pengpeng@iscas.ac.cn>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Diffstat (limited to 'Documentation/tty/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions
