linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] ath9k_hw: few initval cosmetic changes
@ 2010-04-20 22:28 Luis R. Rodriguez
  2010-04-20 22:28 ` [PATCH 1/2] ath9k_hw: make two initvals consto for the AR9001 family Luis R. Rodriguez
  2010-04-20 22:28 ` [PATCH 2/2] ath9k_hw: make all AR9002 initvals use u32 Luis R. Rodriguez
  0 siblings, 2 replies; 7+ messages in thread
From: Luis R. Rodriguez @ 2010-04-20 22:28 UTC (permalink / raw)
  To: linville; +Cc: linux-wireless, Luis R. Rodriguez

Just a few cosmetic changes to the initvals. Using the checksum checker
I confirm the values are still intact :)

Luis R. Rodriguez (2):
  ath9k_hw: make two initvals consto for the AR9001 family
  ath9k_hw: make all AR9002 initvals use u32

 drivers/net/wireless/ath/ath9k/ar9001_initvals.h |    4 +-
 drivers/net/wireless/ath/ath9k/ar9002_initvals.h |   68 +++++++++++-----------
 2 files changed, 36 insertions(+), 36 deletions(-)


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [PATCH 1/2] ath9k_hw: make two initvals consto for the AR9001 family
  2010-04-20 22:28 [PATCH 0/2] ath9k_hw: few initval cosmetic changes Luis R. Rodriguez
@ 2010-04-20 22:28 ` Luis R. Rodriguez
  2010-04-21 21:54   ` Pavel Roskin
  2010-04-20 22:28 ` [PATCH 2/2] ath9k_hw: make all AR9002 initvals use u32 Luis R. Rodriguez
  1 sibling, 1 reply; 7+ messages in thread
From: Luis R. Rodriguez @ 2010-04-20 22:28 UTC (permalink / raw)
  To: linville; +Cc: linux-wireless, Luis R. Rodriguez

This makes ar5416Addac_9160 and ar5416Addac_9160 const
I guess we skipped them long ago.

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
---
 drivers/net/wireless/ath/ath9k/ar9001_initvals.h |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/net/wireless/ath/ath9k/ar9001_initvals.h b/drivers/net/wireless/ath/ath9k/ar9001_initvals.h
index 20abffe..0b94bd3 100644
--- a/drivers/net/wireless/ath/ath9k/ar9001_initvals.h
+++ b/drivers/net/wireless/ath/ath9k/ar9001_initvals.h
@@ -1182,7 +1182,7 @@ static const u32 ar5416Bank7_9160[][2] = {
     { 0x000098cc, 0x0000000e },
 };
 
-static u32 ar5416Addac_9160[][2] = {
+static const u32 ar5416Addac_9160[][2] = {
     {0x0000989c,  0x00000000 },
     {0x0000989c,  0x00000000 },
     {0x0000989c,  0x00000000 },
@@ -1217,7 +1217,7 @@ static u32 ar5416Addac_9160[][2] = {
     {0x000098cc,  0x00000000 },
 };
 
-static u32 ar5416Addac_91601_1[][2] = {
+static const u32 ar5416Addac_91601_1[][2] = {
     {0x0000989c,  0x00000000 },
     {0x0000989c,  0x00000000 },
     {0x0000989c,  0x00000000 },
-- 
1.6.3.3


^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [PATCH 2/2] ath9k_hw: make all AR9002 initvals use u32
  2010-04-20 22:28 [PATCH 0/2] ath9k_hw: few initval cosmetic changes Luis R. Rodriguez
  2010-04-20 22:28 ` [PATCH 1/2] ath9k_hw: make two initvals consto for the AR9001 family Luis R. Rodriguez
@ 2010-04-20 22:28 ` Luis R. Rodriguez
  2010-04-20 23:34   ` Gábor Stefanik
  1 sibling, 1 reply; 7+ messages in thread
From: Luis R. Rodriguez @ 2010-04-20 22:28 UTC (permalink / raw)
  To: linville; +Cc: linux-wireless, Luis R. Rodriguez

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
---
 drivers/net/wireless/ath/ath9k/ar9002_initvals.h |   68 +++++++++++-----------
 1 files changed, 34 insertions(+), 34 deletions(-)

diff --git a/drivers/net/wireless/ath/ath9k/ar9002_initvals.h b/drivers/net/wireless/ath/ath9k/ar9002_initvals.h
index 0f74ea7..f06313d 100644
--- a/drivers/net/wireless/ath/ath9k/ar9002_initvals.h
+++ b/drivers/net/wireless/ath/ath9k/ar9002_initvals.h
@@ -1468,7 +1468,7 @@ static const u32 ar9280PciePhy_clkreq_always_on_L1_9280[][2] = {
 };
 
 /* AR9285 Revsion 10*/
-static const u_int32_t ar9285Modes_9285[][6] = {
+static const u32 ar9285Modes_9285[][6] = {
     { 0x00001030, 0x00000230, 0x00000460, 0x000002c0, 0x00000160, 0x000001e0 },
     { 0x00001070, 0x00000168, 0x000002d0, 0x00000318, 0x0000018c, 0x000001e0 },
     { 0x000010b0, 0x00000e60, 0x00001cc0, 0x00007c70, 0x00003e38, 0x00001180 },
@@ -1790,7 +1790,7 @@ static const u_int32_t ar9285Modes_9285[][6] = {
     { 0x0000a358, 0x7999aa02, 0x7999aa02, 0x7999aa0e, 0x7999aa0e, 0x7999aa0e },
 };
 
-static const u_int32_t ar9285Common_9285[][2] = {
+static const u32 ar9285Common_9285[][2] = {
     { 0x0000000c, 0x00000000 },
     { 0x00000030, 0x00020045 },
     { 0x00000034, 0x00000005 },
@@ -2123,7 +2123,7 @@ static const u_int32_t ar9285Common_9285[][2] = {
     { 0x00007870, 0x10142c00 },
 };
 
-static const u_int32_t ar9285PciePhy_clkreq_always_on_L1_9285[][2] = {
+static const u32 ar9285PciePhy_clkreq_always_on_L1_9285[][2] = {
     {0x00004040,  0x9248fd00 },
     {0x00004040,  0x24924924 },
     {0x00004040,  0xa8000019 },
@@ -2136,7 +2136,7 @@ static const u_int32_t ar9285PciePhy_clkreq_always_on_L1_9285[][2] = {
     {0x00004044,  0x00000000 },
 };
 
-static const u_int32_t ar9285PciePhy_clkreq_off_L1_9285[][2] = {
+static const u32 ar9285PciePhy_clkreq_off_L1_9285[][2] = {
     {0x00004040,  0x9248fd00 },
     {0x00004040,  0x24924924 },
     {0x00004040,  0xa8000019 },
@@ -2150,7 +2150,7 @@ static const u_int32_t ar9285PciePhy_clkreq_off_L1_9285[][2] = {
 };
 
 /* AR9285 v1_2 PCI Register Writes.  Created: 04/13/09 */
-static const u_int32_t ar9285Modes_9285_1_2[][6] = {
+static const u32 ar9285Modes_9285_1_2[][6] = {
     /* Address      5G-HT20     5G-HT40     2G-HT40     2G-HT20     Turbo   */
     { 0x00001030, 0x00000230, 0x00000460, 0x000002c0, 0x00000160, 0x000001e0 },
     { 0x00001070, 0x00000168, 0x000002d0, 0x00000318, 0x0000018c, 0x000001e0 },
@@ -2456,7 +2456,7 @@ static const u_int32_t ar9285Modes_9285_1_2[][6] = {
     { 0x0000a358, 0x7999aa02, 0x7999aa02, 0x7999aa0e, 0x7999aa0e, 0x7999aa0e },
 };
 
-static const u_int32_t ar9285Common_9285_1_2[][2] = {
+static const u32 ar9285Common_9285_1_2[][2] = {
     { 0x0000000c, 0x00000000 },
     { 0x00000030, 0x00020045 },
     { 0x00000034, 0x00000005 },
@@ -2775,7 +2775,7 @@ static const u_int32_t ar9285Common_9285_1_2[][2] = {
     { 0x00007870, 0x10142c00 },
 };
 
-static const u_int32_t ar9285Modes_high_power_tx_gain_9285_1_2[][6] = {
+static const u32 ar9285Modes_high_power_tx_gain_9285_1_2[][6] = {
     /* Address      5G-HT20     5G-HT40     2G-HT40     2G-HT20     Turbo   */
     { 0x0000a300, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000 },
     { 0x0000a304, 0x00000000, 0x00000000, 0x00006200, 0x00006200, 0x00000000 },
@@ -2816,7 +2816,7 @@ static const u_int32_t ar9285Modes_high_power_tx_gain_9285_1_2[][6] = {
     { 0x0000a3e0, 0x000000e7, 0x000000e7, 0x000000e7, 0x000000e7, 0x000000e7 },
 };
 
-static const u_int32_t ar9285Modes_original_tx_gain_9285_1_2[][6] = {
+static const u32 ar9285Modes_original_tx_gain_9285_1_2[][6] = {
     /* Address      5G-HT20     5G-HT40     2G-HT40     2G-HT20     Turbo   */
     { 0x0000a300, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000 },
     { 0x0000a304, 0x00000000, 0x00000000, 0x00009200, 0x00009200, 0x00000000 },
@@ -2857,7 +2857,7 @@ static const u_int32_t ar9285Modes_original_tx_gain_9285_1_2[][6] = {
     { 0x0000a3e0, 0x0000039c, 0x0000039c, 0x0000039c, 0x0000039c, 0x0000039c },
 };
 
-static const u_int32_t ar9285Modes_XE2_0_normal_power[][6] = {
+static const u32 ar9285Modes_XE2_0_normal_power[][6] = {
     { 0x0000a300, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000 },
     { 0x0000a304, 0x00000000, 0x00000000, 0x00009200, 0x00009200, 0x00000000 },
     { 0x0000a308, 0x00000000, 0x00000000, 0x00010208, 0x00010208, 0x00000000 },
@@ -2897,7 +2897,7 @@ static const u_int32_t ar9285Modes_XE2_0_normal_power[][6] = {
     { 0x0000a3e0, 0x0000039c, 0x0000039c, 0x0000039c, 0x0000039c, 0x0000039c },
 };
 
-static const u_int32_t ar9285Modes_XE2_0_high_power[][6] = {
+static const u32 ar9285Modes_XE2_0_high_power[][6] = {
     { 0x0000a300, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000 },
     { 0x0000a304, 0x00000000, 0x00000000, 0x00006200, 0x00006200, 0x00000000 },
     { 0x0000a308, 0x00000000, 0x00000000, 0x00008201, 0x00008201, 0x00000000 },
@@ -2937,7 +2937,7 @@ static const u_int32_t ar9285Modes_XE2_0_high_power[][6] = {
     { 0x0000a3e0, 0x000000e7, 0x000000e7, 0x000000e7, 0x000000e7, 0x000000e7 },
 };
 
-static const u_int32_t ar9285PciePhy_clkreq_always_on_L1_9285_1_2[][2] = {
+static const u32 ar9285PciePhy_clkreq_always_on_L1_9285_1_2[][2] = {
     {0x00004040,  0x9248fd00 },
     {0x00004040,  0x24924924 },
     {0x00004040,  0xa8000019 },
@@ -2950,7 +2950,7 @@ static const u_int32_t ar9285PciePhy_clkreq_always_on_L1_9285_1_2[][2] = {
     {0x00004044,  0x00000000 },
 };
 
-static const u_int32_t ar9285PciePhy_clkreq_off_L1_9285_1_2[][2] = {
+static const u32 ar9285PciePhy_clkreq_off_L1_9285_1_2[][2] = {
     {0x00004040,  0x9248fd00 },
     {0x00004040,  0x24924924 },
     {0x00004040,  0xa8000019 },
@@ -2964,7 +2964,7 @@ static const u_int32_t ar9285PciePhy_clkreq_off_L1_9285_1_2[][2] = {
 };
 
 /* AR9287 Revision 10 */
-static const u_int32_t ar9287Modes_9287_1_0[][6] = {
+static const u32 ar9287Modes_9287_1_0[][6] = {
     /* Address      5G-HT20     5G-HT40     2G-HT40     2G-HT20     Turbo   */
     { 0x00001030, 0x00000000, 0x00000000, 0x000002c0, 0x00000160, 0x000001e0 },
     { 0x00001070, 0x00000000, 0x00000000, 0x00000318, 0x0000018c, 0x000001e0 },
@@ -3011,7 +3011,7 @@ static const u_int32_t ar9287Modes_9287_1_0[][6] = {
     { 0x0000a3d8, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000 },
 };
 
-static const u_int32_t ar9287Common_9287_1_0[][2] = {
+static const u32 ar9287Common_9287_1_0[][2] = {
     { 0x0000000c, 0x00000000 },
     { 0x00000030, 0x00020015 },
     { 0x00000034, 0x00000005 },
@@ -3382,7 +3382,7 @@ static const u_int32_t ar9287Common_9287_1_0[][2] = {
     { 0x000078b8, 0x2a850160 },
 };
 
-static const u_int32_t ar9287Modes_tx_gain_9287_1_0[][6] = {
+static const u32 ar9287Modes_tx_gain_9287_1_0[][6] = {
     /* Address      5G-HT20     5G-HT40     2G-HT40     2G-HT20     Turbo   */
     { 0x0000a300, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000 },
     { 0x0000a304, 0x00000000, 0x00000000, 0x00004002, 0x00004002, 0x00004002 },
@@ -3432,7 +3432,7 @@ static const u_int32_t ar9287Modes_tx_gain_9287_1_0[][6] = {
 };
 
 
-static const u_int32_t ar9287Modes_rx_gain_9287_1_0[][6] = {
+static const u32 ar9287Modes_rx_gain_9287_1_0[][6] = {
     /* Address      5G-HT20     5G-HT40     2G-HT40     2G-HT20     Turbo   */
     { 0x00009a00, 0x00000000, 0x00000000, 0x0000a120, 0x0000a120, 0x0000a120 },
     { 0x00009a04, 0x00000000, 0x00000000, 0x0000a124, 0x0000a124, 0x0000a124 },
@@ -3694,7 +3694,7 @@ static const u_int32_t ar9287Modes_rx_gain_9287_1_0[][6] = {
     { 0x0000a848, 0x00000000, 0x00000000, 0x00001067, 0x00001067, 0x00001067 },
 };
 
-static const u_int32_t ar9287PciePhy_clkreq_always_on_L1_9287_1_0[][2] = {
+static const u32 ar9287PciePhy_clkreq_always_on_L1_9287_1_0[][2] = {
     {0x00004040,  0x9248fd00 },
     {0x00004040,  0x24924924 },
     {0x00004040,  0xa8000019 },
@@ -3707,7 +3707,7 @@ static const u_int32_t ar9287PciePhy_clkreq_always_on_L1_9287_1_0[][2] = {
     {0x00004044,  0x00000000 },
 };
 
-static const u_int32_t ar9287PciePhy_clkreq_off_L1_9287_1_0[][2] = {
+static const u32 ar9287PciePhy_clkreq_off_L1_9287_1_0[][2] = {
     {0x00004040,  0x9248fd00 },
     {0x00004040,  0x24924924 },
     {0x00004040,  0xa8000019 },
@@ -3722,7 +3722,7 @@ static const u_int32_t ar9287PciePhy_clkreq_off_L1_9287_1_0[][2] = {
 
 /* AR9287 Revision 11 */
 
-static const u_int32_t ar9287Modes_9287_1_1[][6] = {
+static const u32 ar9287Modes_9287_1_1[][6] = {
     /* Address      5G-HT20     5G-HT40     2G-HT40     2G-HT20     Turbo   */
     { 0x00001030, 0x00000000, 0x00000000, 0x000002c0, 0x00000160, 0x000001e0 },
     { 0x00001070, 0x00000000, 0x00000000, 0x00000318, 0x0000018c, 0x000001e0 },
@@ -3769,7 +3769,7 @@ static const u_int32_t ar9287Modes_9287_1_1[][6] = {
     { 0x0000a3d8, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000 },
 };
 
-static const u_int32_t ar9287Common_9287_1_1[][2] = {
+static const u32 ar9287Common_9287_1_1[][2] = {
     { 0x0000000c, 0x00000000 },
     { 0x00000030, 0x00020015 },
     { 0x00000034, 0x00000005 },
@@ -4142,19 +4142,19 @@ static const u_int32_t ar9287Common_9287_1_1[][2] = {
  * registers be programmed differently from the channel between 2412 and
  * 2472 MHz.
  */
-static const u_int32_t ar9287Common_normal_cck_fir_coeff_92871_1[][2] = {
+static const u32 ar9287Common_normal_cck_fir_coeff_92871_1[][2] = {
     { 0x0000a1f4, 0x00fffeff },
     { 0x0000a1f8, 0x00f5f9ff },
     { 0x0000a1fc, 0xb79f6427 },
 };
 
-static const u_int32_t ar9287Common_japan_2484_cck_fir_coeff_92871_1[][2] = {
+static const u32 ar9287Common_japan_2484_cck_fir_coeff_92871_1[][2] = {
     { 0x0000a1f4, 0x00000000 },
     { 0x0000a1f8, 0xefff0301 },
     { 0x0000a1fc, 0xca9228ee },
 };
 
-static const u_int32_t ar9287Modes_tx_gain_9287_1_1[][6] = {
+static const u32 ar9287Modes_tx_gain_9287_1_1[][6] = {
     /* Address      5G-HT20     5G-HT40     2G-HT40     2G-HT20     Turbo   */
     { 0x0000a300, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000 },
     { 0x0000a304, 0x00000000, 0x00000000, 0x00004002, 0x00004002, 0x00004002 },
@@ -4203,7 +4203,7 @@ static const u_int32_t ar9287Modes_tx_gain_9287_1_1[][6] = {
     { 0x0000a274, 0x0a180000, 0x0a180000, 0x0a1aa000, 0x0a1aa000, 0x0a1aa000 },
 };
 
-static const u_int32_t ar9287Modes_rx_gain_9287_1_1[][6] = {
+static const u32 ar9287Modes_rx_gain_9287_1_1[][6] = {
     /* Address      5G-HT20     5G-HT40     2G-HT40     2G-HT20     Turbo   */
     { 0x00009a00, 0x00000000, 0x00000000, 0x0000a120, 0x0000a120, 0x0000a120 },
     { 0x00009a04, 0x00000000, 0x00000000, 0x0000a124, 0x0000a124, 0x0000a124 },
@@ -4465,7 +4465,7 @@ static const u_int32_t ar9287Modes_rx_gain_9287_1_1[][6] = {
     { 0x0000a848, 0x00000000, 0x00000000, 0x00001067, 0x00001067, 0x00001067 },
 };
 
-static const u_int32_t ar9287PciePhy_clkreq_always_on_L1_9287_1_1[][2] = {
+static const u32 ar9287PciePhy_clkreq_always_on_L1_9287_1_1[][2] = {
     {0x00004040,  0x9248fd00 },
     {0x00004040,  0x24924924 },
     {0x00004040,  0xa8000019 },
@@ -4478,7 +4478,7 @@ static const u_int32_t ar9287PciePhy_clkreq_always_on_L1_9287_1_1[][2] = {
     {0x00004044,  0x00000000 },
 };
 
-static const u_int32_t ar9287PciePhy_clkreq_off_L1_9287_1_1[][2] = {
+static const u32 ar9287PciePhy_clkreq_off_L1_9287_1_1[][2] = {
     {0x00004040,  0x9248fd00 },
     {0x00004040,  0x24924924 },
     {0x00004040,  0xa8000019 },
@@ -4493,7 +4493,7 @@ static const u_int32_t ar9287PciePhy_clkreq_off_L1_9287_1_1[][2] = {
 
 
 /* AR9271 initialization values automaticaly created: 06/04/09 */
-static const u_int32_t ar9271Modes_9271[][6] = {
+static const u32 ar9271Modes_9271[][6] = {
     { 0x00001030, 0x00000230, 0x00000460, 0x000002c0, 0x00000160, 0x000001e0 },
     { 0x00001070, 0x00000168, 0x000002d0, 0x00000318, 0x0000018c, 0x000001e0 },
     { 0x000010b0, 0x00000e60, 0x00001cc0, 0x00007c70, 0x00003e38, 0x00001180 },
@@ -4799,7 +4799,7 @@ static const u_int32_t ar9271Modes_9271[][6] = {
     { 0x0000a358, 0x7999aa02, 0x7999aa02, 0x7999aa0e, 0x7999aa0e, 0x7999aa0e },
 };
 
-static const u_int32_t ar9271Common_9271[][2] = {
+static const u32 ar9271Common_9271[][2] = {
     { 0x0000000c, 0x00000000 },
     { 0x00000030, 0x00020045 },
     { 0x00000034, 0x00000005 },
@@ -5127,24 +5127,24 @@ static const u_int32_t ar9271Common_9271[][2] = {
     { 0x0000d384, 0xf3307ff0 },
 };
 
-static const u_int32_t ar9271Common_normal_cck_fir_coeff_9271[][2] = {
+static const u32 ar9271Common_normal_cck_fir_coeff_9271[][2] = {
     { 0x0000a1f4, 0x00fffeff },
     { 0x0000a1f8, 0x00f5f9ff },
     { 0x0000a1fc, 0xb79f6427 },
 };
 
-static const u_int32_t ar9271Common_japan_2484_cck_fir_coeff_9271[][2] = {
+static const u32 ar9271Common_japan_2484_cck_fir_coeff_9271[][2] = {
     { 0x0000a1f4, 0x00000000 },
     { 0x0000a1f8, 0xefff0301 },
     { 0x0000a1fc, 0xca9228ee },
 };
 
-static const u_int32_t ar9271Modes_9271_1_0_only[][6] = {
+static const u32 ar9271Modes_9271_1_0_only[][6] = {
     { 0x00009910, 0x30002311, 0x30002311, 0x30002311, 0x30002311, 0x30002311 },
     { 0x00009828, 0x0a020001, 0x0a020001, 0x0a020001, 0x0a020001, 0x0a020001 },
 };
 
-static const u_int32_t ar9271Modes_9271_ANI_reg[][6] = {
+static const u32 ar9271Modes_9271_ANI_reg[][6] = {
     { 0x00009850, 0x6d4000e2, 0x6d4000e2, 0x6d4000e2, 0x6d4000e2, 0x6d4000e2 },
     { 0x0000985c, 0x3139605e, 0x3139605e, 0x3137605e, 0x3137605e, 0x3139605e },
     { 0x00009858, 0x7ec84d2e, 0x7ec84d2e, 0x7ec84d2e, 0x7ec84d2e, 0x7ec84d2e },
@@ -5155,7 +5155,7 @@ static const u_int32_t ar9271Modes_9271_ANI_reg[][6] = {
     { 0x000099c0, 0x05eea6d4, 0x05eea6d4, 0x05eea6d4, 0x05eea6d4, 0x05eea6d4 },
 };
 
-static const u_int32_t ar9271Modes_normal_power_tx_gain_9271[][6] = {
+static const u32 ar9271Modes_normal_power_tx_gain_9271[][6] = {
     { 0x0000a300, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000 },
     { 0x0000a304, 0x00000000, 0x00000000, 0x00009200, 0x00009200, 0x00000000 },
     { 0x0000a308, 0x00000000, 0x00000000, 0x00010208, 0x00010208, 0x00000000 },
@@ -5191,7 +5191,7 @@ static const u_int32_t ar9271Modes_normal_power_tx_gain_9271[][6] = {
     { 0x0000a3e0, 0x000003bd, 0x000003bd, 0x000003bd, 0x000003bd, 0x000003bd },
 };
 
-static const u_int32_t ar9271Modes_high_power_tx_gain_9271[][6] = {
+static const u32 ar9271Modes_high_power_tx_gain_9271[][6] = {
     { 0x0000a300, 0x00000000, 0x00000000, 0x00010000, 0x00010000, 0x00000000 },
     { 0x0000a304, 0x00000000, 0x00000000, 0x00016200, 0x00016200, 0x00000000 },
     { 0x0000a308, 0x00000000, 0x00000000, 0x00018201, 0x00018201, 0x00000000 },
-- 
1.6.3.3


^ permalink raw reply related	[flat|nested] 7+ messages in thread

* Re: [PATCH 2/2] ath9k_hw: make all AR9002 initvals use u32
  2010-04-20 22:28 ` [PATCH 2/2] ath9k_hw: make all AR9002 initvals use u32 Luis R. Rodriguez
@ 2010-04-20 23:34   ` Gábor Stefanik
  2010-04-20 23:43     ` Luis R. Rodriguez
  0 siblings, 1 reply; 7+ messages in thread
From: Gábor Stefanik @ 2010-04-20 23:34 UTC (permalink / raw)
  To: Luis R. Rodriguez; +Cc: linville, linux-wireless

Will the u_int32_t type be removed eventually? (Given that the
standard type is uint32_t.)

On Wed, Apr 21, 2010 at 12:28 AM, Luis R. Rodriguez
<lrodriguez@atheros.com> wrote:
> Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
> ---
>  drivers/net/wireless/ath/ath9k/ar9002_initvals.h |   68 +++++++++++-----------
>  1 files changed, 34 insertions(+), 34 deletions(-)
>
> diff --git a/drivers/net/wireless/ath/ath9k/ar9002_initvals.h b/drivers/net/wireless/ath/ath9k/ar9002_initvals.h
> index 0f74ea7..f06313d 100644
> --- a/drivers/net/wireless/ath/ath9k/ar9002_initvals.h
> +++ b/drivers/net/wireless/ath/ath9k/ar9002_initvals.h
> @@ -1468,7 +1468,7 @@ static const u32 ar9280PciePhy_clkreq_always_on_L1_9280[][2] = {
>  };
>
>  /* AR9285 Revsion 10*/
> -static const u_int32_t ar9285Modes_9285[][6] = {
> +static const u32 ar9285Modes_9285[][6] = {
>     { 0x00001030, 0x00000230, 0x00000460, 0x000002c0, 0x00000160, 0x000001e0 },
>     { 0x00001070, 0x00000168, 0x000002d0, 0x00000318, 0x0000018c, 0x000001e0 },
>     { 0x000010b0, 0x00000e60, 0x00001cc0, 0x00007c70, 0x00003e38, 0x00001180 },
> @@ -1790,7 +1790,7 @@ static const u_int32_t ar9285Modes_9285[][6] = {
>     { 0x0000a358, 0x7999aa02, 0x7999aa02, 0x7999aa0e, 0x7999aa0e, 0x7999aa0e },
>  };
>
> -static const u_int32_t ar9285Common_9285[][2] = {
> +static const u32 ar9285Common_9285[][2] = {
>     { 0x0000000c, 0x00000000 },
>     { 0x00000030, 0x00020045 },
>     { 0x00000034, 0x00000005 },
> @@ -2123,7 +2123,7 @@ static const u_int32_t ar9285Common_9285[][2] = {
>     { 0x00007870, 0x10142c00 },
>  };
>
> -static const u_int32_t ar9285PciePhy_clkreq_always_on_L1_9285[][2] = {
> +static const u32 ar9285PciePhy_clkreq_always_on_L1_9285[][2] = {
>     {0x00004040,  0x9248fd00 },
>     {0x00004040,  0x24924924 },
>     {0x00004040,  0xa8000019 },
> @@ -2136,7 +2136,7 @@ static const u_int32_t ar9285PciePhy_clkreq_always_on_L1_9285[][2] = {
>     {0x00004044,  0x00000000 },
>  };
>
> -static const u_int32_t ar9285PciePhy_clkreq_off_L1_9285[][2] = {
> +static const u32 ar9285PciePhy_clkreq_off_L1_9285[][2] = {
>     {0x00004040,  0x9248fd00 },
>     {0x00004040,  0x24924924 },
>     {0x00004040,  0xa8000019 },
> @@ -2150,7 +2150,7 @@ static const u_int32_t ar9285PciePhy_clkreq_off_L1_9285[][2] = {
>  };
>
>  /* AR9285 v1_2 PCI Register Writes.  Created: 04/13/09 */
> -static const u_int32_t ar9285Modes_9285_1_2[][6] = {
> +static const u32 ar9285Modes_9285_1_2[][6] = {
>     /* Address      5G-HT20     5G-HT40     2G-HT40     2G-HT20     Turbo   */
>     { 0x00001030, 0x00000230, 0x00000460, 0x000002c0, 0x00000160, 0x000001e0 },
>     { 0x00001070, 0x00000168, 0x000002d0, 0x00000318, 0x0000018c, 0x000001e0 },
> @@ -2456,7 +2456,7 @@ static const u_int32_t ar9285Modes_9285_1_2[][6] = {
>     { 0x0000a358, 0x7999aa02, 0x7999aa02, 0x7999aa0e, 0x7999aa0e, 0x7999aa0e },
>  };
>
> -static const u_int32_t ar9285Common_9285_1_2[][2] = {
> +static const u32 ar9285Common_9285_1_2[][2] = {
>     { 0x0000000c, 0x00000000 },
>     { 0x00000030, 0x00020045 },
>     { 0x00000034, 0x00000005 },
> @@ -2775,7 +2775,7 @@ static const u_int32_t ar9285Common_9285_1_2[][2] = {
>     { 0x00007870, 0x10142c00 },
>  };
>
> -static const u_int32_t ar9285Modes_high_power_tx_gain_9285_1_2[][6] = {
> +static const u32 ar9285Modes_high_power_tx_gain_9285_1_2[][6] = {
>     /* Address      5G-HT20     5G-HT40     2G-HT40     2G-HT20     Turbo   */
>     { 0x0000a300, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000 },
>     { 0x0000a304, 0x00000000, 0x00000000, 0x00006200, 0x00006200, 0x00000000 },
> @@ -2816,7 +2816,7 @@ static const u_int32_t ar9285Modes_high_power_tx_gain_9285_1_2[][6] = {
>     { 0x0000a3e0, 0x000000e7, 0x000000e7, 0x000000e7, 0x000000e7, 0x000000e7 },
>  };
>
> -static const u_int32_t ar9285Modes_original_tx_gain_9285_1_2[][6] = {
> +static const u32 ar9285Modes_original_tx_gain_9285_1_2[][6] = {
>     /* Address      5G-HT20     5G-HT40     2G-HT40     2G-HT20     Turbo   */
>     { 0x0000a300, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000 },
>     { 0x0000a304, 0x00000000, 0x00000000, 0x00009200, 0x00009200, 0x00000000 },
> @@ -2857,7 +2857,7 @@ static const u_int32_t ar9285Modes_original_tx_gain_9285_1_2[][6] = {
>     { 0x0000a3e0, 0x0000039c, 0x0000039c, 0x0000039c, 0x0000039c, 0x0000039c },
>  };
>
> -static const u_int32_t ar9285Modes_XE2_0_normal_power[][6] = {
> +static const u32 ar9285Modes_XE2_0_normal_power[][6] = {
>     { 0x0000a300, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000 },
>     { 0x0000a304, 0x00000000, 0x00000000, 0x00009200, 0x00009200, 0x00000000 },
>     { 0x0000a308, 0x00000000, 0x00000000, 0x00010208, 0x00010208, 0x00000000 },
> @@ -2897,7 +2897,7 @@ static const u_int32_t ar9285Modes_XE2_0_normal_power[][6] = {
>     { 0x0000a3e0, 0x0000039c, 0x0000039c, 0x0000039c, 0x0000039c, 0x0000039c },
>  };
>
> -static const u_int32_t ar9285Modes_XE2_0_high_power[][6] = {
> +static const u32 ar9285Modes_XE2_0_high_power[][6] = {
>     { 0x0000a300, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000 },
>     { 0x0000a304, 0x00000000, 0x00000000, 0x00006200, 0x00006200, 0x00000000 },
>     { 0x0000a308, 0x00000000, 0x00000000, 0x00008201, 0x00008201, 0x00000000 },
> @@ -2937,7 +2937,7 @@ static const u_int32_t ar9285Modes_XE2_0_high_power[][6] = {
>     { 0x0000a3e0, 0x000000e7, 0x000000e7, 0x000000e7, 0x000000e7, 0x000000e7 },
>  };
>
> -static const u_int32_t ar9285PciePhy_clkreq_always_on_L1_9285_1_2[][2] = {
> +static const u32 ar9285PciePhy_clkreq_always_on_L1_9285_1_2[][2] = {
>     {0x00004040,  0x9248fd00 },
>     {0x00004040,  0x24924924 },
>     {0x00004040,  0xa8000019 },
> @@ -2950,7 +2950,7 @@ static const u_int32_t ar9285PciePhy_clkreq_always_on_L1_9285_1_2[][2] = {
>     {0x00004044,  0x00000000 },
>  };
>
> -static const u_int32_t ar9285PciePhy_clkreq_off_L1_9285_1_2[][2] = {
> +static const u32 ar9285PciePhy_clkreq_off_L1_9285_1_2[][2] = {
>     {0x00004040,  0x9248fd00 },
>     {0x00004040,  0x24924924 },
>     {0x00004040,  0xa8000019 },
> @@ -2964,7 +2964,7 @@ static const u_int32_t ar9285PciePhy_clkreq_off_L1_9285_1_2[][2] = {
>  };
>
>  /* AR9287 Revision 10 */
> -static const u_int32_t ar9287Modes_9287_1_0[][6] = {
> +static const u32 ar9287Modes_9287_1_0[][6] = {
>     /* Address      5G-HT20     5G-HT40     2G-HT40     2G-HT20     Turbo   */
>     { 0x00001030, 0x00000000, 0x00000000, 0x000002c0, 0x00000160, 0x000001e0 },
>     { 0x00001070, 0x00000000, 0x00000000, 0x00000318, 0x0000018c, 0x000001e0 },
> @@ -3011,7 +3011,7 @@ static const u_int32_t ar9287Modes_9287_1_0[][6] = {
>     { 0x0000a3d8, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000 },
>  };
>
> -static const u_int32_t ar9287Common_9287_1_0[][2] = {
> +static const u32 ar9287Common_9287_1_0[][2] = {
>     { 0x0000000c, 0x00000000 },
>     { 0x00000030, 0x00020015 },
>     { 0x00000034, 0x00000005 },
> @@ -3382,7 +3382,7 @@ static const u_int32_t ar9287Common_9287_1_0[][2] = {
>     { 0x000078b8, 0x2a850160 },
>  };
>
> -static const u_int32_t ar9287Modes_tx_gain_9287_1_0[][6] = {
> +static const u32 ar9287Modes_tx_gain_9287_1_0[][6] = {
>     /* Address      5G-HT20     5G-HT40     2G-HT40     2G-HT20     Turbo   */
>     { 0x0000a300, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000 },
>     { 0x0000a304, 0x00000000, 0x00000000, 0x00004002, 0x00004002, 0x00004002 },
> @@ -3432,7 +3432,7 @@ static const u_int32_t ar9287Modes_tx_gain_9287_1_0[][6] = {
>  };
>
>
> -static const u_int32_t ar9287Modes_rx_gain_9287_1_0[][6] = {
> +static const u32 ar9287Modes_rx_gain_9287_1_0[][6] = {
>     /* Address      5G-HT20     5G-HT40     2G-HT40     2G-HT20     Turbo   */
>     { 0x00009a00, 0x00000000, 0x00000000, 0x0000a120, 0x0000a120, 0x0000a120 },
>     { 0x00009a04, 0x00000000, 0x00000000, 0x0000a124, 0x0000a124, 0x0000a124 },
> @@ -3694,7 +3694,7 @@ static const u_int32_t ar9287Modes_rx_gain_9287_1_0[][6] = {
>     { 0x0000a848, 0x00000000, 0x00000000, 0x00001067, 0x00001067, 0x00001067 },
>  };
>
> -static const u_int32_t ar9287PciePhy_clkreq_always_on_L1_9287_1_0[][2] = {
> +static const u32 ar9287PciePhy_clkreq_always_on_L1_9287_1_0[][2] = {
>     {0x00004040,  0x9248fd00 },
>     {0x00004040,  0x24924924 },
>     {0x00004040,  0xa8000019 },
> @@ -3707,7 +3707,7 @@ static const u_int32_t ar9287PciePhy_clkreq_always_on_L1_9287_1_0[][2] = {
>     {0x00004044,  0x00000000 },
>  };
>
> -static const u_int32_t ar9287PciePhy_clkreq_off_L1_9287_1_0[][2] = {
> +static const u32 ar9287PciePhy_clkreq_off_L1_9287_1_0[][2] = {
>     {0x00004040,  0x9248fd00 },
>     {0x00004040,  0x24924924 },
>     {0x00004040,  0xa8000019 },
> @@ -3722,7 +3722,7 @@ static const u_int32_t ar9287PciePhy_clkreq_off_L1_9287_1_0[][2] = {
>
>  /* AR9287 Revision 11 */
>
> -static const u_int32_t ar9287Modes_9287_1_1[][6] = {
> +static const u32 ar9287Modes_9287_1_1[][6] = {
>     /* Address      5G-HT20     5G-HT40     2G-HT40     2G-HT20     Turbo   */
>     { 0x00001030, 0x00000000, 0x00000000, 0x000002c0, 0x00000160, 0x000001e0 },
>     { 0x00001070, 0x00000000, 0x00000000, 0x00000318, 0x0000018c, 0x000001e0 },
> @@ -3769,7 +3769,7 @@ static const u_int32_t ar9287Modes_9287_1_1[][6] = {
>     { 0x0000a3d8, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000 },
>  };
>
> -static const u_int32_t ar9287Common_9287_1_1[][2] = {
> +static const u32 ar9287Common_9287_1_1[][2] = {
>     { 0x0000000c, 0x00000000 },
>     { 0x00000030, 0x00020015 },
>     { 0x00000034, 0x00000005 },
> @@ -4142,19 +4142,19 @@ static const u_int32_t ar9287Common_9287_1_1[][2] = {
>  * registers be programmed differently from the channel between 2412 and
>  * 2472 MHz.
>  */
> -static const u_int32_t ar9287Common_normal_cck_fir_coeff_92871_1[][2] = {
> +static const u32 ar9287Common_normal_cck_fir_coeff_92871_1[][2] = {
>     { 0x0000a1f4, 0x00fffeff },
>     { 0x0000a1f8, 0x00f5f9ff },
>     { 0x0000a1fc, 0xb79f6427 },
>  };
>
> -static const u_int32_t ar9287Common_japan_2484_cck_fir_coeff_92871_1[][2] = {
> +static const u32 ar9287Common_japan_2484_cck_fir_coeff_92871_1[][2] = {
>     { 0x0000a1f4, 0x00000000 },
>     { 0x0000a1f8, 0xefff0301 },
>     { 0x0000a1fc, 0xca9228ee },
>  };
>
> -static const u_int32_t ar9287Modes_tx_gain_9287_1_1[][6] = {
> +static const u32 ar9287Modes_tx_gain_9287_1_1[][6] = {
>     /* Address      5G-HT20     5G-HT40     2G-HT40     2G-HT20     Turbo   */
>     { 0x0000a300, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000 },
>     { 0x0000a304, 0x00000000, 0x00000000, 0x00004002, 0x00004002, 0x00004002 },
> @@ -4203,7 +4203,7 @@ static const u_int32_t ar9287Modes_tx_gain_9287_1_1[][6] = {
>     { 0x0000a274, 0x0a180000, 0x0a180000, 0x0a1aa000, 0x0a1aa000, 0x0a1aa000 },
>  };
>
> -static const u_int32_t ar9287Modes_rx_gain_9287_1_1[][6] = {
> +static const u32 ar9287Modes_rx_gain_9287_1_1[][6] = {
>     /* Address      5G-HT20     5G-HT40     2G-HT40     2G-HT20     Turbo   */
>     { 0x00009a00, 0x00000000, 0x00000000, 0x0000a120, 0x0000a120, 0x0000a120 },
>     { 0x00009a04, 0x00000000, 0x00000000, 0x0000a124, 0x0000a124, 0x0000a124 },
> @@ -4465,7 +4465,7 @@ static const u_int32_t ar9287Modes_rx_gain_9287_1_1[][6] = {
>     { 0x0000a848, 0x00000000, 0x00000000, 0x00001067, 0x00001067, 0x00001067 },
>  };
>
> -static const u_int32_t ar9287PciePhy_clkreq_always_on_L1_9287_1_1[][2] = {
> +static const u32 ar9287PciePhy_clkreq_always_on_L1_9287_1_1[][2] = {
>     {0x00004040,  0x9248fd00 },
>     {0x00004040,  0x24924924 },
>     {0x00004040,  0xa8000019 },
> @@ -4478,7 +4478,7 @@ static const u_int32_t ar9287PciePhy_clkreq_always_on_L1_9287_1_1[][2] = {
>     {0x00004044,  0x00000000 },
>  };
>
> -static const u_int32_t ar9287PciePhy_clkreq_off_L1_9287_1_1[][2] = {
> +static const u32 ar9287PciePhy_clkreq_off_L1_9287_1_1[][2] = {
>     {0x00004040,  0x9248fd00 },
>     {0x00004040,  0x24924924 },
>     {0x00004040,  0xa8000019 },
> @@ -4493,7 +4493,7 @@ static const u_int32_t ar9287PciePhy_clkreq_off_L1_9287_1_1[][2] = {
>
>
>  /* AR9271 initialization values automaticaly created: 06/04/09 */
> -static const u_int32_t ar9271Modes_9271[][6] = {
> +static const u32 ar9271Modes_9271[][6] = {
>     { 0x00001030, 0x00000230, 0x00000460, 0x000002c0, 0x00000160, 0x000001e0 },
>     { 0x00001070, 0x00000168, 0x000002d0, 0x00000318, 0x0000018c, 0x000001e0 },
>     { 0x000010b0, 0x00000e60, 0x00001cc0, 0x00007c70, 0x00003e38, 0x00001180 },
> @@ -4799,7 +4799,7 @@ static const u_int32_t ar9271Modes_9271[][6] = {
>     { 0x0000a358, 0x7999aa02, 0x7999aa02, 0x7999aa0e, 0x7999aa0e, 0x7999aa0e },
>  };
>
> -static const u_int32_t ar9271Common_9271[][2] = {
> +static const u32 ar9271Common_9271[][2] = {
>     { 0x0000000c, 0x00000000 },
>     { 0x00000030, 0x00020045 },
>     { 0x00000034, 0x00000005 },
> @@ -5127,24 +5127,24 @@ static const u_int32_t ar9271Common_9271[][2] = {
>     { 0x0000d384, 0xf3307ff0 },
>  };
>
> -static const u_int32_t ar9271Common_normal_cck_fir_coeff_9271[][2] = {
> +static const u32 ar9271Common_normal_cck_fir_coeff_9271[][2] = {
>     { 0x0000a1f4, 0x00fffeff },
>     { 0x0000a1f8, 0x00f5f9ff },
>     { 0x0000a1fc, 0xb79f6427 },
>  };
>
> -static const u_int32_t ar9271Common_japan_2484_cck_fir_coeff_9271[][2] = {
> +static const u32 ar9271Common_japan_2484_cck_fir_coeff_9271[][2] = {
>     { 0x0000a1f4, 0x00000000 },
>     { 0x0000a1f8, 0xefff0301 },
>     { 0x0000a1fc, 0xca9228ee },
>  };
>
> -static const u_int32_t ar9271Modes_9271_1_0_only[][6] = {
> +static const u32 ar9271Modes_9271_1_0_only[][6] = {
>     { 0x00009910, 0x30002311, 0x30002311, 0x30002311, 0x30002311, 0x30002311 },
>     { 0x00009828, 0x0a020001, 0x0a020001, 0x0a020001, 0x0a020001, 0x0a020001 },
>  };
>
> -static const u_int32_t ar9271Modes_9271_ANI_reg[][6] = {
> +static const u32 ar9271Modes_9271_ANI_reg[][6] = {
>     { 0x00009850, 0x6d4000e2, 0x6d4000e2, 0x6d4000e2, 0x6d4000e2, 0x6d4000e2 },
>     { 0x0000985c, 0x3139605e, 0x3139605e, 0x3137605e, 0x3137605e, 0x3139605e },
>     { 0x00009858, 0x7ec84d2e, 0x7ec84d2e, 0x7ec84d2e, 0x7ec84d2e, 0x7ec84d2e },
> @@ -5155,7 +5155,7 @@ static const u_int32_t ar9271Modes_9271_ANI_reg[][6] = {
>     { 0x000099c0, 0x05eea6d4, 0x05eea6d4, 0x05eea6d4, 0x05eea6d4, 0x05eea6d4 },
>  };
>
> -static const u_int32_t ar9271Modes_normal_power_tx_gain_9271[][6] = {
> +static const u32 ar9271Modes_normal_power_tx_gain_9271[][6] = {
>     { 0x0000a300, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000 },
>     { 0x0000a304, 0x00000000, 0x00000000, 0x00009200, 0x00009200, 0x00000000 },
>     { 0x0000a308, 0x00000000, 0x00000000, 0x00010208, 0x00010208, 0x00000000 },
> @@ -5191,7 +5191,7 @@ static const u_int32_t ar9271Modes_normal_power_tx_gain_9271[][6] = {
>     { 0x0000a3e0, 0x000003bd, 0x000003bd, 0x000003bd, 0x000003bd, 0x000003bd },
>  };
>
> -static const u_int32_t ar9271Modes_high_power_tx_gain_9271[][6] = {
> +static const u32 ar9271Modes_high_power_tx_gain_9271[][6] = {
>     { 0x0000a300, 0x00000000, 0x00000000, 0x00010000, 0x00010000, 0x00000000 },
>     { 0x0000a304, 0x00000000, 0x00000000, 0x00016200, 0x00016200, 0x00000000 },
>     { 0x0000a308, 0x00000000, 0x00000000, 0x00018201, 0x00018201, 0x00000000 },
> --
> 1.6.3.3
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>



-- 
Vista: [V]iruses, [I]ntruders, [S]pyware, [T]rojans and [A]dware. :-)

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH 2/2] ath9k_hw: make all AR9002 initvals use u32
  2010-04-20 23:34   ` Gábor Stefanik
@ 2010-04-20 23:43     ` Luis R. Rodriguez
  0 siblings, 0 replies; 7+ messages in thread
From: Luis R. Rodriguez @ 2010-04-20 23:43 UTC (permalink / raw)
  To: Gábor Stefanik; +Cc: linville, linux-wireless

2010/4/20 Gábor Stefanik <netrolller.3d@gmail.com>:
> Will the u_int32_t type be removed eventually? (Given that the
> standard type is uint32_t.)

Not sure, but it doesn't matter for us so long as we use u32 :)

  Luis

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH 1/2] ath9k_hw: make two initvals consto for the AR9001 family
  2010-04-20 22:28 ` [PATCH 1/2] ath9k_hw: make two initvals consto for the AR9001 family Luis R. Rodriguez
@ 2010-04-21 21:54   ` Pavel Roskin
  2010-04-21 22:38     ` Luis R. Rodriguez
  0 siblings, 1 reply; 7+ messages in thread
From: Pavel Roskin @ 2010-04-21 21:54 UTC (permalink / raw)
  To: Luis R. Rodriguez; +Cc: linville, linux-wireless

On Tue, 2010-04-20 at 18:28 -0400, Luis R. Rodriguez wrote:
> This makes ar5416Addac_9160 and ar5416Addac_9160 const
> I guess we skipped them long ago.

It's a step in the right direction, but it makes the code more
misleading.  Those arrays are not constant.

Please see ath9k_hw_def_set_addac() and ath9k_hw_4k_set_addac().  They
both modify ah->iniAddac for AR9160.

The compiler doesn't warn about it because the definition of
INIT_INI_ARRAY uses a cast that removes the const modifier.

It's not an objection against the patch, it's just a reminder that we
have a real problem with the code that is likely to affect parallel
operation of more than one AR9160 device in the system, especially if
they are working on different channels.

-- 
Regards,
Pavel Roskin

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH 1/2] ath9k_hw: make two initvals consto for the AR9001 family
  2010-04-21 21:54   ` Pavel Roskin
@ 2010-04-21 22:38     ` Luis R. Rodriguez
  0 siblings, 0 replies; 7+ messages in thread
From: Luis R. Rodriguez @ 2010-04-21 22:38 UTC (permalink / raw)
  To: Pavel Roskin; +Cc: Luis Rodriguez, linville, linux-wireless

On Wed, Apr 21, 2010 at 02:54:57PM -0700, Pavel Roskin wrote:
> On Tue, 2010-04-20 at 18:28 -0400, Luis R. Rodriguez wrote:
> > This makes ar5416Addac_9160 and ar5416Addac_9160 const
> > I guess we skipped them long ago.
> 
> It's a step in the right direction, but it makes the code more
> misleading.  Those arrays are not constant.
> 
> Please see ath9k_hw_def_set_addac() and ath9k_hw_4k_set_addac().  They
> both modify ah->iniAddac for AR9160.
> 
> The compiler doesn't warn about it because the definition of
> INIT_INI_ARRAY uses a cast that removes the const modifier.
> 
> It's not an objection against the patch, it's just a reminder that we
> have a real problem with the code that is likely to affect parallel
> operation of more than one AR9160 device in the system, especially if
> they are working on different channels.

Yeah good point, well not sure how to resolve that, other than leaving
it as is for now. Let me know if you come up with something.

  Luis

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2010-04-21 22:38 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-04-20 22:28 [PATCH 0/2] ath9k_hw: few initval cosmetic changes Luis R. Rodriguez
2010-04-20 22:28 ` [PATCH 1/2] ath9k_hw: make two initvals consto for the AR9001 family Luis R. Rodriguez
2010-04-21 21:54   ` Pavel Roskin
2010-04-21 22:38     ` Luis R. Rodriguez
2010-04-20 22:28 ` [PATCH 2/2] ath9k_hw: make all AR9002 initvals use u32 Luis R. Rodriguez
2010-04-20 23:34   ` Gábor Stefanik
2010-04-20 23:43     ` Luis R. Rodriguez

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).