aboutsummaryrefslogtreecommitdiff
path: root/lib/memory-notifier-error-inject.c
diff options
context:
space:
mode:
authorBoris Brezillon <[email protected]>2018-05-09 09:13:58 +0200
committerBoris Brezillon <[email protected]>2018-05-14 14:46:20 +0200
commit90d617633368ab97a2c7571c6e66dad54f39228d (patch)
treebde32fbbe9bb2b937403158b9bad282396078fd3 /lib/memory-notifier-error-inject.c
parentea739a287f4f16d6250bea779a1026ead79695f2 (diff)
mtd: rawnand: marvell: Fix read logic for layouts with ->nchunks > 2
The code is doing monolithic reads for all chunks except the last one which is wrong since a monolithic read will issue the READ0+ADDRS+READ_START sequence. It not only takes longer because it forces the NAND chip to reload the page content into its internal cache, but by doing that we also reset the column pointer to 0, which means we'll always read the first chunk instead of moving to the next one. Rework the code to do a monolithic read only for the first chunk, then switch to naked reads for all intermediate chunks and finally issue a last naked read for the last chunk. Fixes: 02f26ecf8c77 mtd: nand: add reworked Marvell NAND controller driver Cc: [email protected] Reported-by: Chris Packham <[email protected]> Signed-off-by: Boris Brezillon <[email protected]> Tested-by: Chris Packham <[email protected]> Acked-by: Miquel Raynal <[email protected]>
Diffstat (limited to 'lib/memory-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions