Skip to contentSkip to conversation

mmc: Fix mmc_send_status()

PATCH New Marek Vasut 1 participant 2 messages Aug 10, 2011 MMC, SD and SDIO

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mmc: Fix mmc_send_status()

The mmc_send_status() function sets cmd.arg = 0. That's incorrect, so fix it.

---
 drivers/mmc/mmc.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/mmc/mmc.c +1 -1
index cbd7567..c9ff023 100644
@@ -115,7 +115,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 {
Signature · 1 line
1.7.5.4
#1 lore raw

PATCH 1/1 mmc: Fix mmc_send_status()

Quoted 2 lines · Marek Vasut

The mmc_send_status() function sets cmd.arg = 0. That's incorrect, so fix it.

Missed Andy, adding to CC. Sorry Andy.

btw this fixes my CMD13 issue.

Quoted 19 lines
---
 drivers/mmc/mmc.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/mmc/mmc.c +1 -1
index cbd7567..c9ff023 100644
@@ -115,7 +115,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 {