mirror of
https://github.com/torvalds/linux.git
synced 2024-12-04 18:13:04 +00:00
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>
This commit is contained in:
parent
eb352b838d
commit
814c01dc7c
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user