Commit 48c43169 authored by Bartlomiej Zolnierkiewicz's avatar Bartlomiej Zolnierkiewicz Committed by Linus Torvalds

[PATCH] serverworks.c: fix DMA for OSB4

From: Patrick Wildi <patrick@wildi.com>

On OSB4 the hwif->ultra_mask is set to not support UDMA.
Unfortunately in that case svwks_config_drive_xfer_rate()
falls through to the end of the function, instead of trying
other DMA modes.
parent 2fc0873f
...@@ -472,7 +472,9 @@ static int svwks_config_drive_xfer_rate (ide_drive_t *drive) ...@@ -472,7 +472,9 @@ static int svwks_config_drive_xfer_rate (ide_drive_t *drive)
int dma = config_chipset_for_dma(drive); int dma = config_chipset_for_dma(drive);
if ((id->field_valid & 2) && !dma) if ((id->field_valid & 2) && !dma)
goto try_dma_modes; goto try_dma_modes;
} } else
/* UDMA disabled by mask, try other DMA modes */
goto try_dma_modes;
} else if (id->field_valid & 2) { } else if (id->field_valid & 2) {
try_dma_modes: try_dma_modes:
if ((id->dma_mword & hwif->mwdma_mask) || if ((id->dma_mword & hwif->mwdma_mask) ||
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment