diff options
Diffstat (limited to 'drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c')
-rw-r--r-- | drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c b/drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c index 038bfc8b7616..92ef4cb5a8e8 100644 --- a/drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c +++ b/drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c | |||
@@ -3421,19 +3421,14 @@ static int ixgbevf_probe(struct pci_dev *pdev, const struct pci_device_id *ent) | |||
3421 | if (err) | 3421 | if (err) |
3422 | return err; | 3422 | return err; |
3423 | 3423 | ||
3424 | if (!dma_set_mask(&pdev->dev, DMA_BIT_MASK(64)) && | 3424 | if (!dma_set_mask_and_coherent(&pdev->dev, DMA_BIT_MASK(64))) { |
3425 | !dma_set_coherent_mask(&pdev->dev, DMA_BIT_MASK(64))) { | ||
3426 | pci_using_dac = 1; | 3425 | pci_using_dac = 1; |
3427 | } else { | 3426 | } else { |
3428 | err = dma_set_mask(&pdev->dev, DMA_BIT_MASK(32)); | 3427 | err = dma_set_mask_and_coherent(&pdev->dev, DMA_BIT_MASK(32)); |
3429 | if (err) { | 3428 | if (err) { |
3430 | err = dma_set_coherent_mask(&pdev->dev, | 3429 | dev_err(&pdev->dev, "No usable DMA " |
3431 | DMA_BIT_MASK(32)); | 3430 | "configuration, aborting\n"); |
3432 | if (err) { | 3431 | goto err_dma; |
3433 | dev_err(&pdev->dev, "No usable DMA " | ||
3434 | "configuration, aborting\n"); | ||
3435 | goto err_dma; | ||
3436 | } | ||
3437 | } | 3432 | } |
3438 | pci_using_dac = 0; | 3433 | pci_using_dac = 0; |
3439 | } | 3434 | } |