Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=326d72f437b0a9216290ad8f10817e1e363fd813
Commit:     326d72f437b0a9216290ad8f10817e1e363fd813
Parent:     fabe1510568acd5194f630dbbcf77a34610d7e9e
Author:     Bartlomiej Zolnierkiewicz <[EMAIL PROTECTED]>
AuthorDate: Thu Oct 11 23:54:01 2007 +0200
Committer:  Bartlomiej Zolnierkiewicz <[EMAIL PROTECTED]>
CommitDate: Thu Oct 11 23:54:01 2007 +0200

    cs5520: don't enable VDMA in ->speedproc
    
    There is no need to do it in cs5520_tune_chipset() (->speedproc method)
    since it is correctly handled by cs5520_dma_on() (->ide_dma_on method).
    
    Acked-by: Sergei Shtylyov <[EMAIL PROTECTED]>
    Signed-off-by: Bartlomiej Zolnierkiewicz <[EMAIL PROTECTED]>
---
 drivers/ide/pci/cs5520.c |   13 ++++---------
 1 files changed, 4 insertions(+), 9 deletions(-)

diff --git a/drivers/ide/pci/cs5520.c b/drivers/ide/pci/cs5520.c
index a73c318..e6af534 100644
--- a/drivers/ide/pci/cs5520.c
+++ b/drivers/ide/pci/cs5520.c
@@ -73,7 +73,6 @@ static int cs5520_tune_chipset(ide_drive_t *drive, const u8 
speed)
        int pio = speed;
        u8 reg;
        int controller = drive->dn > 1 ? 1 : 0;
-       int error;
 
        switch(speed)
        {
@@ -114,14 +113,9 @@ static int cs5520_tune_chipset(ide_drive_t *drive, const 
u8 speed)
        reg = inb(hwif->dma_base + 0x02 + 8*controller);
        reg |= 1<<((drive->dn&1)+5);
        outb(reg, hwif->dma_base + 0x02 + 8*controller);
-               
-       error = ide_config_drive_speed(drive, speed);
-       /* ATAPI is harder so leave it for now */
-       if(!error && drive->media == ide_disk)
-               error = hwif->ide_dma_on(drive);
 
-       return error;
-}      
+       return ide_config_drive_speed(drive, speed);
+}
 
 static void cs5520_set_pio_mode(ide_drive_t *drive, const u8 pio)
 {
@@ -177,7 +171,8 @@ static void __devinit init_hwif_cs5520(ide_hwif_t *hwif)
                hwif->drives[1].autotune = 1;
                return;
        }
-       
+
+       /* ATAPI is harder so leave it for now */
        hwif->atapi_dma = 0;
        hwif->ultra_mask = 0;
        hwif->swdma_mask = 0;
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to