diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2017-03-22 16:11:17 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2017-03-31 18:43:53 +0200 |
commit | 7599f6e56a2480df2831a47de4d62687b57c5249 (patch) | |
tree | d5f521d7e41df79aa2a0484341b7fc22d5052e5b /common/state/backend_format_raw.c | |
parent | cfea782fdd43943c92e7a911d57bcfbfc57a541a (diff) | |
download | barebox-7599f6e56a2480df2831a47de4d62687b57c5249.tar.gz barebox-7599f6e56a2480df2831a47de4d62687b57c5249.tar.xz |
state: backend_circular: Read whole PEB
When the circular backend searches for the last page written in the
eraseblock, it iterates backwards pagewise from the end of the block.
This is ok for NAND flash, but on NOR flash, which does not have pages,
the code ends up iterating bytewise backwards, calling into mtd each
time. This is very time consuming, so optimize this by reading the whole
eraseblock once and just iterate over the buffer in memory.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'common/state/backend_format_raw.c')
0 files changed, 0 insertions, 0 deletions