via82cxxx resume failure.
From: David Woodhouse
Date: Mon Jan 17 2005 - 04:29:10 EST
On resume from sleep, via_set_speed() doesn't reinstate the correct DMA
mode, because it thinks the drive is already configured correctly. This
one-line hack is sufficient to make it refrain from dying a horrible
death immediately after resume, but presumably has other problems...
===== drivers/ide/pci/via82cxxx.c 1.24 vs edited =====
--- 1.24/drivers/ide/pci/via82cxxx.c Mon Aug 9 18:00:46 2004
+++ edited/drivers/ide/pci/via82cxxx.c Tue Oct 26 22:48:59 2004
@@ -328,7 +328,7 @@
struct ide_timing t, p;
unsigned int T, UT;
- if (speed != XFER_PIO_SLOW && speed != drive->current_speed)
+ // if (speed != XFER_PIO_SLOW && speed != drive->current_speed)
if (ide_config_drive_speed(drive, speed))
printk(KERN_WARNING "ide%d: Drive %d didn't "
"accept speed setting. Oh, well.\n",
--
dwmw2
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/