From 3b4a8af80d9cf3fb370c1177c2cf81f9c0a2e5e9 Mon Sep 17 00:00:00 2001 From: Paul Fertser Date: Tue, 23 Jul 2013 20:15:32 +0400 Subject: [PATCH] lpcspifi: assume flash is unprotected after probing Since the driver doesn't support any hardware flash protection, it doesn't make sense to report "protected" status after probing, as it requires extra commands to unprotect before flashing and might be confusing for the end-users. Change-Id: I04d96790cc42412df5334951f39fb6723c972ced Signed-off-by: Paul Fertser Reviewed-on: http://openocd.zylin.com/1525 Tested-by: jenkins Reviewed-by: Spencer Oliver --- src/flash/nor/lpcspifi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/flash/nor/lpcspifi.c b/src/flash/nor/lpcspifi.c index dfd8645e7..0c12e6418 100644 --- a/src/flash/nor/lpcspifi.c +++ b/src/flash/nor/lpcspifi.c @@ -913,7 +913,7 @@ static int lpcspifi_probe(struct flash_bank *bank) sectors[sector].offset = sector * lpcspifi_info->dev->sectorsize; sectors[sector].size = lpcspifi_info->dev->sectorsize; sectors[sector].is_erased = -1; - sectors[sector].is_protected = 1; + sectors[sector].is_protected = 0; } bank->sectors = sectors;