diff options
author | John W. Linville <linville@tuxdriver.com> | 2010-05-10 14:24:34 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-05-10 14:24:34 -0400 |
commit | 9e385c56a1eecfb62dbc5162037fb4ed1676b27e (patch) | |
tree | c1298dfac02ec6cac8bb86c6e045762a84e41f68 /drivers/net/wireless/rtl818x | |
parent | 1affa091975e47d50ce6a88e9b1abfe717c2fe27 (diff) |
rtl8180: change PCI DMA mask to DMA_BIT_MASK(32)
From the original report:
"I had problems to get my rtl8185 PCI card running on Sparc64: I always
got an error about "No suitable DMA available" followed by an error
that no device could be detected. When comparing the rtl8180 driver to
others I noticed that others are mostly using DMA_BIT_MASK so I changed
the custom mask to DMA_BIT_MASK(32) which fixed my issue."
Reported-by: Tiziano Müller <tm@dev-zero.ch>
Acked-by: David S. Miller <davem@davemloft.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/rtl818x')
-rw-r--r-- | drivers/net/wireless/rtl818x/rtl8180_dev.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/wireless/rtl818x/rtl8180_dev.c b/drivers/net/wireless/rtl818x/rtl8180_dev.c index cbdc5cfec90c..9430f962c168 100644 --- a/drivers/net/wireless/rtl818x/rtl8180_dev.c +++ b/drivers/net/wireless/rtl818x/rtl8180_dev.c | |||
@@ -926,8 +926,8 @@ static int __devinit rtl8180_probe(struct pci_dev *pdev, | |||
926 | goto err_free_reg; | 926 | goto err_free_reg; |
927 | } | 927 | } |
928 | 928 | ||
929 | if ((err = pci_set_dma_mask(pdev, 0xFFFFFF00ULL)) || | 929 | if ((err = pci_set_dma_mask(pdev, DMA_BIT_MASK(32))) || |
930 | (err = pci_set_consistent_dma_mask(pdev, 0xFFFFFF00ULL))) { | 930 | (err = pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(32)))) { |
931 | printk(KERN_ERR "%s (rtl8180): No suitable DMA available\n", | 931 | printk(KERN_ERR "%s (rtl8180): No suitable DMA available\n", |
932 | pci_name(pdev)); | 932 | pci_name(pdev)); |
933 | goto err_free_reg; | 933 | goto err_free_reg; |