]> git.baikalelectronics.ru Git - uboot.git/commit
mtd: nand: mxs_nand_spl: don't read useless pages
authorDario Binacchi <dario.binacchi@amarulasolutions.com>
Sun, 20 Nov 2022 09:57:04 +0000 (10:57 +0100)
committerDario Binacchi <dario.binacchi@amarulasolutions.com>
Sat, 10 Dec 2022 13:35:55 +0000 (14:35 +0100)
commit7f2ac507b56242dcc1ffff78bd1b3a4fbefd3bb2
tree1527a32cff9baedb5228bf4311b9438276abc783
parent38771db44c238075277c1090022824186221dc3d
mtd: nand: mxs_nand_spl: don't read useless pages

The patch prevents pages beyond the last from being unnecessarily read.
This occurs when the last page to be read is not the last page of the
last block. Before this change we would have read all the pages up to
the end of the last block.

Suggested-by: Michael Trimarchi <michael@amarulasolutions.com>
Co-developed-by: Michael Trimarchi <michael@amarulasolutions.com>
Signed-off-by: Michael Trimarchi <michael@amarulasolutions.com>
Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com>
Acked-by: Michael Trimarchi <michael@amarulasolutions.com>
Link: https://lore.kernel.org/all/20221120095705.3019295-1-dario.binacchi@amarulasolutions.com
drivers/mtd/nand/raw/mxs_nand_spl.c