From: Maxime Ripard Date: Wed, 18 Feb 2015 10:32:07 +0000 (+0100) Subject: mtd: nand: pxa3xx: Fix PIO FIFO draining X-Git-Tag: omap-for-v4.1/wl12xx-dt~29^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8dad0386b97c4bd6edd56752ca7f2e735fe5beb4;p=pandora-kernel.git 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: # v3.14 Signed-off-by: Maxime Ripard Reviewed-by: Boris Brezillon Acked-by: Ezequiel Garcia Signed-off-by: Brian Norris --- Reading git-diff-tree failed