From: Nick Spence Date: Wed, 20 Aug 2008 05:21:16 +0000 (-0700) Subject: CFI: Add CFI_CMDSET_INTEL_EXTENDED to fix flash_real_protect() X-Git-Tag: v2008.10-rc1~151^2 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=9e8e63cce69556aef10b58bcbc56d324f570ec3a;p=oweals%2Fu-boot.git CFI: Add CFI_CMDSET_INTEL_EXTENDED to fix flash_real_protect() This patch fixes a missing vendor code in the flash_real_protect() function. Signed-off-by: Nick Spence Signed-off-by: Stefan Roese --- diff --git a/drivers/mtd/cfi_flash.c b/drivers/mtd/cfi_flash.c index a41293871e..03ea2d040d 100644 --- a/drivers/mtd/cfi_flash.c +++ b/drivers/mtd/cfi_flash.c @@ -1357,6 +1357,7 @@ int flash_real_protect (flash_info_t * info, long sector, int prot) switch (info->vendor) { case CFI_CMDSET_INTEL_PROG_REGIONS: case CFI_CMDSET_INTEL_STANDARD: + case CFI_CMDSET_INTEL_EXTENDED: flash_write_cmd (info, sector, 0, FLASH_CMD_CLEAR_STATUS); flash_write_cmd (info, sector, 0, FLASH_CMD_PROTECT);