Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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.

Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Reviewed-by: James Hogan <james.hogan@imgtec.com>
Acked-by: Seungwon Jeon <tgih.jun@samsung.com>
Signed-off-by: Chris Ball <cjb@laptop.org>

authored by

Jaehoon Chung and committed by
Chris Ball
3f7eec62 dcac5fe3

+3 -3
+2 -2
drivers/mmc/host/dw_mmc.c
··· 39 39 #include "dw_mmc.h" 40 40 41 41 /* Common flag combinations */ 42 - #define DW_MCI_DATA_ERROR_FLAGS (SDMMC_INT_DTO | SDMMC_INT_DCRC | \ 42 + #define DW_MCI_DATA_ERROR_FLAGS (SDMMC_INT_DRTO | SDMMC_INT_DCRC | \ 43 43 SDMMC_INT_HTO | SDMMC_INT_SBE | \ 44 44 SDMMC_INT_EBE) 45 45 #define DW_MCI_CMD_ERROR_FLAGS (SDMMC_INT_RTO | SDMMC_INT_RCRC | \ ··· 1093 1093 status = host->data_status; 1094 1094 1095 1095 if (status & DW_MCI_DATA_ERROR_FLAGS) { 1096 - if (status & SDMMC_INT_DTO) { 1096 + if (status & SDMMC_INT_DRTO) { 1097 1097 data->error = -ETIMEDOUT; 1098 1098 } else if (status & SDMMC_INT_DCRC) { 1099 1099 data->error = -EILSEQ;
+1 -1
drivers/mmc/host/dw_mmc.h
··· 98 98 #define SDMMC_INT_HLE BIT(12) 99 99 #define SDMMC_INT_FRUN BIT(11) 100 100 #define SDMMC_INT_HTO BIT(10) 101 - #define SDMMC_INT_DTO BIT(9) 101 + #define SDMMC_INT_DRTO BIT(9) 102 102 #define SDMMC_INT_RTO BIT(8) 103 103 #define SDMMC_INT_DCRC BIT(7) 104 104 #define SDMMC_INT_RCRC BIT(6)