Skip to content

Commit ea79df1

Browse files
committed
mmc: core: Drop the MMC_RSP_R1_NO_CRC response
The MMC_RSP_R1_NO_CRC type of response is not being used by the mmc core for any commands. Let's therefore drop it, together with the corresponding code in the host drivers. Signed-off-by: Ulf Hansson <[email protected]> Acked-by: Wolfram Sang <[email protected]> # for TMIO Reviewed-by: Avri Altman <[email protected]> Message-ID: <[email protected]>
1 parent 0202dfb commit ea79df1

File tree

4 files changed

+0
-9
lines changed

4 files changed

+0
-9
lines changed

drivers/mmc/host/rtsx_pci_sdmmc.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,6 @@ static int sd_response_type(struct mmc_command *cmd)
115115
return SD_RSP_TYPE_R0;
116116
case MMC_RSP_R1:
117117
return SD_RSP_TYPE_R1;
118-
case MMC_RSP_R1_NO_CRC:
119-
return SD_RSP_TYPE_R1 | SD_NO_CHECK_CRC7;
120118
case MMC_RSP_R1B:
121119
return SD_RSP_TYPE_R1b;
122120
case MMC_RSP_R2:

drivers/mmc/host/rtsx_usb_sdmmc.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -313,9 +313,6 @@ static void sd_send_cmd_get_rsp(struct rtsx_usb_sdmmc *host,
313313
case MMC_RSP_R1:
314314
rsp_type = SD_RSP_TYPE_R1;
315315
break;
316-
case MMC_RSP_R1_NO_CRC:
317-
rsp_type = SD_RSP_TYPE_R1 | SD_NO_CHECK_CRC7;
318-
break;
319316
case MMC_RSP_R1B:
320317
rsp_type = SD_RSP_TYPE_R1b;
321318
break;

drivers/mmc/host/tmio_mmc_core.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,6 @@ static int tmio_mmc_start_command(struct tmio_mmc_host *host,
297297
switch (mmc_resp_type(cmd)) {
298298
case MMC_RSP_NONE: c |= RESP_NONE; break;
299299
case MMC_RSP_R1:
300-
case MMC_RSP_R1_NO_CRC:
301300
c |= RESP_R1; break;
302301
case MMC_RSP_R1B: c |= RESP_R1B; break;
303302
case MMC_RSP_R2: c |= RESP_R2; break;

include/linux/mmc/core.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,6 @@ struct mmc_command {
6464
#define MMC_RSP_R6 (MMC_RSP_PRESENT|MMC_RSP_CRC|MMC_RSP_OPCODE)
6565
#define MMC_RSP_R7 (MMC_RSP_PRESENT|MMC_RSP_CRC|MMC_RSP_OPCODE)
6666

67-
/* Can be used by core to poll after switch to MMC HS mode */
68-
#define MMC_RSP_R1_NO_CRC (MMC_RSP_PRESENT|MMC_RSP_OPCODE)
69-
7067
#define mmc_resp_type(cmd) ((cmd)->flags & (MMC_RSP_PRESENT|MMC_RSP_136|MMC_RSP_CRC|MMC_RSP_BUSY|MMC_RSP_OPCODE))
7168

7269
/*

0 commit comments

Comments
 (0)