diff options
author | Maxime Ripard <[email protected]> | 2015-02-18 11:32:07 +0100 |
---|---|---|
committer | Brian Norris <[email protected]> | 2015-02-28 00:53:50 -0800 |
commit | 8dad0386b97c4bd6edd56752ca7f2e735fe5beb4 (patch) | |
tree | f9540167a8e4be82dceaa5c486e11a3cf1a73ac6 /lib/test-string_helpers.c | |
parent | c517d838eb7d07bbe9507871fab3931deccff539 (diff) |
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: <[email protected]> # v3.14
Signed-off-by: Maxime Ripard <[email protected]>
Reviewed-by: Boris Brezillon <[email protected]>
Acked-by: Ezequiel Garcia <[email protected]>
Signed-off-by: Brian Norris <[email protected]>
Diffstat (limited to 'lib/test-string_helpers.c')
0 files changed, 0 insertions, 0 deletions