From: Stefan Roese Date: Wed, 2 Jan 2008 13:05:37 +0000 (+0100) Subject: cfi_flash: Fix bug in flash_isset() to use correct 32bit function X-Git-Tag: v1.3.2-rc1~103 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=47cc23cbe9a669c510183f4f049bf703ef445f3b;p=u-boot cfi_flash: Fix bug in flash_isset() to use correct 32bit function This bug was detected on the LWMON5 target which has 2 Intel 16bit wide flash chips connected to a 32bit wide port. Signed-off-by: Stefan Roese --- diff --git a/drivers/mtd/cfi_flash.c b/drivers/mtd/cfi_flash.c index d1124d3439..4f61e365e8 100644 --- a/drivers/mtd/cfi_flash.c +++ b/drivers/mtd/cfi_flash.c @@ -527,7 +527,7 @@ static int flash_isset (flash_info_t * info, flash_sect_t sect, retval = ((flash_read16(addr) & cword.w) == cword.w); break; case FLASH_CFI_32BIT: - retval = ((flash_read16(addr) & cword.l) == cword.l); + retval = ((flash_read32(addr) & cword.l) == cword.l); break; case FLASH_CFI_64BIT: retval = ((flash_read64(addr) & cword.ll) == cword.ll);