summaryrefslogtreecommitdiff
path: root/drivers/mmc
diff options
context:
space:
mode:
authorMarek Vasut <marek.vasut@gmail.com>2011-08-10 09:24:48 +0200
committerAndy Fleming <afleming@freescale.com>2011-09-04 18:03:02 -0500
commitaaf3d41aa0127df696947b8c1355d88f469a9a37 (patch)
treef8357fe1b988cdfdd6bbdefe120be7ad0a7e63d2 /drivers/mmc
parent58c583b6c2ebc459de018c772fea5437de430063 (diff)
downloadu-boot-imx-aaf3d41aa0127df696947b8c1355d88f469a9a37.zip
u-boot-imx-aaf3d41aa0127df696947b8c1355d88f469a9a37.tar.gz
u-boot-imx-aaf3d41aa0127df696947b8c1355d88f469a9a37.tar.bz2
mmc: Fix mmc_send_status()
The mmc_send_status() function sets cmd.arg = 0. That's incorrect, so fix it. Signed-off-by: Marek Vasut <marek.vasut@gmail.com> Acked-by: Andy Fleming <afleming@freescale.com> Tested-by: Lei Wen <adrian.wenl@gmail.com>
Diffstat (limited to 'drivers/mmc')
-rw-r--r--drivers/mmc/mmc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/mmc/mmc.c b/drivers/mmc/mmc.c
index 7e703c0..391bc2b 100644
--- a/drivers/mmc/mmc.c
+++ b/drivers/mmc/mmc.c
@@ -115,7 +115,8 @@ int mmc_send_status(struct mmc *mmc, int timeout)
cmd.cmdidx = MMC_CMD_SEND_STATUS;
cmd.resp_type = MMC_RSP_R1;
- cmd.cmdarg = 0;
+ if (!mmc_host_is_spi(mmc))
+ cmd.cmdarg = mmc->rca << 16;
cmd.flags = 0;
do {