提交 d643b5f7 编写于 作者: R Roman Moracik 提交者: Pierre Ossman

MMC: Fix S3C24XX IRQ enable during PIO transfers

Fix Bug #677 - I/O errors on heavy microSD writes for 2.6.22.x.
Signed-off-by: NBen Dooks <ben-linux@fluff.org>
Signed-off-by: NPierre Ossman <drzeus@drzeus.cx>
上级 bdbc9c3a
......@@ -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 @@ void s3cmci_dma_done_callback(struct s3c2410_dma_chan *dma_ch, void *buf_id,
spin_unlock_irqrestore(&host->complete_lock, iflags);
return;
fail_request:
host->mrq->data->error = -EINVAL;
host->complete_what = COMPLETION_FINALIZE;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册