public inbox for linux-mmc@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] mmc: dw_mmc: change the macro name from DTO to DRTO
@ 2013-05-27  4:47 Jaehoon Chung
  2013-05-28  9:14 ` James Hogan
  0 siblings, 1 reply; 4+ messages in thread
From: Jaehoon Chung @ 2013-05-27  4:47 UTC (permalink / raw)
  To: linux-mmc@vger.kernel.org
  Cc: 'Chris Ball', Seungwon Jeon, Will Newton, James Hogan

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>
---
 drivers/mmc/host/dw_mmc.c |    4 ++--
 drivers/mmc/host/dw_mmc.h |    2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/mmc/host/dw_mmc.c b/drivers/mmc/host/dw_mmc.c
index b10e5e1..7dca5e9 100644
--- a/drivers/mmc/host/dw_mmc.c
+++ b/drivers/mmc/host/dw_mmc.c
@@ -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;
diff --git a/drivers/mmc/host/dw_mmc.h b/drivers/mmc/host/dw_mmc.h
index 0b74189..2f52c87 100644
--- a/drivers/mmc/host/dw_mmc.h
+++ b/drivers/mmc/host/dw_mmc.h
@@ -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)
-- 
1.7.9.5

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] mmc: dw_mmc: change the macro name from DTO to DRTO
  2013-05-27  4:47 [PATCH] mmc: dw_mmc: change the macro name from DTO to DRTO Jaehoon Chung
@ 2013-05-28  9:14 ` James Hogan
  2013-05-28 12:04   ` Seungwon Jeon
  0 siblings, 1 reply; 4+ messages in thread
From: James Hogan @ 2013-05-28  9:14 UTC (permalink / raw)
  To: Jaehoon Chung
  Cc: linux-mmc@vger.kernel.org, 'Chris Ball', Seungwon Jeon,
	Will Newton

On 27/05/13 05:47, Jaehoon Chung wrote:
> 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>


^ permalink raw reply	[flat|nested] 4+ messages in thread

* RE: [PATCH] mmc: dw_mmc: change the macro name from DTO to DRTO
  2013-05-28  9:14 ` James Hogan
@ 2013-05-28 12:04   ` Seungwon Jeon
  2013-06-27 14:54     ` Chris Ball
  0 siblings, 1 reply; 4+ messages in thread
From: Seungwon Jeon @ 2013-05-28 12:04 UTC (permalink / raw)
  To: 'James Hogan', 'Jaehoon Chung'
  Cc: linux-mmc, 'Chris Ball', 'Will Newton'

On 05/28/13 6:15 PM, James Hogan wrote:
> On 27/05/13 05:47, Jaehoon Chung wrote:
> > 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>


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] mmc: dw_mmc: change the macro name from DTO to DRTO
  2013-05-28 12:04   ` Seungwon Jeon
@ 2013-06-27 14:54     ` Chris Ball
  0 siblings, 0 replies; 4+ messages in thread
From: Chris Ball @ 2013-06-27 14:54 UTC (permalink / raw)
  To: Seungwon Jeon
  Cc: 'James Hogan', 'Jaehoon Chung', linux-mmc,
	'Will Newton'

Hi,

On Tue, May 28 2013, Seungwon Jeon wrote:
> On 05/28/13 6:15 PM, James Hogan wrote:
>> On 27/05/13 05:47, Jaehoon Chung wrote:
>> > 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>

Thanks, pushed to mmc-next for 3.11.

- Chris.
-- 
Chris Ball   <cjb@laptop.org>   <http://printf.net/>
One Laptop Per Child

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-06-27 14:54 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-27  4:47 [PATCH] mmc: dw_mmc: change the macro name from DTO to DRTO Jaehoon Chung
2013-05-28  9:14 ` James Hogan
2013-05-28 12:04   ` Seungwon Jeon
2013-06-27 14:54     ` Chris Ball

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox