]> git.sur5r.net Git - u-boot/blobdiff - drivers/mtd/cfi_flash.c
mtd: cfi_flash: fix polling for bit XSR.7 on Intel chips
[u-boot] / drivers / mtd / cfi_flash.c
index 8ccaff0e63a2e9a6778d47dc439bf2c39b1c05fc..33c4a9342f8ebf6d328fc0e919300ad495b0c60b 100644 (file)
@@ -608,7 +608,7 @@ static int flash_full_status_check (flash_info_t * info, flash_sect_t sector,
        case CFI_CMDSET_INTEL_EXTENDED:
        case CFI_CMDSET_INTEL_STANDARD:
                if ((retcode == ERR_OK)
-                   && !flash_isequal (info, sector, 0, FLASH_STATUS_DONE)) {
+                   && !flash_isset(info, sector, 0, FLASH_STATUS_DONE)) {
                        retcode = ERR_INVAL;
                        printf ("Flash %s error at address %lx\n", prompt,
                                info->start[sector]);