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>
This commit is contained in:
Øyvind Harboe
2010-06-10 15:27:35 +02:00
parent 73aaaf4830
commit ecc8041c0f
2 changed files with 341 additions and 118 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -35,7 +35,7 @@ struct cfi_flash_bank
uint16_t manufacturer;
uint16_t device_id;
char qry[3];
uint8_t qry[3];
/* identification string */
uint16_t pri_id;
@@ -76,7 +76,7 @@ struct cfi_flash_bank
*/
struct cfi_intel_pri_ext
{
char pri[3];
uint8_t pri[3];
uint8_t major_version;
uint8_t minor_version;
uint32_t feature_support;