diff options
author | Scott Anderson <saa@android.com> | 2012-02-16 09:30:22 -0800 |
---|---|---|
committer | Mike J. Chen <mjchen@google.com> | 2012-03-03 17:29:36 -0800 |
commit | fc5fce9ce2068b3223014bb18cf5b62bae39696c (patch) | |
tree | 1a7a4d7b2b9d9ae345839402746061b40c158eef | |
parent | 39782495f8485c4f131feaf7dfa15c8b8cce1c69 (diff) | |
download | uboot-fc5fce9ce2068b3223014bb18cf5b62bae39696c.tar.gz |
MMC: Erase group size is in terms of write blocks
Although the READ_BL_LEN and WRITE_BL_LEN are usually the same
for MMC, the erase group size is actually defined in terms of
write blocks instead of read blocks.
Change-Id: I4bf49aa42a78547ec17715a6c7709670206d5fb9
Signed-off-by: Scott Anderson <saa@android.com>
-rw-r--r-- | common/cmd_mmc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/cmd_mmc.c b/common/cmd_mmc.c index 63ebbca9a..733a99684 100644 --- a/common/cmd_mmc.c +++ b/common/cmd_mmc.c @@ -115,7 +115,7 @@ static void print_mmcinfo(struct mmc *mmc) printf("Bus Width: %d-bit\n", mmc->bus_width); printf("Erase group size: %d sectors (%d bytes)\n", - mmc->erase_grp_size, mmc->erase_grp_size * mmc->read_bl_len); + mmc->erase_grp_size, mmc->erase_grp_size * mmc->write_bl_len); } int do_mmcinfo (cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) |