ChangeSet 1.2224.1.127, 2005/04/02 16:09:12+02:00, [EMAIL PROTECTED](none)
[ide] fix via82cxxx resume failure
With David Woodhouse <[EMAIL PROTECTED]>.
On resume from sleep, via_set_speed() doesn't reinstate the correct
mode, because it thinks the drive is already configured correctly.
Also kill redundant printk, ide_config_drive_speed() warns about errors.
Signed-off-by: Bartlomiej Zolnierkiewicz <[EMAIL PROTECTED]>
via82cxxx.c | 7 ++-----
1 files changed, 2 insertions(+), 5 deletions(-)
diff -Nru a/drivers/ide/pci/via82cxxx.c b/drivers/ide/pci/via82cxxx.c
--- a/drivers/ide/pci/via82cxxx.c 2005-04-03 21:25:22 -07:00
+++ b/drivers/ide/pci/via82cxxx.c 2005-04-03 21:25:22 -07:00
@@ -332,11 +332,8 @@
struct ide_timing t, p;
unsigned int T, UT;
- 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",
- drive->dn >> 1, drive->dn & 1);
+ if (speed != XFER_PIO_SLOW)
+ ide_config_drive_speed(drive, speed);
T = 1000000000 / via_clock;
-
To unsubscribe from this list: send the line "unsubscribe bk-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at http://vger.kernel.org/majordomo-info.html