lkml.org 
[lkml]   [2003]   [Apr]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectPATCH: fix our handling of BIOS forced PIO serverworks OSB4
(Robert Hentosh & me)
diff -u --new-file --recursive --exclude-from /usr/src/exclude linux-2.5.67/drivers/ide/pci/serverworks.c linux-2.5.67-ac1/drivers/ide/pci/serverworks.c
--- linux-2.5.67/drivers/ide/pci/serverworks.c 2003-03-26 19:59:51.000000000 +0000
+++ linux-2.5.67-ac1/drivers/ide/pci/serverworks.c 2003-04-06 18:44:38.000000000 +0100
@@ -419,7 +419,13 @@

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)
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
\
 
 \ /
  Last update: 2005-03-22 13:34    [W:0.038 / U:0.060 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site