Skip to contentSkip to conversation

Fix protocol errors

PATCH In review Pierre Ossman 2 participants 2 messages Nov 28, 2005 MMC, SD and SDIO

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix protocol errors

A review against MMC/SD specifications found some errors in the current implementation.

---

 drivers/mmc/mmc.c            |    2 +-
 include/linux/mmc/protocol.h |    4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)
drivers/mmc/mmc.c +1 -1
index fa6835f..8c47100 100644
@@ -816,7 +816,7 @@ static void mmc_discover_cards(struct mm
 
 			cmd.opcode = SD_SEND_RELATIVE_ADDR;
 			cmd.arg = 0;
-			cmd.flags = MMC_RSP_R1;
+			cmd.flags = MMC_RSP_R6;
 
 			err = mmc_wait_for_cmd(host, &cmd, CMD_RETRIES);
 			if (err != MMC_ERR_NONE)
include/linux/mmc/protocol.h +2 -2
index 06355fa..c359a8e 100644
@@ -63,7 +63,7 @@
   /* class 5 */
 #define MMC_ERASE_GROUP_START    35   /* ac   [31:0] data addr   R1  */
 #define MMC_ERASE_GROUP_END      36   /* ac   [31:0] data addr   R1  */
-#define MMC_ERASE                37   /* ac                      R1b */
+#define MMC_ERASE                38   /* ac                      R1b */
 
   /* class 9 */
 #define MMC_FAST_IO              39   /* ac   <Complex>          R4  */
@@ -74,7 +74,7 @@
 
   /* class 8 */
 #define MMC_APP_CMD              55   /* ac   [31:16] RCA        R1  */
-#define MMC_GEN_CMD              56   /* adtc [0] RD/WR          R1b */
+#define MMC_GEN_CMD              56   /* adtc [0] RD/WR          R1  */
 
 /* SD commands                           type  argument     response */
   /* class 8 */
#1 lore raw
Quoted 4 lines · Pierre Ossman

A review against MMC/SD specifications found some errors in the current implementation.

Thanks Pierre, applied.

Signature · 3 lines
Russell King
 Linux kernel    2.6 ARM Linux   - http://www.arm.linux.org.uk/
 maintainer of:  2.6 Serial core