Skip to content

Commit

Permalink
iwlwifi: support 64 bit DMA masks
Browse files Browse the repository at this point in the history
This patch adds consistent DMA masks for 64 bit

Signed-off-by: Ron Rindjunsky <ron.rindjunsky@intel.com>
Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
  • Loading branch information
Ron Rindjunsky authored and John W. Linville committed May 7, 2008
1 parent b73cdf2 commit cc2a8ea
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions drivers/net/wireless/iwlwifi/iwl4965-base.c
Original file line number Diff line number Diff line change
Expand Up @@ -7440,13 +7440,19 @@ static int iwl4965_pci_probe(struct pci_dev *pdev, const struct pci_device_id *e

pci_set_master(pdev);

err = pci_set_dma_mask(pdev, DMA_32BIT_MASK);
err = pci_set_dma_mask(pdev, DMA_64BIT_MASK);
if (!err)
err = pci_set_consistent_dma_mask(pdev, DMA_32BIT_MASK);
err = pci_set_consistent_dma_mask(pdev, DMA_64BIT_MASK);
if (err) {
err = pci_set_dma_mask(pdev, DMA_32BIT_MASK);
if (!err)
err = pci_set_consistent_dma_mask(pdev, DMA_32BIT_MASK);
/* both attempts failed: */
if (err) {
printk(KERN_WARNING DRV_NAME
": No suitable DMA available.\n");
printk(KERN_WARNING "%s: No suitable DMA available.\n",
DRV_NAME);
goto out_pci_disable_device;
}
}

err = pci_request_regions(pdev, DRV_NAME);
Expand Down

0 comments on commit cc2a8ea

Please sign in to comment.