aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/wil6210/pcie_bus.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/ath/wil6210/pcie_bus.c')
-rw-r--r--drivers/net/wireless/ath/wil6210/pcie_bus.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/wil6210/pcie_bus.c b/drivers/net/wireless/ath/wil6210/pcie_bus.c
index e1c8cc4a4b92..f1e1bb338d68 100644
--- a/drivers/net/wireless/ath/wil6210/pcie_bus.c
+++ b/drivers/net/wireless/ath/wil6210/pcie_bus.c
@@ -68,10 +68,14 @@ static int wil_if_pcie_enable(struct wil6210_priv *wil)
68 goto stop_master; 68 goto stop_master;
69 69
70 /* need reset here to obtain MAC */ 70 /* need reset here to obtain MAC */
71 mutex_lock(&wil->mutex);
71 rc = wil_reset(wil); 72 rc = wil_reset(wil);
73 mutex_unlock(&wil->mutex);
72 if (rc) 74 if (rc)
73 goto release_irq; 75 goto release_irq;
74 76
77 wil_info(wil, "HW version: 0x%08x\n", wil->hw_version);
78
75 return 0; 79 return 0;
76 80
77 release_irq: 81 release_irq:
@@ -149,6 +153,7 @@ static int wil_pcie_probe(struct pci_dev *pdev, const struct pci_device_id *id)
149 pci_set_drvdata(pdev, wil); 153 pci_set_drvdata(pdev, wil);
150 wil->pdev = pdev; 154 wil->pdev = pdev;
151 155
156 wil6210_clear_irq(wil);
152 /* FW should raise IRQ when ready */ 157 /* FW should raise IRQ when ready */
153 rc = wil_if_pcie_enable(wil); 158 rc = wil_if_pcie_enable(wil);
154 if (rc) { 159 if (rc) {