diff options
author | Guo-Fu Tseng <cooldavid@cooldavid.org> | 2009-02-27 20:59:44 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-03-02 07:39:32 +0300 |
commit | 814c01dc7c533033b4e99981a2e24a6195bfb43c (patch) | |
tree | 56f8b27147b2a45ac2ae23f5bec736e1cba41a89 /drivers/net/jme.c | |
parent | eb352b838d42e66f0267c40249798ffda3c63037 (diff) | |
download | linux-814c01dc7c533033b4e99981a2e24a6195bfb43c.tar.xz |
jme: Adding {64,40}bits DMA mask back
All JMC250 chips have no problem with higher bits support.
Adding it back.
Found-by: Ethan Hsiao <ethanhsiao@jmicron.com>
Signed-off-by: Guo-Fu Tseng <cooldavid@cooldavid.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/jme.c')
-rw-r--r-- | drivers/net/jme.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/net/jme.c b/drivers/net/jme.c index 47dd47fd0ace..4da81a3602dc 100644 --- a/drivers/net/jme.c +++ b/drivers/net/jme.c @@ -2589,6 +2589,16 @@ static const struct ethtool_ops jme_ethtool_ops = { static int jme_pci_dma64(struct pci_dev *pdev) { + if (pdev->device == PCI_DEVICE_ID_JMICRON_JMC250 && + !pci_set_dma_mask(pdev, DMA_64BIT_MASK)) + if (!pci_set_consistent_dma_mask(pdev, DMA_64BIT_MASK)) + return 1; + + if (pdev->device == PCI_DEVICE_ID_JMICRON_JMC250 && + !pci_set_dma_mask(pdev, DMA_40BIT_MASK)) + if (!pci_set_consistent_dma_mask(pdev, DMA_40BIT_MASK)) + return 1; + if (!pci_set_dma_mask(pdev, DMA_32BIT_MASK)) if (!pci_set_consistent_dma_mask(pdev, DMA_32BIT_MASK)) return 0; |