Browse Source

Merge branch 'master' of git://git.denx.de/u-boot-cfi-flash

Wolfgang Denk 16 năm trước cách đây
mục cha
commit
20d635142b
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  1. 2 1
      drivers/mtd/cfi_flash.c

+ 2 - 1
drivers/mtd/cfi_flash.c

@@ -1932,9 +1932,10 @@ ulong flash_get_size (ulong base, int banknum)
 			/* XXX - Need to test on x8/x16 in parallel. */
 			/* XXX - Need to test on x8/x16 in parallel. */
 			info->portwidth >>= 1;
 			info->portwidth >>= 1;
 		}
 		}
+
+		flash_write_cmd (info, 0, 0, info->cmd_reset);
 	}
 	}
 
 
-	flash_write_cmd (info, 0, 0, info->cmd_reset);
 	return (info->size);
 	return (info->size);
 }
 }