Skip to contentSkip to conversation

mmc: dw_mmc: correct mishandling error interrupt

PATCH In review Seungwon Jeon 2 participants 2 messages Aug 1, 2012 – Aug 8, 2012

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 2/3 mmc: dw_mmc: correct mishandling error interrupt

Datasheet of SYNOPSYS mentions that DTO(Data Transfer Over) interrupt will be raised even if some error interrupts, however it is actually found that DTO does not occur. SYNOPSYS has confirmed this issue. Current implementation defers the call of tasklet_schedule until DTO when the error interrupts is happened. This patch fixes error handling.

---
 drivers/mmc/host/dw_mmc.c |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)
drivers/mmc/host/dw_mmc.c +1 -3
index 7baed45..1a5db20 100644
@@ -1580,9 +1580,7 @@ static irqreturn_t dw_mci_interrupt(int irq, void *dev_id)
 			host->data_status = pending;
 			smp_wmb();
 			set_bit(EVENT_DATA_ERROR, &host->pending_events);
-			if (!(pending & (SDMMC_INT_DTO | SDMMC_INT_DCRC |
-					 SDMMC_INT_SBE | SDMMC_INT_EBE)))
-				tasklet_schedule(&host->tasklet);
+			tasklet_schedule(&host->tasklet);
 		}
 
 		if (pending & SDMMC_INT_DATA_OVER) {
Signature · 1 line
1.7.0.4
#1 lore raw

Hi,

Quoted 16 lines · Seungwon Jeon

Datasheet of SYNOPSYS mentions that DTO(Data Transfer Over) interrupt will be raised even if some error interrupts, however it is actually found that DTO does not occur. SYNOPSYS has confirmed this issue. Current implementation defers the call of tasklet_schedule until DTO when the error interrupts is happened. This patch fixes error handling.

---
 drivers/mmc/host/dw_mmc.c |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)
drivers/mmc/host/dw_mmc.c +0 -0
index 7baed45..1a5db20 100644

drivers/mmc/host/dw_mmc.c static irqreturn_t dw_mci_interrupt(int irq, void *dev_id) · line 1586

Quoted 10 lines
drivers/mmc/host/dw_mmc.c +1 -3
@@ -1580,9 +1580,7 @@ static irqreturn_t dw_mci_interrupt(int irq, void *dev_id)
 			host->data_status = pending;
 			smp_wmb();
 			set_bit(EVENT_DATA_ERROR, &host->pending_events);
-			if (!(pending & (SDMMC_INT_DTO | SDMMC_INT_DCRC |
-					 SDMMC_INT_SBE | SDMMC_INT_EBE)))
-				tasklet_schedule(&host->tasklet);
+			tasklet_schedule(&host->tasklet);
 		}
 
 		if (pending & SDMMC_INT_DATA_OVER) {

Thanks, pushed to mmc-next for 3.7.

- Chris.

Signature · 2 lines
Chris Ball   <[email protected]>   <http://printf.net/>
One Laptop Per Child