From aaf3d41aa0127df696947b8c1355d88f469a9a37 Mon Sep 17 00:00:00 2001 From: Marek Vasut Date: Wed, 10 Aug 2011 09:24:48 +0200 Subject: [PATCH] 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 --- drivers/mmc/mmc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 { -- 2.39.5