mmc: core: Drop the MMC_RSP_R1_NO_CRC response
Subsystems (2)
PATCH 1/1 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.
--- drivers/mmc/host/rtsx_pci_sdmmc.c | 2 -- drivers/mmc/host/rtsx_usb_sdmmc.c | 3 --- drivers/mmc/host/tmio_mmc_core.c | 1 - include/linux/mmc/core.h | 3 --- 4 files changed, 9 deletions(-)
drivers/mmc/host/rtsx_pci_sdmmc.c +0 -2
@@ -115,8 +115,6 @@ static int sd_response_type(struct mmc_command *cmd)return SD_RSP_TYPE_R0 ;case MMC_RSP_R1 :return SD_RSP_TYPE_R1 ; -case MMC_RSP_R1_NO_CRC : -return SD_RSP_TYPE_R1 |SD_NO_CHECK_CRC7 ;case MMC_RSP_R1B :return SD_RSP_TYPE_R1b;case MMC_RSP_R2 :
drivers/mmc/host/rtsx_usb_sdmmc.c +0 -3
@@ -313,9 +313,6 @@ static void sd_send_cmd_get_rsp(struct rtsx_usb_sdmmc *host,case MMC_RSP_R1 : rsp_type =SD_RSP_TYPE_R1 ;break ; -case MMC_RSP_R1_NO_CRC : - rsp_type =SD_RSP_TYPE_R1 |SD_NO_CHECK_CRC7 ; -break ;case MMC_RSP_R1B : rsp_type = SD_RSP_TYPE_R1b;break ;
drivers/mmc/host/tmio_mmc_core.c +0 -1
@@ -297,7 +297,6 @@ static int tmio_mmc_start_command(struct tmio_mmc_host *host,switch (mmc_resp_type (cmd)) {case MMC_RSP_NONE : c |=RESP_NONE ;break ;case MMC_RSP_R1 : -case MMC_RSP_R1_NO_CRC : c |=RESP_R1 ;break ;case MMC_RSP_R1B : c |=RESP_R1B ;break ;case MMC_RSP_R2 : c |=RESP_R2 ;break ;
include/linux/mmc/core.h +0 -3
@@ -64,9 +64,6 @@ struct mmc_command {#define MMC_RSP_R6 (MMC_RSP_PRESENT|MMC_RSP_CRC|MMC_RSP_OPCODE)#define MMC_RSP_R7 (MMC_RSP_PRESENT|MMC_RSP_CRC|MMC_RSP_OPCODE) -/* Can be used by core to poll after switch to MMC HS mode */ -#define MMC_RSP_R1_NO_CRC (MMC_RSP_PRESENT|MMC_RSP_OPCODE) -#define mmc_resp_type (cmd) ((cmd)->flags & (MMC_RSP_PRESENT|MMC_RSP_136|MMC_RSP_CRC|MMC_RSP_BUSY|MMC_RSP_OPCODE))/*
Signature · 1 line
2.43.0
Quoted 5 lines · Ulf Hansson
The
MMC_RSP_R1_NO_CRCtype 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]>
Quoted 5 lines
The
MMC_RSP_R1_NO_CRCtype 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]>
Quoted 74 lines
--- drivers/mmc/host/rtsx_pci_sdmmc.c | 2 -- drivers/mmc/host/rtsx_usb_sdmmc.c | 3 --- drivers/mmc/host/tmio_mmc_core.c | 1 - include/linux/mmc/core.h | 3 --- 4 files changed, 9 deletions(-)drivers/mmc/host/rtsx_pci_sdmmc.c +0
-2@@ -115,8 +115,6 @@ static int sd_response_type(struct mmc_command *cmd)return SD_RSP_TYPE_R0 ;case MMC_RSP_R1 :return SD_RSP_TYPE_R1 ; -case MMC_RSP_R1_NO_CRC : -return SD_RSP_TYPE_R1 |SD_NO_CHECK_CRC7 ;case MMC_RSP_R1B :return SD_RSP_TYPE_R1b;case
MMC_RSP_R2:drivers/mmc/host/rtsx_usb_sdmmc.c +0
-3@@ -313,9 +313,6 @@ static void sd_send_cmd_get_rsp(structrtsx_usb_sdmmc *host, case MMC_RSP_R1: rsp_type =SD_RSP_TYPE_R1 ;break ; -case MMC_RSP_R1_NO_CRC : - rsp_type =SD_RSP_TYPE_R1 |SD_NO_CHECK_CRC7 ; -break ;case MMC_RSP_R1B : rsp_type = SD_RSP_TYPE_R1b;break;drivers/mmc/host/tmio_mmc_core.c +0
-1@@ -297,7 +297,6 @@ static int tmio_mmc_start_command(struct tmio_mmc_host *host, switch (mmc_resp_type(cmd)) {case MMC_RSP_NONE : c |=RESP_NONE ;break ;case MMC_RSP_R1 : -case MMC_RSP_R1_NO_CRC : c |=RESP_R1 ;break ;case MMC_RSP_R1B : c |=RESP_R1B ;break ;case MMC_RSP_R2: c |= RESP_R2; break;include/linux/mmc/core.h index renamed from include/linux/mmc/core.h +0
-0
56972bd78462..e13856ab6ad0100644include/linux/mmc/core.h +0
-3@@ -64,9 +64,6 @@ struct mmc_command {#define MMC_RSP_R6 (MMC_RSP_PRESENT|MMC_RSP_CRC|MMC_RSP_OPCODE)#define MMC_RSP_R7 (MMC_RSP_PRESENT |MMC_RSP_CRC |MMC_RSP_OPCODE ) -/* Can be used by core to poll after switch to MMC HS mode */ -#define MMC_RSP_R1_NO_CRC (MMC_RSP_PRESENT |MMC_RSP_OPCODE ) -#define
mmc_resp_type(cmd)((cmd)->flags &
(MMC_RSP_PRESENT|MMC_RSP_136|MMC_RSP_CRC|MMC_RSP_BUSY|MMC_RSP_OPCODE))/*
--
2.43.0