Skip to contentSkip to conversation

sgiioc4: add ide_toggle_bounce() calls

PATCH In review Bartlomiej Zolnierkiewicz 3 participants 4 messages Nov 12, 2007 – Nov 16, 2007 libata

lore
Share & tools
lore
#0 lore raw

PATCH 6/13 sgiioc4: add ide_toggle_bounce() calls

Add ide_toggle_bounce() call to ->ide_dma_on/->dma_off_quietly methods so they match generic __ide_dma_on()/ide_dma_off_quietly().

---
 drivers/ide/pci/sgiioc4.c |    2 ++
 1 file changed, 2 insertions(+)
drivers/ide/pci/sgiioc4.c +2 -0
Index: b/drivers/ide/pci/sgiioc4.c
===================================================================
@@ -281,6 +281,7 @@ static int
 sgiioc4_ide_dma_on(ide_drive_t * drive)
 {
 	drive->using_dma = 1;
+	ide_toggle_bounce(drive, 1);
 
 	return 0;
 }
@@ -288,6 +289,7 @@ sgiioc4_ide_dma_on(ide_drive_t * drive)
 static void sgiioc4_dma_off_quietly(ide_drive_t *drive)
 {
 	drive->using_dma = 0;
+	ide_toggle_bounce(drive, 0);
 
 	drive->hwif->dma_host_off(drive);
 }
#3 lore raw
Quoted 6 lines · Jeremy Higdon
Quoted 5 lines · Sergei Shtylyov
Quoted 2 lines · Bartlomiej Zolnierkiewicz

Add ide_toggle_bounce() call to ->ide_dma_on/->dma_off_quietly methods so they match generic __ide_dma_on()/ide_dma_off_quietly().

Quoted 6 lines
Quoted 4 lines
Quoted 2 lines

Tested on an Altix.

Thanks!

Quoted 1 line

added to patch description