diff options
author | Øyvind Harboe <oyvind.harboe@zylin.com> | 2010-06-14 15:42:39 +0200 |
---|---|---|
committer | Øyvind Harboe <oyvind.harboe@zylin.com> | 2010-06-14 15:42:39 +0200 |
commit | 9132f7083d01510eb1c2471a7c3f3247e35cdf3b (patch) | |
tree | 1cb56b692a08dc3c2bbe727a849f0ecf228e5495 /src/flash | |
parent | b6a82540654f02dbf4caaed1be538044220dd3dc (diff) | |
download | openocd_libswd-9132f7083d01510eb1c2471a7c3f3247e35cdf3b.tar.gz openocd_libswd-9132f7083d01510eb1c2471a7c3f3247e35cdf3b.tar.bz2 openocd_libswd-9132f7083d01510eb1c2471a7c3f3247e35cdf3b.tar.xz openocd_libswd-9132f7083d01510eb1c2471a7c3f3247e35cdf3b.zip |
cfi: add LOG_ERROR() in case of unsupported intel erase algorithm
found by code inspection. There are many other places in
CFI where LOG_ERROR() should be called similarly...
Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
Diffstat (limited to 'src/flash')
-rw-r--r-- | src/flash/nor/cfi.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/flash/nor/cfi.c b/src/flash/nor/cfi.c index c1343175..96aca48a 100644 --- a/src/flash/nor/cfi.c +++ b/src/flash/nor/cfi.c @@ -979,7 +979,10 @@ static int cfi_intel_protect(struct flash_bank *bank, int set, int first, int la * instant individual block locking (bit 5). */ if (!(pri_ext->feature_support & 0x28)) + { + LOG_ERROR("lock/unlock not supported on flash"); return ERROR_FLASH_OPERATION_FAILED; + } cfi_intel_clear_status_register(bank); |