mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-26 02:40:55 +07:00
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: "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>
This commit is contained in:
parent
4f40bf4689
commit
e4e6c38cab
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user