From: Michael Schwingen Date: Sun, 2 Jan 2011 20:01:20 +0000 (+0100) Subject: cfi_protect is not implemented on Spansion flashes (many do not even have protection... X-Git-Tag: v0.5.0-rc1~233 X-Git-Url: https://review.openocd.org/gitweb?p=openocd.git;a=commitdiff_plain;h=09a0a69c09022258a00b3971fe708067d9977402 cfi_protect is not implemented on Spansion flashes (many do not even have protection bits). Demote from error to warning, so that common board code can use "flash write_image erase unlock" regardless of the flash type. Signed-off-by: Michael Schwingen --- diff --git a/src/flash/nor/cfi.c b/src/flash/nor/cfi.c index 5a35aaef92..f25f46d93d 100644 --- a/src/flash/nor/cfi.c +++ b/src/flash/nor/cfi.c @@ -1163,8 +1163,8 @@ static int cfi_protect(struct flash_bank *bank, int set, int first, int last) return cfi_intel_protect(bank, set, first, last); break; default: - LOG_ERROR("protect: cfi primary command set %i unsupported", cfi_info->pri_id); - return ERROR_FAIL; + LOG_WARNING("protect: cfi primary command set %i unsupported", cfi_info->pri_id); + return ERROR_OK; } }