linux-stable/drivers/mtd/nand/raw
Miquel Raynal 415ae78ffb mtd: rawnand: check ONFI timings have been acked by the chip
Choosing ONFI timings when ->set/get_features() calls are supported
by the NAND chip is a matter of reading the chip's ONFI parameter page
and telling the chip the chosen mode (between all of the supported ones)
with ->set_feature().

Add a check on whether the chip "acked" the timing mode or not.

This can be a problem for NAND chips that do not follow entirely the
ONFI specification. These chips actually support other modes than
"mode 0", but either:
1/ do not update the timing mode register once a timing mode has been
   selected.
or
2/ do not support the TIMING_MODE featured and thus do not require users
   to change the timing mode at all.

These issues will be addressed in another patch that will add the
feature to overwrite NAND chips features within the parameter page, from
the NAND chip driver.

Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Tested-by: Han Xu <han.xu@nxp.com>
Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com>
2018-03-20 09:49:41 +01:00
..
atmel
bcm47xxnflash mtd: rawnand: rename SET/GET FEATURES related functions 2018-03-20 09:33:22 +01:00
brcmnand
gpmi-nand mtd: rawnand: use wrappers to call onfi GET/SET_FEATURES 2018-03-20 09:46:02 +01:00
ams-delta.c
au1550nd.c
cafe_nand.c mtd: rawnand: rename SET/GET FEATURES related functions 2018-03-20 09:33:22 +01:00
cmx270_nand.c
cs553x_nand.c
davinci_nand.c
denali.c
denali.h
denali_dt.c
denali_pci.c
diskonchip.c
docg4.c mtd: rawnand: rename SET/GET FEATURES related functions 2018-03-20 09:33:22 +01:00
fsl_elbc_nand.c mtd: rawnand: rename SET/GET FEATURES related functions 2018-03-20 09:33:22 +01:00
fsl_ifc_nand.c mtd: rawnand: rename SET/GET FEATURES related functions 2018-03-20 09:33:22 +01:00
fsl_upm.c
fsmc_nand.c
gpio.c
hisi504_nand.c mtd: rawnand: rename SET/GET FEATURES related functions 2018-03-20 09:33:22 +01:00
jz4740_nand.c
jz4780_bch.c
jz4780_bch.h
jz4780_nand.c
Kconfig mtd: rawnand: makes the Kconfig entry clear when it comes to raw NANDs 2018-03-19 10:53:59 +01:00
lpc32xx_mlc.c
lpc32xx_slc.c
Makefile mtd: rawnand: remove bf5xx_nand driver 2018-03-17 15:35:32 +01:00
marvell_nand.c
mpc5121_nfc.c mtd: rawnand: rename SET/GET FEATURES related functions 2018-03-20 09:33:22 +01:00
mtk_ecc.c
mtk_ecc.h
mtk_nand.c
mxc_nand.c mtd: rawnand: mxc: remove useless checks in GET/SET_FEATURES functions 2018-03-20 09:48:45 +01:00
nand_amd.c
nand_base.c mtd: rawnand: check ONFI timings have been acked by the chip 2018-03-20 09:49:41 +01:00
nand_bbt.c
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
nand_micron.c mtd: rawnand: use wrappers to call onfi GET/SET_FEATURES 2018-03-20 09:46:02 +01:00
nand_samsung.c
nand_timings.c
nand_toshiba.c
nandsim.c
ndfc.c
nuc900_nand.c
omap2.c
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
sh_flctl.c mtd: rawnand: rename SET/GET FEATURES related functions 2018-03-20 09:33:22 +01:00
sharpsl.c
sm_common.c
sm_common.h
socrates_nand.c
sunxi_nand.c
tango_nand.c
tmio_nand.c
txx9ndfmc.c
vf610_nfc.c mtd: rawnand: vf610_nfc: support ONFI SET/GET_FEATURES commands 2018-03-17 15:35:32 +01:00
xway_nand.c