mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
ide-floppy: report DMA handling in idefloppy_pc_intr() properly
Bart: - use 'hwif' instead of 'HWIF(drive)' - minor CodingStyle fixup Signed-off-by: Borislav Petkov <bbpetkov@yahoo.de> Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
This commit is contained in:
parent
20bf7bdad4
commit
d30a7fba43
1 changed files with 5 additions and 1 deletions
|
@ -532,13 +532,17 @@ static ide_startstop_t idefloppy_pc_intr (ide_drive_t *drive)
|
||||||
idefloppy_pc_t *pc = floppy->pc;
|
idefloppy_pc_t *pc = floppy->pc;
|
||||||
struct request *rq = pc->rq;
|
struct request *rq = pc->rq;
|
||||||
unsigned int temp;
|
unsigned int temp;
|
||||||
|
int dma_error = 0;
|
||||||
u16 bcount;
|
u16 bcount;
|
||||||
u8 stat, ireason;
|
u8 stat, ireason;
|
||||||
|
|
||||||
debug_log("Reached %s interrupt handler\n", __func__);
|
debug_log("Reached %s interrupt handler\n", __func__);
|
||||||
|
|
||||||
if (test_bit(PC_DMA_IN_PROGRESS, &pc->flags)) {
|
if (test_bit(PC_DMA_IN_PROGRESS, &pc->flags)) {
|
||||||
if (HWIF(drive)->ide_dma_end(drive)) {
|
dma_error = hwif->ide_dma_end(drive);
|
||||||
|
if (dma_error) {
|
||||||
|
printk(KERN_ERR "%s: DMA %s error\n", drive->name,
|
||||||
|
rq_data_dir(rq) ? "write" : "read");
|
||||||
set_bit(PC_DMA_ERROR, &pc->flags);
|
set_bit(PC_DMA_ERROR, &pc->flags);
|
||||||
} else {
|
} else {
|
||||||
pc->actually_transferred = pc->request_transfer;
|
pc->actually_transferred = pc->request_transfer;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue