Commit 092f4993 authored by Alan Cox's avatar Alan Cox Committed by Linus Torvalds

[PATCH] fix our handling of BIOS forced PIO serverworks OSB4

(Robert Hentosh & me)
parent fab80306
......@@ -419,7 +419,13 @@ static void config_chipset_for_pio (ide_drive_t *drive)
static void svwks_tune_drive (ide_drive_t *drive, u8 pio)
{
(void) svwks_tune_chipset(drive, (XFER_PIO_0 + pio));
/* Tune to desired value or to "best". We must not adjust
"best" when we adjust from pio numbers to rate values! */
if(pio != 255)
(void) svwks_tune_chipset(drive, (XFER_PIO_0 + pio));
else
(void) svwks_tune_chipset(drive, 255);
}
static int config_chipset_for_dma (ide_drive_t *drive)
......
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