aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/misc/iwmc3200top/main.c
diff options
context:
space:
mode:
authorTomas Winkler <tomas.winkler@intel.com>2009-12-15 23:26:25 -0500
committerDavid S. Miller <davem@davemloft.net>2009-12-23 17:13:31 -0500
commit0df828f670b1fd8c469f3d60472ddca0d0f51fcf (patch)
tree37ff2a14a2238d38fc42ad7e471a62095a698790 /drivers/misc/iwmc3200top/main.c
parent9fa4d67c6e4d678271798f006ca1d945e8b2bd5c (diff)
iwmc3200top: cleanup log messages
1. add TRACE level 2. use TRACE where needed to reduce the noise 3 don't INFOEX from driver 4. add DUMP level for packets dumps 5. use correct context for the log messages Signed-off-by: Tomas Winkler <tomas.winkler@intel.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/misc/iwmc3200top/main.c')
-rw-r--r--drivers/misc/iwmc3200top/main.c25
1 files changed, 8 insertions, 17 deletions
diff --git a/drivers/misc/iwmc3200top/main.c b/drivers/misc/iwmc3200top/main.c
index fafcaa481d74..38627949ff54 100644
--- a/drivers/misc/iwmc3200top/main.c
+++ b/drivers/misc/iwmc3200top/main.c
@@ -66,7 +66,7 @@ static void iwmct_rescan_worker(struct work_struct *ws)
66 66
67 ret = bus_rescan_devices(priv->func->dev.bus); 67 ret = bus_rescan_devices(priv->func->dev.bus);
68 if (ret < 0) 68 if (ret < 0)
69 LOG_INFO(priv, FW_DOWNLOAD, "bus_rescan_devices FAILED!!!\n"); 69 LOG_INFO(priv, INIT, "bus_rescan_devices FAILED!!!\n");
70} 70}
71 71
72static void op_top_message(struct iwmct_priv *priv, struct top_msg *msg) 72static void op_top_message(struct iwmct_priv *priv, struct top_msg *msg)
@@ -137,7 +137,7 @@ int iwmct_send_hcmd(struct iwmct_priv *priv, u8 *cmd, u16 len)
137 int ret; 137 int ret;
138 u8 *buf; 138 u8 *buf;
139 139
140 LOG_INFOEX(priv, FW_MSG, "Sending hcmd:\n"); 140 LOG_TRACE(priv, FW_MSG, "Sending hcmd:\n");
141 141
142 /* add padding to 256 for IWMC */ 142 /* add padding to 256 for IWMC */
143 ((struct top_msg *)cmd)->hdr.flags |= CMD_FLAG_PADDING_256; 143 ((struct top_msg *)cmd)->hdr.flags |= CMD_FLAG_PADDING_256;
@@ -192,7 +192,7 @@ static void iwmct_irq_read_worker(struct work_struct *ws)
192 192
193 priv = container_of(ws, struct iwmct_priv, isr_worker); 193 priv = container_of(ws, struct iwmct_priv, isr_worker);
194 194
195 LOG_INFO(priv, IRQ, "enter iwmct_irq_read_worker %p\n", ws); 195 LOG_TRACE(priv, IRQ, "enter iwmct_irq_read_worker %p\n", ws);
196 196
197 /* --------------------- Handshake with device -------------------- */ 197 /* --------------------- Handshake with device -------------------- */
198 sdio_claim_host(priv->func); 198 sdio_claim_host(priv->func);
@@ -292,15 +292,6 @@ static void iwmct_irq_read_worker(struct work_struct *ws)
292 292
293 sdio_release_host(priv->func); 293 sdio_release_host(priv->func);
294 294
295
296 LOG_INFO(priv, IRQ, "barker download request 0x%x is:\n", priv->barker);
297 LOG_INFO(priv, IRQ, "******* Top FW %s requested ********\n",
298 (priv->barker & BARKER_DNLOAD_TOP_MSK) ? "was" : "not");
299 LOG_INFO(priv, IRQ, "******* GPS FW %s requested ********\n",
300 (priv->barker & BARKER_DNLOAD_GPS_MSK) ? "was" : "not");
301 LOG_INFO(priv, IRQ, "******* BT FW %s requested ********\n",
302 (priv->barker & BARKER_DNLOAD_BT_MSK) ? "was" : "not");
303
304 if (priv->dbg.fw_download) 295 if (priv->dbg.fw_download)
305 iwmct_fw_load(priv); 296 iwmct_fw_load(priv);
306 else 297 else
@@ -312,7 +303,7 @@ exit_release:
312 sdio_release_host(priv->func); 303 sdio_release_host(priv->func);
313exit: 304exit:
314 kfree(buf); 305 kfree(buf);
315 LOG_INFO(priv, IRQ, "exit iwmct_irq_read_worker\n"); 306 LOG_TRACE(priv, IRQ, "exit iwmct_irq_read_worker\n");
316} 307}
317 308
318static void iwmct_irq(struct sdio_func *func) 309static void iwmct_irq(struct sdio_func *func)
@@ -325,12 +316,12 @@ static void iwmct_irq(struct sdio_func *func)
325 316
326 priv = sdio_get_drvdata(func); 317 priv = sdio_get_drvdata(func);
327 318
328 LOG_INFO(priv, IRQ, "enter iwmct_irq\n"); 319 LOG_TRACE(priv, IRQ, "enter iwmct_irq\n");
329 320
330 /* read the function's status register */ 321 /* read the function's status register */
331 val = sdio_readb(func, IWMC_SDIO_INTR_STATUS_ADDR, &ret); 322 val = sdio_readb(func, IWMC_SDIO_INTR_STATUS_ADDR, &ret);
332 323
333 LOG_INFO(priv, IRQ, "iir value = %d, ret=%d\n", val, ret); 324 LOG_TRACE(priv, IRQ, "iir value = %d, ret=%d\n", val, ret);
334 325
335 if (!val) { 326 if (!val) {
336 LOG_ERROR(priv, IRQ, "iir = 0, exiting ISR\n"); 327 LOG_ERROR(priv, IRQ, "iir = 0, exiting ISR\n");
@@ -372,7 +363,7 @@ static void iwmct_irq(struct sdio_func *func)
372 363
373 queue_work(priv->wq, &priv->isr_worker); 364 queue_work(priv->wq, &priv->isr_worker);
374 365
375 LOG_INFO(priv, IRQ, "exit iwmct_irq\n"); 366 LOG_TRACE(priv, IRQ, "exit iwmct_irq\n");
376 367
377 return; 368 return;
378 369
@@ -660,7 +651,7 @@ static int __init iwmct_init(void)
660 651
661 /* Default log filter settings */ 652 /* Default log filter settings */
662 iwmct_log_set_filter(LOG_SRC_ALL, LOG_SEV_FILTER_RUNTIME); 653 iwmct_log_set_filter(LOG_SRC_ALL, LOG_SEV_FILTER_RUNTIME);
663 iwmct_log_set_filter(LOG_SRC_FW_MSG, LOG_SEV_FILTER_ALL); 654 iwmct_log_set_filter(LOG_SRC_FW_MSG, LOG_SEV_FW_FILTER_ALL);
664 iwmct_log_set_fw_filter(LOG_SRC_ALL, FW_LOG_SEV_FILTER_RUNTIME); 655 iwmct_log_set_fw_filter(LOG_SRC_ALL, FW_LOG_SEV_FILTER_RUNTIME);
665 656
666 rc = sdio_register_driver(&iwmct_driver); 657 rc = sdio_register_driver(&iwmct_driver);