Skip to contentSkip to conversation

rt2x00: print chip and firmware version by default

PATCH In review Stanislaw Gruszka 3 participants 6 messages Jan 22, 2013 – Jan 23, 2013 Networking drivers (wireless)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 rt2x00: print chip and firmware version by default

---
 drivers/net/wireless/rt2x00/rt2x00.h    |    2 +-
 drivers/net/wireless/rt2x00/rt2x00mac.c |    6 +++---
 2 files changed, 4 insertions(+), 4 deletions(-)
drivers/net/wireless/rt2x00/rt2x00.h +1 -1
index 3e37c19..bef449c 100644
@@ -92,7 +92,7 @@
 #define NOTICE(__dev, __msg, __args...) \
 	DEBUG_PRINTK(__dev, KERN_NOTICE, "Notice", __msg, ##__args)
 #define INFO(__dev, __msg, __args...) \
-	DEBUG_PRINTK(__dev, KERN_INFO, "Info", __msg, ##__args)
+	DEBUG_PRINTK_MSG(__dev, KERN_INFO, "Info", __msg, ##__args)
 #define DEBUG(__dev, __msg, __args...) \
 	DEBUG_PRINTK(__dev, KERN_DEBUG, "Debug", __msg, ##__args)
 #define EEPROM(__dev, __msg, __args...) \
drivers/net/wireless/rt2x00/rt2x00mac.c +3 -3
index ed7a1bb..20c6ecc 100644
@@ -731,9 +731,9 @@ int rt2x00mac_conf_tx(struct ieee80211_hw *hw,
 	queue->aifs = params->aifs;
 	queue->txop = params->txop;
 
-	INFO(rt2x00dev,
-	     "Configured TX queue %d - CWmin: %d, CWmax: %d, Aifs: %d, TXop: %d.\n",
-	     queue_idx, queue->cw_min, queue->cw_max, queue->aifs, queue->txop);
+	DEBUG(rt2x00dev,
+	      "Configured TX queue %d - CWmin: %d, CWmax: %d, Aifs: %d, TXop: %d.\n",
+	      queue_idx, queue->cw_min, queue->cw_max, queue->aifs, queue->txop);
 
 	return 0;
 }
Signature · 1 line
1.7.4.4
#1 lore raw

Hi Stanislaw,

Sent from my iPad

Quoted 12 lines · Stanislaw Gruszka

---

drivers/net/wireless/rt2x00/rt2x00.h    |    2 +-
drivers/net/wireless/rt2x00/rt2x00mac.c |    6 +++---
2 files changed, 4 insertions(+), 4 deletions(-)
drivers/net/wireless/rt2x00/rt2x00.h +0 -0
index 3e37c19..bef449c 100644

drivers/net/wireless/rt2x00/rt2x00.h line 98

Quoted 8 lines
drivers/net/wireless/rt2x00/rt2x00.h +1 -1
@@ -92,7 +92,7 @@
 #define NOTICE(__dev, __msg, __args...) \
   DEBUG_PRINTK(__dev, KERN_NOTICE, "Notice", __msg, ##__args)
 #define INFO(__dev, __msg, __args...) \
-    DEBUG_PRINTK(__dev, KERN_INFO, "Info", __msg, ##__args)
+    DEBUG_PRINTK_MSG(__dev, KERN_INFO, "Info", __msg, ##__args)
 #define DEBUG(__dev, __msg, __args...) \
   DEBUG_PRINTK(__dev, KERN_DEBUG, "Debug", __msg, ##__args)
 #define EEPROM(__dev, __msg, __args...) \

I think this change is good, but we should also change WARNING and NOTICE. Otherwise they won't be displayed if CONFIG_RT2X00_DEBUG is disabled, but INFO will, which would be strange.

Quoted 24 lines
drivers/net/wireless/rt2x00/rt2x00mac.c +3 -3
index ed7a1bb..20c6ecc 100644
@@ -731,9 +731,9 @@ int rt2x00mac_conf_tx(struct ieee80211_hw *hw,
   queue->aifs = params->aifs;
   queue->txop = params->txop;
 
-    INFO(rt2x00dev,
-         "Configured TX queue %d - CWmin: %d, CWmax: %d, Aifs: %d, TXop: %d.\n",
-         queue_idx, queue->cw_min, queue->cw_max, queue->aifs, queue->txop);
+    DEBUG(rt2x00dev,
+          "Configured TX queue %d - CWmin: %d, CWmax: %d, Aifs: %d, TXop: %d.\n",
+          queue_idx, queue->cw_min, queue->cw_max, queue->aifs, queue->txop);
 
   return 0;
 }
Signature · 6 lines
1.7.4.4

--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#2 lore raw
Quoted 19 lines · Gertjan van Wingerde
Quoted 17 lines · Stanislaw Gruszka

---

drivers/net/wireless/rt2x00/rt2x00.h    |    2 +-
drivers/net/wireless/rt2x00/rt2x00mac.c |    6 +++---
2 files changed, 4 insertions(+), 4 deletions(-)
drivers/net/wireless/rt2x00/rt2x00.h +1 -1
index 3e37c19..bef449c 100644
@@ -92,7 +92,7 @@
 #define NOTICE(__dev, __msg, __args...) \
   DEBUG_PRINTK(__dev, KERN_NOTICE, "Notice", __msg, ##__args)
 #define INFO(__dev, __msg, __args...) \
-    DEBUG_PRINTK(__dev, KERN_INFO, "Info", __msg, ##__args)
+    DEBUG_PRINTK_MSG(__dev, KERN_INFO, "Info", __msg, ##__args)
Quoted 8 lines

drivers/net/wireless/rt2x00/rt2x00.h line 98

Quoted 3 lines
drivers/net/wireless/rt2x00/rt2x00.h +0 -0
 #define DEBUG(__dev, __msg, __args...) \
   DEBUG_PRINTK(__dev, KERN_DEBUG, "Debug", __msg, ##__args)
 #define EEPROM(__dev, __msg, __args...) \

I think this change is good, but we should also change WARNING and NOTICE. Otherwise they won't be displayed if CONFIG_RT2X00_DEBUG is disabled, but INFO will, which would be strange.

I believe this patch is so useful and trivial enough to be included, as is, in the next 3.8-rc .

The next steps can be done for 3.9

#3 lore raw
Quoted 26 lines · Xose Vazquez Perez
Quoted 23 lines · Gertjan van Wingerde
Quoted 20 lines · Stanislaw Gruszka

---

drivers/net/wireless/rt2x00/rt2x00.h    |    2 +-
drivers/net/wireless/rt2x00/rt2x00mac.c |    6 +++---
2 files changed, 4 insertions(+), 4 deletions(-)
drivers/net/wireless/rt2x00/rt2x00.h +1 -1
index 3e37c19..bef449c 100644
@@ -92,7 +92,7 @@
 #define NOTICE(__dev, __msg, __args...) \
   DEBUG_PRINTK(__dev, KERN_NOTICE, "Notice", __msg, ##__args)
 #define INFO(__dev, __msg, __args...) \
-    DEBUG_PRINTK(__dev, KERN_INFO, "Info", __msg, ##__args)
+    DEBUG_PRINTK_MSG(__dev, KERN_INFO, "Info", __msg, ##__args)
 #define DEBUG(__dev, __msg, __args...) \
   DEBUG_PRINTK(__dev, KERN_DEBUG, "Debug", __msg, ##__args)
 #define EEPROM(__dev, __msg, __args...) \
Quoted 3 lines
Quoted 3 lines

I think this change is good, but we should also change WARNING and NOTICE. Otherwise they won't be displayed if CONFIG_RT2X00_DEBUG is disabled, but INFO will, which would be strange.

We have those "TX status report missed" messages which spam logs, I think we should move them to DEBUG level then.

NOTICE is only used in suspend/resume, it should be DEBUG too and NOTICE macro could be removed.

Quoted 4 lines

I believe this patch is so useful and trivial enough to be included, as is, in the next 3.8-rc .

The next steps can be done for 3.9

If Gertjan will be so kind and ACK this patch, I'll post further changes as incremental patch :-)

Stanislaw

#4 lore raw

Hi Stanislaw,

Sent from my iPad

Quoted 36 lines · Stanislaw Gruszka
Quoted 20 lines · Xose Vazquez Perez
Quoted 18 lines · Gertjan van Wingerde
Quoted 16 lines · Stanislaw Gruszka

---

drivers/net/wireless/rt2x00/rt2x00.h    |    2 +-
drivers/net/wireless/rt2x00/rt2x00mac.c |    6 +++---
2 files changed, 4 insertions(+), 4 deletions(-)
drivers/net/wireless/rt2x00/rt2x00.h +0 -1
index 3e37c19..bef449c 100644
@@ -92,7 +92,7 @@
 #define NOTICE(__dev, __msg, __args...) \
  DEBUG_PRINTK(__dev, KERN_NOTICE, "Notice", __msg, ##__args)
 #define INFO(__dev, __msg, __args...) \
-    DEBUG_PRINTK(__dev, KERN_INFO, "Info", __msg, ##__args)
Quoted 8 lines
Quoted 8 lines

drivers/net/wireless/rt2x00/rt2x00.h line 98

Quoted 4 lines
drivers/net/wireless/rt2x00/rt2x00.h +1 -0
+    DEBUG_PRINTK_MSG(__dev, KERN_INFO, "Info", __msg, ##__args)
 #define DEBUG(__dev, __msg, __args...) \
  DEBUG_PRINTK(__dev, KERN_DEBUG, "Debug", __msg, ##__args)
 #define EEPROM(__dev, __msg, __args...) \

I think this change is good, but we should also change WARNING and NOTICE. Otherwise they won't be displayed if CONFIG_RT2X00_DEBUG is disabled, but INFO will, which would be strange.

We have those "TX status report missed" messages which spam logs, I think we should move them to DEBUG level then.

NOTICE is only used in suspend/resume, it should be DEBUG too and NOTICE macro could be removed.

Quoted 7 lines
Quoted 4 lines

I believe this patch is so useful and trivial enough to be included, as is, in the next 3.8-rc .

The next steps can be done for 3.9

If Gertjan will be so kind and ACK this patch, I'll post further changes as incremental patch :-)

As I mentioned to Xose already yesterday, I think this is only appropriate for -next, so we can do this properly. I can see this being handled as a series of patches, which first change the loglevels of the existing log lines, then remove NOTICE, and them change the macro of WARNING to not be covered by CONFIG_RT2X00_DEBUG.

---
Gertjan

#5 lore raw
In reply to Xose Vazquez Perez

Xose,

Sent from my iPad

Quoted 29 lines · Xose Vazquez Perez
Quoted 18 lines · Gertjan van Wingerde
Quoted 16 lines · Stanislaw Gruszka

---

drivers/net/wireless/rt2x00/rt2x00.h    |    2 +-
drivers/net/wireless/rt2x00/rt2x00mac.c |    6 +++---
2 files changed, 4 insertions(+), 4 deletions(-)
drivers/net/wireless/rt2x00/rt2x00.h +0 -1
index 3e37c19..bef449c 100644
@@ -92,7 +92,7 @@
 #define NOTICE(__dev, __msg, __args...) \
  DEBUG_PRINTK(__dev, KERN_NOTICE, "Notice", __msg, ##__args)
 #define INFO(__dev, __msg, __args...) \
-    DEBUG_PRINTK(__dev, KERN_INFO, "Info", __msg, ##__args)
Quoted 8 lines

drivers/net/wireless/rt2x00/rt2x00.h line 98

Quoted 4 lines
drivers/net/wireless/rt2x00/rt2x00.h +1 -0
+    DEBUG_PRINTK_MSG(__dev, KERN_INFO, "Info", __msg, ##__args)
 #define DEBUG(__dev, __msg, __args...) \
  DEBUG_PRINTK(__dev, KERN_DEBUG, "Debug", __msg, ##__args)
 #define EEPROM(__dev, __msg, __args...) \

I think this change is good, but we should also change WARNING and NOTICE. Otherwise they won't be displayed if CONFIG_RT2X00_DEBUG is disabled, but INFO will, which would be strange.

Quoted 4 lines

I believe this patch is so useful and trivial enough to be included, as is, in the next 3.8-rc .

The next steps can be done for 3.9

To be honest, I wouldn't classify this as a bug, so 3.8-rc is out of the question. And doing a respin to add the other log levels can easily be done rather quickly, so there's no need to split it up.

---
Gertjan