Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 82523
b: refs/heads/master
c: bf77c53
h: refs/heads/master
i:
  82521: 1b89897
  82519: bad9a73
v: v3
  • Loading branch information
Bartlomiej Zolnierkiewicz committed Feb 2, 2008
1 parent beb87a2 commit 5c4b24b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: d4e6d4eb164bc0a110e2e0ba031e713e6226a27a
refs/heads/master: bf77c5317168eb73894bcc9a455429c4589a179d
13 changes: 9 additions & 4 deletions trunk/drivers/ide/setup-pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 5c4b24b

Please sign in to comment.