|
@@ -1854,6 +1854,10 @@ struct iwl_trans *iwl_trans_pcie_alloc(struct pci_dev *pdev,
|
|
|
* PCI Tx retries from interfering with C3 CPU state */
|
|
|
pci_write_config_byte(pdev, PCI_CFG_RETRY_TIMEOUT, 0x00);
|
|
|
|
|
|
+ trans->dev = &pdev->dev;
|
|
|
+ trans_pcie->pci_dev = pdev;
|
|
|
+ iwl_disable_interrupts(trans);
|
|
|
+
|
|
|
err = pci_enable_msi(pdev);
|
|
|
if (err) {
|
|
|
dev_err(&pdev->dev, "pci_enable_msi failed(0X%x)\n", err);
|
|
@@ -1865,8 +1869,6 @@ struct iwl_trans *iwl_trans_pcie_alloc(struct pci_dev *pdev,
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- trans->dev = &pdev->dev;
|
|
|
- trans_pcie->pci_dev = pdev;
|
|
|
trans->hw_rev = iwl_read32(trans, CSR_HW_REV);
|
|
|
trans->hw_id = (pdev->device << 16) + pdev->subsystem_device;
|
|
|
snprintf(trans->hw_id_str, sizeof(trans->hw_id_str),
|
|
@@ -1892,8 +1894,6 @@ struct iwl_trans *iwl_trans_pcie_alloc(struct pci_dev *pdev,
|
|
|
goto out_pci_disable_msi;
|
|
|
}
|
|
|
|
|
|
- trans_pcie->inta_mask = CSR_INI_SET_MASK;
|
|
|
-
|
|
|
if (iwl_pcie_alloc_ict(trans))
|
|
|
goto out_free_cmd_pool;
|
|
|
|
|
@@ -1905,6 +1905,8 @@ struct iwl_trans *iwl_trans_pcie_alloc(struct pci_dev *pdev,
|
|
|
goto out_free_ict;
|
|
|
}
|
|
|
|
|
|
+ trans_pcie->inta_mask = CSR_INI_SET_MASK;
|
|
|
+
|
|
|
return trans;
|
|
|
|
|
|
out_free_ict:
|