jme: Remove 64 and 40 bit dma_mask
authorGuo-Fu Tseng <cooldavid@cooldavid.org>
Thu, 4 Dec 2008 05:20:04 +0000 (21:20 -0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 4 Dec 2008 05:20:04 +0000 (21:20 -0800)
Although the hardware supports the 64bit DMA address in design,
but later found that it actually not working.
This patch reduced the rang to 32bit.

Found-by: "Ethan" <ethanhsiao@jmicron.com>
Signed-off-by: "Guo-Fu Tseng" <cooldavid@cooldavid.org>
Acked-by: Jeff Garzik <jgarzik@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/jme.c

index e10d9f38662c6fce4e35c5e658bff0c8dbd98608..15035cb1738a44b24dce5f10089fa2a794713576 100644 (file)
@@ -2591,14 +2591,6 @@ static const struct ethtool_ops jme_ethtool_ops = {
 static int
 jme_pci_dma64(struct pci_dev *pdev)
 {
-       if (!pci_set_dma_mask(pdev, DMA_64BIT_MASK))
-               if (!pci_set_consistent_dma_mask(pdev, DMA_64BIT_MASK))
-                       return 1;
-
-       if (!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;