lkml.org 
[lkml]   [2003]   [Aug]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Date
Subject[PATCH] hpt366 fix
Another one in the IDE series.

The HPT366 code is broken - it tries to set the interface
to a too high speed, which leads to error messages at boot
time and/or to data corruption.

The typical effect at boot time is

<4>hde: set_drive_speed_status: status=0x51 { DriveReady SeekComplete Error }
<4>hde: set_drive_speed_status: error=0x04 { DriveStatusError }

This is fixed by the patch below.

Andries

diff -u --recursive --new-file -X /linux/dontdiff a/drivers/ide/pci/hpt366.c b/drivers/ide/pci/hpt366.c
--- a/drivers/ide/pci/hpt366.c Sat Aug 9 22:16:42 2003
+++ b/drivers/ide/pci/hpt366.c Mon Aug 11 16:04:06 2003
@@ -440,7 +440,7 @@

static void hpt3xx_tune_drive (ide_drive_t *drive, u8 pio)
{
- pio = ide_get_best_pio_mode(drive, pio, 5, NULL);
+ pio = ide_get_best_pio_mode(drive, 255, pio, NULL);
(void) hpt3xx_tune_chipset(drive, (XFER_PIO_0 + pio));
}

-
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:47    [W:0.030 / U:3.204 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site