OSDN Git Service

staging: mt7621-mmc: Find response of SD_APP_OP_COND by default
authorChristian Lütke-Stetzkamp <christian@lkamp.de>
Sat, 16 Jun 2018 14:15:08 +0000 (16:15 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 28 Jun 2018 12:48:05 +0000 (21:48 +0900)
The response type of the SD_APP_OP_COND command is correctly
determined using the mmc_resp_type macro, because the only use of that
opcode, mmc_send_app_op_cond, correctly places MMC_RSP_R3 in cmd.flags.

So there is no need to treat that opcode separately.

Signed-off-by: Christian Lütke-Stetzkamp <christian@lkamp.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/mt7621-mmc/sd.c

index 69123cf..04d23cc 100644 (file)
@@ -710,9 +710,7 @@ static inline u32 msdc_cmd_find_resp(struct mmc_command *cmd)
        u32 opcode = cmd->opcode;
        u32 resp;
 
-       if (opcode == SD_APP_OP_COND) {
-               resp = RESP_R3;
-       } else if (opcode == MMC_SET_RELATIVE_ADDR) {
+       if (opcode == MMC_SET_RELATIVE_ADDR) {
                resp = (mmc_cmd_type(cmd) == MMC_CMD_BCR) ? RESP_R6 : RESP_R1;
        } else if (opcode == MMC_FAST_IO) {
                resp = RESP_R4;