Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=bf77c5317168eb73894bcc9a455429c4589a179d
Commit:     bf77c5317168eb73894bcc9a455429c4589a179d
Parent:     d4e6d4eb164bc0a110e2e0ba031e713e6226a27a
Author:     Bartlomiej Zolnierkiewicz <[EMAIL PROTECTED]>
AuthorDate: Sat Feb 2 19:56:30 2008 +0100
Committer:  Bartlomiej Zolnierkiewicz <[EMAIL PROTECTED]>
CommitDate: Sat Feb 2 19:56:30 2008 +0100

    ide: always set DMA masks in ide_pci_setup_ports()
    
    Always set DMA masks in ide_pci_setup_ports() to make sure that the valid
    masks for a host are set.
    
    Acked-by: Sergei Shtylyov <[EMAIL PROTECTED]>
    Signed-off-by: Bartlomiej Zolnierkiewicz <[EMAIL PROTECTED]>
---
 drivers/ide/setup-pci.c |   13 +++++++++----
 1 files changed, 9 insertions(+), 4 deletions(-)

diff --git a/drivers/ide/setup-pci.c b/drivers/ide/setup-pci.c
index 05db429..acef85d 100644
--- a/drivers/ide/setup-pci.c
+++ b/drivers/ide/setup-pci.c
@@ -558,10 +558,15 @@ void ide_pci_setup_ports(struct pci_dev *dev, const 
struct ide_port_info *d, int
                        hwif->drives[1].unmask = 1;
                }
 
-               if (hwif->dma_base) {
-                       hwif->swdma_mask = d->swdma_mask;
-                       hwif->mwdma_mask = d->mwdma_mask;
-                       hwif->ultra_mask = d->udma_mask;
+               hwif->swdma_mask = d->swdma_mask;
+               hwif->mwdma_mask = d->mwdma_mask;
+               hwif->ultra_mask = d->udma_mask;
+
+               if ((d->host_flags && IDE_HFLAG_NO_DMA) == 0 &&
+                   hwif->dma_base == 0) {
+                       hwif->swdma_mask = 0;
+                       hwif->mwdma_mask = 0;
+                       hwif->ultra_mask = 0;
                }
 
                hwif->drives[0].autotune = 1;
-
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