From 9132f7083d01510eb1c2471a7c3f3247e35cdf3b Mon Sep 17 00:00:00 2001 From: Øyvind Harboe Date: Mon, 14 Jun 2010 15:42:39 +0200 Subject: cfi: add LOG_ERROR() in case of unsupported intel erase algorithm MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit found by code inspection. There are many other places in CFI where LOG_ERROR() should be called similarly... Signed-off-by: Øyvind Harboe --- src/flash/nor/cfi.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') 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); -- cgit v1.2.3