summaryrefslogtreecommitdiff
path: root/drivers/mmc
diff options
context:
space:
mode:
authorAnish Trivedi <anish@freescale.com>2011-09-13 18:21:30 -0500
committerAnish Trivedi <anish@freescale.com>2011-09-13 18:32:07 -0500
commite2c4083c4b9afffdc64d6916ab69bd596ed10fc0 (patch)
tree930199d386852f4b274dcef7d0662ef075b2ae51 /drivers/mmc
parenta77c6fec8596891be96b2cdbc742c9824844b92a (diff)
downloadu-boot-imx-e2c4083c4b9afffdc64d6916ab69bd596ed10fc0.zip
u-boot-imx-e2c4083c4b9afffdc64d6916ab69bd596ed10fc0.tar.gz
u-boot-imx-e2c4083c4b9afffdc64d6916ab69bd596ed10fc0.tar.bz2
ENGR00156670-2 MMC: Fixed some bugs in common code
Need to send RCA when sending CMD13. Cannot use print_size function when displaying card capacity because it expects a 32 bit integer as input, while mmc->capacity is a 64 bit integer. There is loss of information leading to incorrect capacities being displayed for "mmcinfo" cmd. Changed it to simply print the entire 64 bit integer, which is the number of bytes. Signed-off-by: Tony Lin <tony.lin@freescale.com> Signed-off-by: Anish Trivedi <anish@freescale.com>
Diffstat (limited to 'drivers/mmc')
-rw-r--r--drivers/mmc/mmc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mmc/mmc.c b/drivers/mmc/mmc.c
index e5a0ec9..54e2a21 100644
--- a/drivers/mmc/mmc.c
+++ b/drivers/mmc/mmc.c
@@ -119,7 +119,7 @@ int mmc_send_status(struct mmc *mmc, int timeout)
cmd.cmdidx = MMC_CMD_SEND_STATUS;
cmd.resp_type = MMC_RSP_R1;
- cmd.cmdarg = 0;
+ cmd.cmdarg = mmc->rca << 16;
cmd.flags = 0;
do {