summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'drivers')
-rw-r--r--drivers/mmc/host/s3cmci.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/mmc/host/s3cmci.c b/drivers/mmc/host/s3cmci.c
index 8c68b2e0dd6..774af3d7218 100644
--- a/drivers/mmc/host/s3cmci.c
+++ b/drivers/mmc/host/s3cmci.c
@@ -335,6 +335,8 @@ static void pio_tasklet(unsigned long data)
struct s3cmci_host *host = (struct s3cmci_host *) data;
+ disable_irq(host->irq);
+
if (host->pio_active == XFER_WRITE)
do_pio_write(host);
@@ -352,9 +354,9 @@ static void pio_tasklet(unsigned long data)
host->mrq->data->error = -EINVAL;
}
- disable_irq(host->irq);
finalize_request(host);
- }
+ } else
+ enable_irq(host->irq);
}
/*
@@ -630,7 +632,6 @@ out:
spin_unlock_irqrestore(&host->complete_lock, iflags);
return;
-
fail_request:
host->mrq->data->error = -EINVAL;
host->complete_what = COMPLETION_FINALIZE;