Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=362ebd83adb4ff2761b6f49a3570f501c3c7e467
Commit:     362ebd83adb4ff2761b6f49a3570f501c3c7e467
Parent:     b43c5f3dbe0c93dc205a7c69f892b94b7037d862
Author:     Albert Lee <[EMAIL PROTECTED]>
AuthorDate: Mon Mar 26 23:03:19 2007 +0200
Committer:  Bartlomiej Zolnierkiewicz <[EMAIL PROTECTED]>
CommitDate: Mon Mar 26 23:03:19 2007 +0200

    pdc202xx_new: Enable ATAPI DMA
    
    [ bart: the ressurection of 2 years old patch which slipped thru the cracks
      (thanks to Sergei Shtylyov for finding it) ]
    
    These is the patch to turn on pdc202xx_new for ATAPI DMA.  When testing, it
    works fine without the (request_bufflen % 256) workaround as needed in 
libata.
    ide-scsi filters out (pc->request_transfer % 1024) and use PIO, so the 
pdc202xx
    ATAPI DMA problem is avoid.  Both ide-cd and ide-scsi won't hit the ATAPI 
DMA
    problem on pdc202xx_new.
    
    Signed-off-by: Albert Lee <[EMAIL PROTECTED]>
    Signed-off-by: Bartlomiej Zolnierkiewicz <[EMAIL PROTECTED]>
---
 drivers/ide/pci/pdc202xx_new.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/drivers/ide/pci/pdc202xx_new.c b/drivers/ide/pci/pdc202xx_new.c
index 6ceb25b..ace9892 100644
--- a/drivers/ide/pci/pdc202xx_new.c
+++ b/drivers/ide/pci/pdc202xx_new.c
@@ -255,7 +255,7 @@ static int config_chipset_for_dma(ide_drive_t *drive)
                printk(KERN_WARNING "%s reduced to Ultra33 mode.\n", 
drive->name);
        }
 
-       if (drive->media != ide_disk)
+       if (drive->media != ide_disk && drive->media != ide_cdrom)
                return 0;
 
        if (id->capability & 4) {
@@ -545,6 +545,7 @@ static void __devinit init_hwif_pdc202new(ide_hwif_t *hwif)
 
        hwif->drives[0].autotune = hwif->drives[1].autotune = 1;
 
+       hwif->atapi_dma  = 1;
        hwif->ultra_mask = 0x7f;
        hwif->mwdma_mask = 0x07;
 
-
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