diff options
author | Ron Rindjunsky <ron.rindjunsky@intel.com> | 2008-04-21 18:41:59 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-05-07 15:02:16 -0400 |
commit | cc2a8ea82ef869532cb7764b9eac30338773fe88 (patch) | |
tree | 6d8a0930deeb94639b50f47c279a69b9cc2d70e3 /drivers/net/wireless/iwlwifi/iwl4965-base.c | |
parent | b73cdf27e0f412bcd01802287bb9710e6b74fca5 (diff) |
iwlwifi: support 64 bit DMA masks
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>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl4965-base.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl4965-base.c | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl4965-base.c b/drivers/net/wireless/iwlwifi/iwl4965-base.c index 6309f08c3a13..028523af0104 100644 --- a/drivers/net/wireless/iwlwifi/iwl4965-base.c +++ b/drivers/net/wireless/iwlwifi/iwl4965-base.c | |||
@@ -7440,13 +7440,19 @@ static int iwl4965_pci_probe(struct pci_dev *pdev, const struct pci_device_id *e | |||
7440 | 7440 | ||
7441 | pci_set_master(pdev); | 7441 | pci_set_master(pdev); |
7442 | 7442 | ||
7443 | err = pci_set_dma_mask(pdev, DMA_32BIT_MASK); | 7443 | err = pci_set_dma_mask(pdev, DMA_64BIT_MASK); |
7444 | if (!err) | 7444 | if (!err) |
7445 | err = pci_set_consistent_dma_mask(pdev, DMA_32BIT_MASK); | 7445 | err = pci_set_consistent_dma_mask(pdev, DMA_64BIT_MASK); |
7446 | if (err) { | ||
7447 | err = pci_set_dma_mask(pdev, DMA_32BIT_MASK); | ||
7448 | if (!err) | ||
7449 | err = pci_set_consistent_dma_mask(pdev, DMA_32BIT_MASK); | ||
7450 | /* both attempts failed: */ | ||
7446 | if (err) { | 7451 | if (err) { |
7447 | printk(KERN_WARNING DRV_NAME | 7452 | printk(KERN_WARNING "%s: No suitable DMA available.\n", |
7448 | ": No suitable DMA available.\n"); | 7453 | DRV_NAME); |
7449 | goto out_pci_disable_device; | 7454 | goto out_pci_disable_device; |
7455 | } | ||
7450 | } | 7456 | } |
7451 | 7457 | ||
7452 | err = pci_request_regions(pdev, DRV_NAME); | 7458 | err = pci_request_regions(pdev, DRV_NAME); |