diff options
author | Vladimir Kondratiev <qca_vkondrat@qca.qualcomm.com> | 2014-04-08 04:36:16 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2014-04-22 15:06:28 -0400 |
commit | 15e23124cea7315a5bef1c60f8368af035cd06c5 (patch) | |
tree | 042e68eb91badce0599a4c7830252727c8808a77 /drivers/net/wireless | |
parent | d463af4a1c344beb26937b9ba79d129faad6b1d9 (diff) |
wil6210: fix printouts for better readability
Reshuffle prints to consolidate firmware/hardware information
report upon card init
Convert print for unhandled MISC ISR bits to "debug" - it is
normal situation and not an "error"
Signed-off-by: Vladimir Kondratiev <qca_vkondrat@qca.qualcomm.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless')
-rw-r--r-- | drivers/net/wireless/ath/wil6210/interrupt.c | 2 | ||||
-rw-r--r-- | drivers/net/wireless/ath/wil6210/main.c | 4 | ||||
-rw-r--r-- | drivers/net/wireless/ath/wil6210/pcie_bus.c | 2 | ||||
-rw-r--r-- | drivers/net/wireless/ath/wil6210/wmi.c | 8 |
4 files changed, 7 insertions, 9 deletions
diff --git a/drivers/net/wireless/ath/wil6210/interrupt.c b/drivers/net/wireless/ath/wil6210/interrupt.c index 5824cd41e4ba..73593aa3cd98 100644 --- a/drivers/net/wireless/ath/wil6210/interrupt.c +++ b/drivers/net/wireless/ath/wil6210/interrupt.c | |||
@@ -338,7 +338,7 @@ static irqreturn_t wil6210_irq_misc_thread(int irq, void *cookie) | |||
338 | } | 338 | } |
339 | 339 | ||
340 | if (isr) | 340 | if (isr) |
341 | wil_err(wil, "un-handled MISC ISR bits 0x%08x\n", isr); | 341 | wil_dbg_irq(wil, "un-handled MISC ISR bits 0x%08x\n", isr); |
342 | 342 | ||
343 | wil->isr_misc = 0; | 343 | wil->isr_misc = 0; |
344 | 344 | ||
diff --git a/drivers/net/wireless/ath/wil6210/main.c b/drivers/net/wireless/ath/wil6210/main.c index 95f4efe9ef37..1b265fd19de2 100644 --- a/drivers/net/wireless/ath/wil6210/main.c +++ b/drivers/net/wireless/ath/wil6210/main.c | |||
@@ -363,8 +363,8 @@ static int wil_wait_for_fw_ready(struct wil6210_priv *wil) | |||
363 | wil_err(wil, "Firmware not ready\n"); | 363 | wil_err(wil, "Firmware not ready\n"); |
364 | return -ETIME; | 364 | return -ETIME; |
365 | } else { | 365 | } else { |
366 | wil_dbg_misc(wil, "FW ready after %d ms\n", | 366 | wil_info(wil, "FW ready after %d ms. HW version 0x%08x\n", |
367 | jiffies_to_msecs(to-left)); | 367 | jiffies_to_msecs(to-left), wil->hw_version); |
368 | } | 368 | } |
369 | return 0; | 369 | return 0; |
370 | } | 370 | } |
diff --git a/drivers/net/wireless/ath/wil6210/pcie_bus.c b/drivers/net/wireless/ath/wil6210/pcie_bus.c index f1e1bb338d68..066088418307 100644 --- a/drivers/net/wireless/ath/wil6210/pcie_bus.c +++ b/drivers/net/wireless/ath/wil6210/pcie_bus.c | |||
@@ -74,8 +74,6 @@ static int wil_if_pcie_enable(struct wil6210_priv *wil) | |||
74 | if (rc) | 74 | if (rc) |
75 | goto release_irq; | 75 | goto release_irq; |
76 | 76 | ||
77 | wil_info(wil, "HW version: 0x%08x\n", wil->hw_version); | ||
78 | |||
79 | return 0; | 77 | return 0; |
80 | 78 | ||
81 | release_irq: | 79 | release_irq: |
diff --git a/drivers/net/wireless/ath/wil6210/wmi.c b/drivers/net/wireless/ath/wil6210/wmi.c index 2ba56eef0c45..b7764f35ab61 100644 --- a/drivers/net/wireless/ath/wil6210/wmi.c +++ b/drivers/net/wireless/ath/wil6210/wmi.c | |||
@@ -192,7 +192,7 @@ static int __wmi_send(struct wil6210_priv *wil, u16 cmdid, void *buf, u16 len) | |||
192 | might_sleep(); | 192 | might_sleep(); |
193 | 193 | ||
194 | if (!test_bit(wil_status_fwready, &wil->status)) { | 194 | if (!test_bit(wil_status_fwready, &wil->status)) { |
195 | wil_err(wil, "FW not ready\n"); | 195 | wil_err(wil, "WMI: cannot send command while FW not ready\n"); |
196 | return -EAGAIN; | 196 | return -EAGAIN; |
197 | } | 197 | } |
198 | 198 | ||
@@ -276,8 +276,8 @@ static void wmi_evt_ready(struct wil6210_priv *wil, int id, void *d, int len) | |||
276 | wil->fw_version = le32_to_cpu(evt->sw_version); | 276 | wil->fw_version = le32_to_cpu(evt->sw_version); |
277 | wil->n_mids = evt->numof_additional_mids; | 277 | wil->n_mids = evt->numof_additional_mids; |
278 | 278 | ||
279 | wil_dbg_wmi(wil, "FW ver. %d; MAC %pM; %d MID's\n", wil->fw_version, | 279 | wil_info(wil, "FW ver. %d; MAC %pM; %d MID's\n", wil->fw_version, |
280 | evt->mac, wil->n_mids); | 280 | evt->mac, wil->n_mids); |
281 | 281 | ||
282 | if (!is_valid_ether_addr(ndev->dev_addr)) { | 282 | if (!is_valid_ether_addr(ndev->dev_addr)) { |
283 | memcpy(ndev->dev_addr, evt->mac, ETH_ALEN); | 283 | memcpy(ndev->dev_addr, evt->mac, ETH_ALEN); |
@@ -290,7 +290,7 @@ static void wmi_evt_ready(struct wil6210_priv *wil, int id, void *d, int len) | |||
290 | static void wmi_evt_fw_ready(struct wil6210_priv *wil, int id, void *d, | 290 | static void wmi_evt_fw_ready(struct wil6210_priv *wil, int id, void *d, |
291 | int len) | 291 | int len) |
292 | { | 292 | { |
293 | wil_dbg_wmi(wil, "WMI: FW ready\n"); | 293 | wil_dbg_wmi(wil, "WMI: got FW ready event\n"); |
294 | 294 | ||
295 | set_bit(wil_status_fwready, &wil->status); | 295 | set_bit(wil_status_fwready, &wil->status); |
296 | /* reuse wmi_ready for the firmware ready indication */ | 296 | /* reuse wmi_ready for the firmware ready indication */ |