Browse Source

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 <michael@schwingen.org>
tags/v0.5.0-rc1
Michael Schwingen 13 years ago
committed by Øyvind Harboe
parent
commit
09a0a69c09
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/flash/nor/cfi.c

+ 2
- 2
src/flash/nor/cfi.c View File

@@ -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;
}
}



Loading…
Cancel
Save