lkml.org 
[lkml]   [2004]   [Jun]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
Subject[HPT366] Fix /proc/ide/hpt366 crash
From
Hi Marcelo:

The following patch which fixes fixes the disk spindown problem when
/proc/ide/hpt366 is read has been in 2.6 for a couple of months. It
has just been verified that the same fix is needed and works under
2.4 (see http://bugs.debian.org/250171).

So please apply it.

Thanks,
--
Visit Openswan at http://www.openswan.org/
Email: Herbert Xu ~{PmV>HI~} <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
===== drivers/ide/pci/hpt366.c 1.14 vs edited =====
--- 1.14/drivers/ide/pci/hpt366.c 2004-05-01 08:27:08 +10:00
+++ edited/drivers/ide/pci/hpt366.c 2004-06-09 21:20:01 +10:00
@@ -123,7 +123,7 @@
" %s\n",
(c0 & 0x80) ? "no" : "yes",
(c1 & 0x80) ? "no" : "yes");
-
+#if 0
if (hpt_minimum_revision(dev, 3)) {
u8 cbl;
cbl = inb(iobase + 0x7b);
@@ -136,7 +136,7 @@
(cbl & 0x01) ? 33 : 66);
p += sprintf(p, "\n");
}
-
+#endif
p += sprintf(p, "--------------- drive0 --------- drive1 "
"------- drive0 ---------- drive1 -------\n");
p += sprintf(p, "DMA capable: %s %s"
\
 
 \ /
  Last update: 2005-03-22 14:03    [W:0.033 / U:0.120 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site