Watch
1
0
Fork
You've already forked kernel_a52xq
0
mirror of https://github.com/a52xq-dev/kernel.git synced 2026-11-22 01:46:57 +07:00
kernel_a52xq/drivers/mtd/nand/raw
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Boris Brezillon 782d1967d0 mtd: rawnand: Do not check FAIL bit when executing a SET_FEATURES op
The ONFI spec clearly says that FAIL bit is only valid for PROGRAM,
ERASE and READ-with-on-die-ECC operations, and should be ignored
otherwise.

It seems that checking it after sending a SET_FEATURES is a bad idea
because a previous READ, PROGRAM or ERASE op may have failed, and
depending on the implementation, the FAIL bit is not cleared until a
new READ, PROGRAM or ERASE is started.

This leads to ->set_features() returning -EIO while it actually worked,
which can sometimes stop a batch of READ/PROGRAM ops.

Note that we only fix the ->exec_op() path here, because some drivers
are abusing the NAND_STATUS_FAIL flag in their ->waitfunc()
implementation to propagate other kind of errors, like
wait-ready-timeout or controller-related errors. Let's not try to fix
those drivers since they worked fine so far.

Fixes: 8878b126df ("mtd: nand: add ->exec_op() implementation")
Cc: stable@vger.kernel.org
Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com>
Acked-by: Miquel Raynal <miquel.raynal@bootlin.com>
2018-05-15 22:58:07 +02:00
..
atmel MTD changes: 2018-04-06 12:15:41 -07:00
bcm47xxnflash mtd: rawnand: rename SET/GET FEATURES related functions 2018-03-20 09:33:22 +01:00
brcmnand mtd: rawnand: brcmnand: fix probe function error path 2018-03-29 09:38:18 +02:00
gpmi-nand mtd: rawnand: gpmi: remove unnecessary variables 2018-04-29 08:56:48 +02:00
ams-delta.c
au1550nd.c
cafe_nand.c mtd: rawnand: cafe: fix probe function error path 2018-03-29 09:38:18 +02:00
cmx270_nand.c
cs553x_nand.c
davinci_nand.c mtd: rawnand: davinci: don't acquire and enable clock 2018-04-26 19:55:40 +02:00
denali.c mtd: rawnand: denali: fix probe function error path 2018-03-29 09:38:19 +02:00
denali.h
denali_dt.c
denali_pci.c
diskonchip.c mtd: rawnand: diskonchip: Replace mdelay with usleep_range in doc_probe 2018-04-29 08:56:41 +02:00
docg4.c mtd: rawnand: rename SET/GET FEATURES related functions 2018-03-20 09:33:22 +01:00
fsl_elbc_nand.c mtd: rawnand: fsl_elbc: fix probe function error path 2018-04-29 08:56:42 +02:00
fsl_ifc_nand.c mtd: rawnand: fsl_ifc: fix FSL NAND driver to read all ONFI parameter pages 2018-05-09 16:04:21 +02:00
fsl_upm.c
fsmc_nand.c mtd: rawnand: fsmc: fix the probe function error path 2018-04-29 08:56:43 +02:00
gpio.c
hisi504_nand.c mtd: rawnand: hisi504: fix the probe function error path 2018-04-29 08:56:44 +02:00
jz4740_nand.c
jz4780_bch.c
jz4780_bch.h
jz4780_nand.c
Kconfig Linux 4.16-rc2 2018-04-04 22:13:35 +02:00
lpc32xx_mlc.c mtd: rawnand: lpc32xx_mlc: fix the probe function error path 2018-04-29 08:56:45 +02:00
lpc32xx_slc.c mtd: rawnand: lpc32xx_slc: fix the probe function error path 2018-04-29 08:56:46 +02:00
Makefile mtd: rawnand: remove bf5xx_nand driver 2018-03-17 15:35:32 +01:00
marvell_nand.c mtd: rawnand: marvell: Rename ->ecc_clk into ->core_clk 2018-03-29 09:38:21 +02:00
mpc5121_nfc.c mtd: rawnand: rename SET/GET FEATURES related functions 2018-03-20 09:33:22 +01:00
mtk_ecc.c mtd: rawnand: mtk: use of_device_get_match_data() 2018-04-29 08:56:41 +02:00
mtk_ecc.h
mtk_nand.c mtd: rawnand: mtk: use of_device_get_match_data() 2018-04-29 08:56:41 +02:00
mxc_nand.c mtd: rawnand: mxc: fix probe function error path 2018-03-29 09:38:19 +02:00
nand_amd.c
nand_base.c mtd: rawnand: Do not check FAIL bit when executing a SET_FEATURES op 2018-05-15 22:58:07 +02:00
nand_bbt.c Core changes: 2018-04-04 22:11:36 +02:00
nand_bch.c
nand_ecc.c mtd: rawnand: remove STANDALONE compile mode of nand_ecc 2018-03-15 16:42:33 +01:00
nand_hynix.c
nand_ids.c
nand_macronix.c mtd: rawnand: macronix: nack the support of changing timings for one chip 2018-03-20 11:59:58 +01:00
nand_micron.c mtd: rawnand: allow vendors to declare (un)supported features 2018-03-20 11:59:58 +01:00
nand_samsung.c
nand_timings.c mtd: rawnand: prepare the removal of the ONFI parameter page 2018-03-20 11:59:54 +01:00
nand_toshiba.c
nandsim.c
ndfc.c
nuc900_nand.c
omap2.c mtd: rawnand: omap2: fix the probe function error path 2018-03-29 09:38:20 +02:00
omap_elm.c
orion_nand.c
oxnas_nand.c
pasemi_nand.c
plat_nand.c
qcom_nandc.c mtd: rawnand: rename SET/GET FEATURES related functions 2018-03-20 09:33:22 +01:00
r852.c
r852.h
s3c2410.c mtd: rawnand: s3c2410: enhance the probe function error path 2018-03-29 09:38:21 +02:00
sh_flctl.c mtd: rawnand: sh_flctl: fix the probe function error path 2018-03-29 09:38:20 +02:00
sharpsl.c
sm_common.c
sm_common.h
socrates_nand.c
sunxi_nand.c mtd: rawnand: sunxi: Remove support for GPIO-based Ready/Busy polling 2018-04-29 08:56:41 +02:00
tango_nand.c mtd: rawnand: tango: fix probe function error path 2018-03-29 09:38:20 +02:00
tmio_nand.c
txx9ndfmc.c
vf610_nfc.c Linux 4.16-rc2 2018-04-04 22:13:35 +02:00
xway_nand.c