From: Marek Vasut Date: Wed, 10 Aug 2011 07:24:48 +0000 (+0200) Subject: mmc: Fix mmc_send_status() X-Git-Tag: v2011.09-rc1~34^2~1 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=aaf3d41aa0127df696947b8c1355d88f469a9a37;p=oweals%2Fu-boot.git 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 Acked-by: Andy Fleming Tested-by: Lei Wen --- diff --git a/drivers/mmc/mmc.c b/drivers/mmc/mmc.c index 7e703c0ec6..391bc2bafa 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 {