mtd: rawnand: omap_gpmc: Optimize NAND reads
authorRoger Quadros <rogerq@kernel.org>
Tue, 11 Oct 2022 11:50:02 +0000 (14:50 +0300)
committerDario Binacchi <dario.binacchi@amarulasolutions.com>
Sat, 10 Dec 2022 10:11:25 +0000 (11:11 +0100)
commitcd72a950e0aaba0ea7e9cb1d03ff2f1ca0ca037a
tree8f644b54d3a70b80a00320715f8640c6c47ad1b3
parent7e4a494c5f676c7a16a28ac36b9fdbd84022a400
mtd: rawnand: omap_gpmc: Optimize NAND reads

Rename omap_nand_read() to omap_nand_read_buf() to reflect
actual behaviour.

Use FIFO read address instead of raw read address for reads.

The GPMC automatically converts 32-bit/16-bit reads to NAND
device specific reads (8/16 bit). Use the largest possible
read granularity size for more efficient reads.

Signed-off-by: Roger Quadros <rogerq@kernel.org>
Reviewed-by: Michael Trimarchi <michael@amarulasolutions.com>
Link: https://lore.kernel.org/all/20221011115012.6181-5-rogerq@kernel.org
Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com>
drivers/mtd/nand/raw/omap_gpmc.c