if (!(s = ide_timing_find_mode(speed)))
return -EINVAL;
+/*
+ * Copy the timing from the table.
+ */
+
+ *t = *s;
+
/*
* If the drive is an EIDE drive, it can tell us it needs extended
* PIO/MWDMA cycle timing.
* 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