|
@@ -1247,11 +1247,9 @@ static int efx_init_io(struct efx_nic *efx)
|
|
* masks event though they reject 46 bit masks.
|
|
* masks event though they reject 46 bit masks.
|
|
*/
|
|
*/
|
|
while (dma_mask > 0x7fffffffUL) {
|
|
while (dma_mask > 0x7fffffffUL) {
|
|
- if (dma_supported(&pci_dev->dev, dma_mask)) {
|
|
|
|
- rc = dma_set_mask_and_coherent(&pci_dev->dev, dma_mask);
|
|
|
|
- if (rc == 0)
|
|
|
|
- break;
|
|
|
|
- }
|
|
|
|
|
|
+ rc = dma_set_mask_and_coherent(&pci_dev->dev, dma_mask);
|
|
|
|
+ if (rc == 0)
|
|
|
|
+ break;
|
|
dma_mask >>= 1;
|
|
dma_mask >>= 1;
|
|
}
|
|
}
|
|
if (rc) {
|
|
if (rc) {
|