patch-2.4.27 linux-2.4.27/drivers/ide/pci/serverworks.c
Next file: linux-2.4.27/drivers/ide/pci/siimage.c
Previous file: linux-2.4.27/drivers/ide/pci/piix.c
Back to the patch index
Back to the overall index
- Lines: 29
- Date:
2004-08-07 16:26:04.845354626 -0700
- Orig file:
linux-2.4.26/drivers/ide/pci/serverworks.c
- Orig date:
2003-11-28 10:26:20.000000000 -0800
diff -urN linux-2.4.26/drivers/ide/pci/serverworks.c linux-2.4.27/drivers/ide/pci/serverworks.c
@@ -473,7 +473,9 @@
int dma = config_chipset_for_dma(drive);
if ((id->field_valid & 2) && !dma)
goto try_dma_modes;
- }
+ } else
+ /* UDMA disabled by mask, try other DMA modes */
+ goto try_dma_modes;
} else if (id->field_valid & 2) {
try_dma_modes:
if ((id->dma_mword & hwif->mwdma_mask) ||
@@ -490,6 +492,7 @@
} else {
goto no_dma_set;
}
+ return hwif->ide_dma_on(drive);
} else if ((id->capability & 8) || (id->field_valid & 2)) {
fast_ata_pio:
no_dma_set:
@@ -497,7 +500,8 @@
// hwif->tuneproc(drive, 5);
return hwif->ide_dma_off_quietly(drive);
}
- return hwif->ide_dma_on(drive);
+ /* IORDY not supported */
+ return 0;
}
/* This can go soon */
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)