cfi: fix error propagation
commitecc8041c0f4c30a7310c0f8414a5261ee7a090ca
authorØyvind Harboe <oyvind.harboe@zylin.com>
Thu, 10 Jun 2010 13:27:35 +0000 (10 15:27 +0200)
committerØyvind Harboe <oyvind.harboe@zylin.com>
Fri, 11 Jun 2010 13:53:23 +0000 (11 15:53 +0200)
treed0f1a2783181619a99565c64da5d1f67105f3de2
parent73aaaf483035cfe79fe339d6c073e851bc9f8f9a
cfi: fix error propagation

any read/write operation to memory can fail.

block write algorithm error propagation was broken
in that it would continue after an error was reported
writing data to ram or the algorithm failing.

Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
src/flash/nor/cfi.c
src/flash/nor/cfi.h