Merge "wil6210: Move dma mask setting after platform initialization"
This commit is contained in:
commit
53995bb66d
1 changed files with 15 additions and 15 deletions
|
@ -212,21 +212,6 @@ static int wil_pcie_probe(struct pci_dev *pdev, const struct pci_device_id *id)
|
||||||
return rc;
|
return rc;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* device supports 48 bit addresses */
|
|
||||||
rc = dma_set_mask_and_coherent(dev, DMA_BIT_MASK(48));
|
|
||||||
if (rc) {
|
|
||||||
dev_err(dev, "dma_set_mask_and_coherent(48) failed: %d\n", rc);
|
|
||||||
rc = dma_set_mask_and_coherent(dev, DMA_BIT_MASK(32));
|
|
||||||
if (rc) {
|
|
||||||
dev_err(dev,
|
|
||||||
"dma_set_mask_and_coherent(32) failed: %d\n",
|
|
||||||
rc);
|
|
||||||
goto if_free;
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
wil->use_extended_dma_addr = 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
wil->pdev = pdev;
|
wil->pdev = pdev;
|
||||||
pci_set_drvdata(pdev, wil);
|
pci_set_drvdata(pdev, wil);
|
||||||
/* rollback to if_free */
|
/* rollback to if_free */
|
||||||
|
@ -240,6 +225,21 @@ static int wil_pcie_probe(struct pci_dev *pdev, const struct pci_device_id *id)
|
||||||
}
|
}
|
||||||
/* rollback to err_plat */
|
/* rollback to err_plat */
|
||||||
|
|
||||||
|
/* device supports 48bit addresses */
|
||||||
|
rc = dma_set_mask_and_coherent(dev, DMA_BIT_MASK(48));
|
||||||
|
if (rc) {
|
||||||
|
dev_err(dev, "dma_set_mask_and_coherent(48) failed: %d\n", rc);
|
||||||
|
rc = dma_set_mask_and_coherent(dev, DMA_BIT_MASK(32));
|
||||||
|
if (rc) {
|
||||||
|
dev_err(dev,
|
||||||
|
"dma_set_mask_and_coherent(32) failed: %d\n",
|
||||||
|
rc);
|
||||||
|
goto err_plat;
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
wil->use_extended_dma_addr = 1;
|
||||||
|
}
|
||||||
|
|
||||||
rc = pci_enable_device(pdev);
|
rc = pci_enable_device(pdev);
|
||||||
if (rc) {
|
if (rc) {
|
||||||
wil_err(wil,
|
wil_err(wil,
|
||||||
|
|
Loading…
Add table
Reference in a new issue