mmc: dw_mmc: change the macro name from DTO to DRTO
Subsystems (2)
Jaehoon Chung
maintainerPATCH 1/1 mmc: dw_mmc: change the macro name from DTO to DRTO
At Interrupt status register, Bit9 is Data Read Timeout. But we used macro name as the DTO. It could be confused with the Data Transfer Over(DTO)-Bit[3].
it's clearly that is changed the DRTO instead of DTO.
--- drivers/mmc/host/dw_mmc.c | 4 ++-- drivers/mmc/host/dw_mmc.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-)
drivers/mmc/host/dw_mmc.c +2 -2
@@ -39,7 +39,7 @@#include "dw_mmc.h" /* Common flag combinations */ -#define DW_MCI_DATA_ERROR_FLAGS (SDMMC_INT_DTO | SDMMC_INT_DCRC | \ +#define DW_MCI_DATA_ERROR_FLAGS (SDMMC_INT_DRTO | SDMMC_INT_DCRC | \ SDMMC_INT_HTO | SDMMC_INT_SBE | \ SDMMC_INT_EBE)#define DW_MCI_CMD_ERROR_FLAGS (SDMMC_INT_RTO | SDMMC_INT_RCRC | \
@@ -1093,7 +1093,7 @@ static void dw_mci_tasklet_func(unsigned long priv) status = host->data_status;if (status &DW_MCI_DATA_ERROR_FLAGS ) { -if (status &SDMMC_INT_DTO ) { +if (status &SDMMC_INT_DRTO ) { data->error = -ETIMEDOUT ; }else if (status &SDMMC_INT_DCRC ) { data->error = -EILSEQ ;
drivers/mmc/host/dw_mmc.h +1 -1
@@ -98,7 +98,7 @@#define SDMMC_INT_HLE BIT(12)#define SDMMC_INT_FRUN BIT(11)#define SDMMC_INT_HTO BIT(10) -#define SDMMC_INT_DTO BIT(9) +#define SDMMC_INT_DRTO BIT(9)#define SDMMC_INT_RTO BIT(8)#define SDMMC_INT_DCRC BIT(7)#define SDMMC_INT_RCRC BIT(6)
Signature · 1 line
1.7.9.5
Quoted 6 lines · Jaehoon Chung
At Interrupt status register, Bit9 is Data Read Timeout. But we used macro name as the DTO. It could be confused with the Data Transfer Over(DTO)-Bit[3].
it's clearly that is changed the DRTO instead of DTO.Signed-off-by Jaehoon Chung <[email protected]>
Seungwon Jeon
Acked-byQuoted 9 lines · James Hogan
Quoted 6 lines · Jaehoon Chung
At Interrupt status register, Bit9 is Data Read Timeout. But we used macro name as the DTO. It could be confused with the Data Transfer Over(DTO)-Bit[3].
it's clearly that is changed the DRTO instead of DTO.Signed-off-by Jaehoon Chung <[email protected]>Reviewed-by James Hogan <[email protected]>
Hi,
Quoted 7 lines · Seungwon Jeon
Quoted 6 lines · James Hogan
Quoted 5 lines · Jaehoon Chung
At Interrupt status register, Bit9 is Data Read Timeout. But we used macro name as the DTO. It could be confused with the Data Transfer Over(DTO)-Bit[3].
it's clearly that is changed the DRTO instead of DTO.
Quoted 5 lines
Quoted 3 lines
Quoted 1 line
Signed-off-by Jaehoon Chung <[email protected]>Reviewed-by James Hogan <[email protected]>Acked-by Seungwon Jeon <[email protected]>
Thanks, pushed to mmc-next for 3.11.
- Chris.
Signature · 2 lines
Chris Ball <[email protected]> <http://printf.net/> One Laptop Per Child