Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e4e6c38c authored by Guo-Fu Tseng's avatar Guo-Fu Tseng Committed by David S. Miller
Browse files

jme: Remove 64 and 40 bit dma_mask



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: default avatar"Ethan" <ethanhsiao@jmicron.com>
Signed-off-by: default avatar"Guo-Fu Tseng" <cooldavid@cooldavid.org>
Acked-by: default avatarJeff Garzik <jgarzik@redhat.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 4f40bf46
Loading
Loading
Loading
Loading
+0 −8
Original line number Original line Diff line number Diff line
@@ -2591,14 +2591,6 @@ static const struct ethtool_ops jme_ethtool_ops = {
static int
static int
jme_pci_dma64(struct pci_dev *pdev)
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_dma_mask(pdev, DMA_32BIT_MASK))
		if (!pci_set_consistent_dma_mask(pdev, DMA_32BIT_MASK))
		if (!pci_set_consistent_dma_mask(pdev, DMA_32BIT_MASK))
			return 0;
			return 0;