lkml.org 
[lkml]   [2005]   [Jan]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Subjectvia82cxxx resume failure.
    From
    Date
    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@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2005-03-22 14:09    [W:3.142 / U:1.080 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site