]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
MMC: Fix S3C24XX IRQ enable during PIO transfers
authorRoman Moracik <roman.moravcik@gmail.com>
Mon, 30 Jun 2008 21:40:28 +0000 (22:40 +0100)
committerPierre Ossman <drzeus@drzeus.cx>
Tue, 15 Jul 2008 12:14:47 +0000 (14:14 +0200)
Fix Bug #677 - I/O errors on heavy microSD writes for 2.6.22.x.

Signed-off-by: Ben Dooks <ben-linux@fluff.org>
Signed-off-by: Pierre Ossman <drzeus@drzeus.cx>
drivers/mmc/host/s3cmci.c

index 8c68b2e0dd6e7fe4c9db39e6b4a9a53b4077a62c..774af3d7218facc511b3fef157c00067e59ad5b0 100644 (file)
@@ -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;