Thread (3 messages) flat view 3 messages, 3 authors, 2005-02-14
STALE7878d

[PATCH] ide-timing.h: make the timing from the IDE device work

From: Albert Lee <hidden>
Date: 2004-08-19 07:49:57

ide-timing.h patch: make the timing from the IDE device work.

Albert Lee
--- linux-2.6.6\drivers\ide\ide-timing.h.ori 2004-05-10 10:32:28.000000000
+0800
+++ linux-2.6.6\drivers\ide\ide-timing.h 2004-08-19 13:01:17.117860800 +0800
@@ -220,6 +220,7 @@
  if (!(s = ide_timing_find_mode(speed)))
   return -EINVAL;

+ memcpy(t, s, sizeof(*t));
 /*
  * If the drive is an EIDE drive, it can tell us it needs extended
  * PIO/MWDMA cycle timing.
@@ -248,7 +249,7 @@
  * Convert the timing to bus clock counts.
  */

- ide_timing_quantize(s, t, T, UT);
+ ide_timing_quantize(t, t, T, UT);

 /*
  * Even in DMA/UDMA modes we still use PIO access for IDENTIFY, S.M.A.R.T
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help