platform_kernel-5.15/drivers/mtd/nand
Maxime Ripard 8dad0386b9 mtd: nand: pxa3xx: Fix PIO FIFO draining
The NDDB register holds the data that are needed by the read and write
commands.

However, during a read PIO access, the datasheet specifies that after each 32
bytes read in that register, when BCH is enabled, we have to make sure that the
RDDREQ bit is set in the NDSR register.

This fixes an issue that was seen on the Armada 385, and presumably other mvebu
SoCs, when a read on a newly erased page would end up in the driver reporting a
timeout from the NAND.

Cc: <stable@vger.kernel.org> # v3.14
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Reviewed-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Acked-by: Ezequiel Garcia <ezequiel.garcia@free-electrons.com>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
2015-02-28 00:53:50 -08:00
..
bcm47xxnflash mtd: nand: bcm47xxnflash: drop owner assignment from platform_drivers 2014-10-20 16:20:58 +02:00
gpmi-nand mtd: nand: gpmi: remove deprecated comment 2014-12-22 12:58:24 -08:00
Kconfig mtd: hisilicon: add a new NAND controller driver for hisilicon hip04 Soc 2015-02-08 00:20:19 -08:00
Makefile mtd: hisilicon: add a new NAND controller driver for hisilicon hip04 Soc 2015-02-08 00:20:19 -08:00
ams-delta.c mtd: nand: ams-delta: fix overwritten mtd_info->owner in initialization 2015-01-15 19:33:03 -08:00
atmel_nand.c mtd: atmel_nand: introduce a new compatible string for sama5d4 chip 2015-01-20 12:47:01 -08:00
atmel_nand_ecc.h mtd: atmel_nand: make PMECC lookup table and offset property optional 2014-11-05 14:44:25 -08:00
atmel_nand_nfc.h mtd: atmel_nand: add NFC status error check 2014-07-21 20:02:01 -07:00
au1550nd.c mtd: nand: drop owner assignment from platform_drivers 2014-10-20 16:20:58 +02:00
bf5xx_nand.c mtd: nand: drop owner assignment from platform_drivers 2014-10-20 16:20:58 +02:00
cafe_nand.c mtd: cafe_nand: drop duplicate .write_page implementation 2014-11-25 23:13:38 -08:00
cmx270_nand.c mtd: cmx270_nand: Remove unnecessary OOM messages 2014-01-03 11:22:29 -08:00
cs553x_nand.c mtd: cs553x_nand: Remove unnecessary OOM messages 2014-01-03 11:22:29 -08:00
davinci_nand.c mtd: nand: drop owner assignment from platform_drivers 2014-10-20 16:20:58 +02:00
denali.c mtd: denali: remove unnecessary stubs 2015-02-05 20:01:09 -08:00
denali.h mtd: denali: fix include guard and license block of denali.h 2014-09-17 23:32:30 -07:00
denali_dt.c mtd: nand: drop owner assignment from platform_drivers 2014-10-20 16:20:58 +02:00
denali_pci.c mtd: denali: Drop print of build date/time 2014-01-09 08:52:48 -08:00
diskonchip.c mtd: diskonchip: mem resource name is not optional 2014-03-31 18:43:22 -07:00
docg4.c mtd: nand: drop owner assignment from platform_drivers 2014-10-20 16:20:58 +02:00
fsl_elbc_nand.c mtd: nand: drop owner assignment from platform_drivers 2014-10-20 16:20:58 +02:00
fsl_ifc_nand.c MTD updates for 3.19: 2014-12-17 09:59:26 -08:00
fsl_upm.c mtd: nand: drop owner assignment from platform_drivers 2014-10-20 16:20:58 +02:00
fsmc_nand.c mtd: nand: drop owner assignment from platform_drivers 2014-10-20 16:20:58 +02:00
gpio.c MTD updates for 3.19: 2014-12-17 09:59:26 -08:00
hisi504_nand.c mtd: hisilicon: && vs & typo 2015-02-15 01:05:05 -08:00
jz4740_nand.c mtd: nand: jz4740: Convert to GPIO descriptor API 2015-02-02 01:04:36 -08:00
lpc32xx_mlc.c mtd: nand: drop owner assignment from platform_drivers 2014-10-20 16:20:58 +02:00
lpc32xx_slc.c mtd: nand: drop owner assignment from platform_drivers 2014-10-20 16:20:58 +02:00
mpc5121_nfc.c mtd: nand: drop owner assignment from platform_drivers 2014-10-20 16:20:58 +02:00
mxc_nand.c MTD updates for 3.19: 2014-12-17 09:59:26 -08:00
nand_base.c mtd: nand: remove redundant local variable 2015-02-05 20:01:09 -08:00
nand_bbt.c mtd: nand: don't break long print messages 2014-09-17 23:29:36 -07:00
nand_bch.c mtd: cleanup style on pr_debug messages 2011-09-11 15:02:16 +03:00
nand_ecc.c mtd: nand: add line feed to pr_err 2014-04-16 00:18:26 -07:00
nand_ids.c mtd: nand: add ATO manufacturer info 2014-11-25 20:11:12 -08:00
nand_timings.c mtd: nand: Use ULL-suffix for big u64 constant 2014-08-19 11:53:09 -07:00
nandsim.c mtd: nand: Request strength instead of bytes for soft BCH 2015-02-01 21:10:58 -08:00
ndfc.c mtd: nand: drop owner assignment from platform_drivers 2014-10-20 16:20:58 +02:00
nuc900_nand.c mtd: nand: drop owner assignment from platform_drivers 2014-10-20 16:20:58 +02:00
omap2.c mtd: nand: omap: drop condition with no effect 2015-02-05 19:51:08 -08:00
omap_elm.c Merge branch 'platform/remove_owner' of git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux into driver-core-next 2014-11-03 19:53:56 -08:00
orion_nand.c MTD updates for 3.19: 2014-12-17 09:59:26 -08:00
pasemi_nand.c mtd: nand: drop owner assignment from platform_drivers 2014-10-20 16:20:58 +02:00
plat_nand.c mtd: nand: drop owner assignment from platform_drivers 2014-10-20 16:20:58 +02:00
pxa3xx_nand.c mtd: nand: pxa3xx: Fix PIO FIFO draining 2015-02-28 00:53:50 -08:00
r852.c mtd: nand: r852: correct write_buf loop bounds 2014-05-28 00:05:26 -07:00
r852.h mtd: r852: remove useless pci powerup/down from suspend/resume routines 2010-10-25 01:32:21 +01:00
s3c2410.c mtd: nand: drop owner assignment from platform_drivers 2014-10-20 16:20:58 +02:00
sh_flctl.c mtd: nand: drop owner assignment from platform_drivers 2014-10-20 16:20:58 +02:00
sharpsl.c mtd: nand: drop owner assignment from platform_drivers 2014-10-20 16:20:58 +02:00
sm_common.c mtd: nand: refactor chip->block_markbad interface 2013-08-30 16:47:52 +01:00
sm_common.h mtd: use __packed shorthand 2014-08-19 11:53:08 -07:00
socrates_nand.c mtd: nand: drop owner assignment from platform_drivers 2014-10-20 16:20:58 +02:00
sunxi_nand.c mtd: nand: Request strength instead of bytes for soft BCH 2015-02-01 21:10:58 -08:00
tmio_nand.c mtd: tmio_nand: Use devm_*() functions 2014-01-03 11:22:28 -08:00
txx9ndfmc.c mtd: nand: drop owner assignment from platform_drivers 2014-10-20 16:20:58 +02:00
xway_nand.c mtd: lantiq: Add NAND support on Lantiq XWAY SoC. 2012-09-29 15:05:18 +01:00