diff options
author | Marek Vasut <marek.vasut@gmail.com> | 2011-08-10 07:24:48 (GMT) |
---|---|---|
committer | Andy Fleming <afleming@freescale.com> | 2011-09-04 23:03:02 (GMT) |
commit | aaf3d41aa0127df696947b8c1355d88f469a9a37 (patch) | |
tree | f8357fe1b988cdfdd6bbdefe120be7ad0a7e63d2 /drivers/mmc | |
parent | 58c583b6c2ebc459de018c772fea5437de430063 (diff) | |
download | u-boot-aaf3d41aa0127df696947b8c1355d88f469a9a37.tar.xz |
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.c | 3 |
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 { |