Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 53606
b: refs/heads/master
c: 55e4dee
h: refs/heads/master
v: v3
  • Loading branch information
Bartlomiej Zolnierkiewicz committed May 5, 2007
1 parent e7dadbe commit 823772f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 8e60d3762f32c9573a449950717a3de12dfebbe3
refs/heads/master: 55e4dee32916a569112f33a511adab4bd72cc4a2
9 changes: 4 additions & 5 deletions trunk/drivers/ide/cris/ide-cris.c
Original file line number Diff line number Diff line change
Expand Up @@ -730,7 +730,7 @@ static int speed_cris_ide(ide_drive_t *drive, u8 speed)

if (speed >= XFER_PIO_0 && speed <= XFER_PIO_4) {
tune_cris_ide(drive, speed - XFER_PIO_0);
return 0;
return ide_config_drive_speed(drive, speed);
}

switch(speed)
Expand Down Expand Up @@ -760,15 +760,16 @@ static int speed_cris_ide(ide_drive_t *drive, u8 speed)
hold = ATA_DMA2_HOLD;
break;
default:
return 0;
BUG();
break;
}

if (speed >= XFER_UDMA_0)
cris_ide_set_speed(TYPE_UDMA, cyc, dvs, 0);
else
cris_ide_set_speed(TYPE_DMA, 0, strobe, hold);

return 0;
return ide_config_drive_speed(drive, speed);
}

void __init
Expand Down Expand Up @@ -821,7 +822,6 @@ init_e100_ide (void)
hwif->udma_four = 0;
hwif->ultra_mask = cris_ultra_mask;
hwif->mwdma_mask = 0x07; /* Multiword DMA 0-2 */
hwif->swdma_mask = 0x07; /* Singleword DMA 0-2 */
hwif->autodma = 1;
hwif->drives[0].autodma = 1;
hwif->drives[1].autodma = 1;
Expand Down Expand Up @@ -1010,7 +1010,6 @@ static int cris_config_drive_for_dma (ide_drive_t *drive)
return 0;

speed_cris_ide(drive, speed);
ide_config_drive_speed(drive, speed);

return ide_dma_enable(drive);
}
Expand Down

0 comments on commit 823772f

Please sign in to comment.