All of lore.kernel.org
 help / color / mirror / Atom feed
* [ath9k-devel] [PATCH 0/7] ath10k: more cleanup
@ 2013-04-23 11:06 Bartosz Markowski
  2013-04-23 11:06 ` [ath9k-devel] [PATCH 1/7] ath10k: Print more elgant HW name/version Bartosz Markowski
                   ` (7 more replies)
  0 siblings, 8 replies; 10+ messages in thread
From: Bartosz Markowski @ 2013-04-23 11:06 UTC (permalink / raw)
  To: ath9k-devel

Bartosz Markowski (7):
  ath10k: Print more elgant HW name/version
  ath10k: shift ath10k_generic_iter structure to mac header
  ath10k: kill HIF_TYPE_AR9888
  ath10k: shift REG_DUMP_COUNT_AR9888 to pci block
  ath10k: move DIAG_TRANSFER_LIMIT to pci block
  ath10k: remove leftover prototypes
  ath10k: rename ath10k_pci_wait_for_target_to_awake

 drivers/net/wireless/ath/ath10k/core.c |    6 +++---
 drivers/net/wireless/ath/ath10k/core.h |    5 -----
 drivers/net/wireless/ath/ath10k/hif.h  |   14 --------------
 drivers/net/wireless/ath/ath10k/mac.h  |    5 +++++
 drivers/net/wireless/ath/ath10k/pci.c  |   11 ++++-------
 drivers/net/wireless/ath/ath10k/pci.h  |    8 ++++++++
 6 files changed, 20 insertions(+), 29 deletions(-)

-- 
1.7.10

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

* [ath9k-devel] [PATCH 1/7] ath10k: Print more elgant HW name/version
  2013-04-23 11:06 [ath9k-devel] [PATCH 0/7] ath10k: more cleanup Bartosz Markowski
@ 2013-04-23 11:06 ` Bartosz Markowski
  2013-04-23 11:06 ` [ath9k-devel] [PATCH 2/7] ath10k: shift ath10k_generic_iter structure to mac header Bartosz Markowski
                   ` (6 subsequent siblings)
  7 siblings, 0 replies; 10+ messages in thread
From: Bartosz Markowski @ 2013-04-23 11:06 UTC (permalink / raw)
  To: ath9k-devel

Signed-off-by: Bartosz Markowski <bartosz.markowski@tieto.com>
---
 drivers/net/wireless/ath/ath10k/core.c |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/net/wireless/ath/ath10k/core.c b/drivers/net/wireless/ath/ath10k/core.c
index 07102b8..d27bd27 100644
--- a/drivers/net/wireless/ath/ath10k/core.c
+++ b/drivers/net/wireless/ath/ath10k/core.c
@@ -398,15 +398,15 @@ static int ath10k_init_hw_params(struct ath10k *ar)
 	}
 
 	if (i == ARRAY_SIZE(ath10k_hw_params_list)) {
-		ath10k_err("unsupported hardware version: 0x%x\n",
+		ath10k_err("Unsupported hardware version: 0x%x\n",
 			   ar->target_version);
 		return -EINVAL;
 	}
 
 	ar->hw_params = *hw_params;
 
-	ath10k_info("target_ver 0x%x target_type 0x%x name %s\n",
-		    ar->target_version, ar->target_type, ar->hw_params.name);
+	ath10k_info("Hardware name %s version 0x%x\n",
+		    ar->hw_params.name, ar->target_version);
 
 	return 0;
 }
-- 
1.7.10

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

* [ath9k-devel] [PATCH 2/7] ath10k: shift ath10k_generic_iter structure to mac header
  2013-04-23 11:06 [ath9k-devel] [PATCH 0/7] ath10k: more cleanup Bartosz Markowski
  2013-04-23 11:06 ` [ath9k-devel] [PATCH 1/7] ath10k: Print more elgant HW name/version Bartosz Markowski
@ 2013-04-23 11:06 ` Bartosz Markowski
  2013-04-23 11:06 ` [ath9k-devel] [PATCH 3/7] ath10k: kill HIF_TYPE_AR9888 Bartosz Markowski
                   ` (5 subsequent siblings)
  7 siblings, 0 replies; 10+ messages in thread
From: Bartosz Markowski @ 2013-04-23 11:06 UTC (permalink / raw)
  To: ath9k-devel

Signed-off-by: Bartosz Markowski <bartosz.markowski@tieto.com>
---
 drivers/net/wireless/ath/ath10k/core.h |    5 -----
 drivers/net/wireless/ath/ath10k/mac.h  |    5 +++++
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/drivers/net/wireless/ath/ath10k/core.h b/drivers/net/wireless/ath/ath10k/core.h
index 42d9e72..148631a 100644
--- a/drivers/net/wireless/ath/ath10k/core.h
+++ b/drivers/net/wireless/ath/ath10k/core.h
@@ -360,11 +360,6 @@ struct ath10k {
 #endif
 };
 
-struct ath10k_generic_iter {
-	struct ath10k *ar;
-	int ret;
-};
-
 static inline struct ath_common *ath10k_common(struct ath10k *ar)
 {
 	return &ar->common;
diff --git a/drivers/net/wireless/ath/ath10k/mac.h b/drivers/net/wireless/ath/ath10k/mac.h
index 272ba74..58eed18 100644
--- a/drivers/net/wireless/ath/ath10k/mac.h
+++ b/drivers/net/wireless/ath/ath10k/mac.h
@@ -21,6 +21,11 @@
 #include <net/mac80211.h>
 #include "core.h"
 
+struct ath10k_generic_iter {
+	struct ath10k *ar;
+	int ret;
+};
+
 struct ath10k *ath10k_mac_create(void);
 void ath10k_mac_destroy(struct ath10k *ar);
 int ath10k_mac_register(struct ath10k *ar);
-- 
1.7.10

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

* [ath9k-devel] [PATCH 3/7] ath10k: kill HIF_TYPE_AR9888
  2013-04-23 11:06 [ath9k-devel] [PATCH 0/7] ath10k: more cleanup Bartosz Markowski
  2013-04-23 11:06 ` [ath9k-devel] [PATCH 1/7] ath10k: Print more elgant HW name/version Bartosz Markowski
  2013-04-23 11:06 ` [ath9k-devel] [PATCH 2/7] ath10k: shift ath10k_generic_iter structure to mac header Bartosz Markowski
@ 2013-04-23 11:06 ` Bartosz Markowski
  2013-04-23 11:06 ` [ath9k-devel] [PATCH 4/7] ath10k: shift REG_DUMP_COUNT_AR9888 to pci block Bartosz Markowski
                   ` (4 subsequent siblings)
  7 siblings, 0 replies; 10+ messages in thread
From: Bartosz Markowski @ 2013-04-23 11:06 UTC (permalink / raw)
  To: ath9k-devel

Signed-off-by: Bartosz Markowski <bartosz.markowski@tieto.com>
---
 drivers/net/wireless/ath/ath10k/hif.h |    2 --
 drivers/net/wireless/ath/ath10k/pci.c |    3 ---
 2 files changed, 5 deletions(-)

diff --git a/drivers/net/wireless/ath/ath10k/hif.h b/drivers/net/wireless/ath/ath10k/hif.h
index 05e02c9..dbf1f37 100644
--- a/drivers/net/wireless/ath/ath10k/hif.h
+++ b/drivers/net/wireless/ath/ath10k/hif.h
@@ -21,8 +21,6 @@
 #include <linux/kernel.h>
 #include "core.h"
 
-#define HIF_TYPE_AR9888  1
-
 /* FW dump area */
 #define REG_DUMP_COUNT_AR9888 60
 
diff --git a/drivers/net/wireless/ath/ath10k/pci.c b/drivers/net/wireless/ath/ath10k/pci.c
index 0d1523b..6fe0508 100644
--- a/drivers/net/wireless/ath/ath10k/pci.c
+++ b/drivers/net/wireless/ath/ath10k/pci.c
@@ -2188,12 +2188,9 @@ retry:
 	switch (pci_dev->device) {
 	case AR9888_1_0_DEVICE_ID:
 		target_type = TARGET_TYPE_AR9888;
-		hif_type = HIF_TYPE_AR9888;
 		break;
 	case AR9888_2_0_DEVICE_ID:
 		target_type = TARGET_TYPE_AR9888;
-		hif_type = HIF_TYPE_AR9888;
-
 		set_bit(ATH10K_PCI_FEATURE_MSI_X, ar_pci->features);
 		break;
 	default:
-- 
1.7.10

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

* [ath9k-devel] [PATCH 4/7] ath10k: shift REG_DUMP_COUNT_AR9888 to pci block
  2013-04-23 11:06 [ath9k-devel] [PATCH 0/7] ath10k: more cleanup Bartosz Markowski
                   ` (2 preceding siblings ...)
  2013-04-23 11:06 ` [ath9k-devel] [PATCH 3/7] ath10k: kill HIF_TYPE_AR9888 Bartosz Markowski
@ 2013-04-23 11:06 ` Bartosz Markowski
  2013-04-23 11:06 ` [ath9k-devel] [PATCH 5/7] ath10k: move DIAG_TRANSFER_LIMIT " Bartosz Markowski
                   ` (3 subsequent siblings)
  7 siblings, 0 replies; 10+ messages in thread
From: Bartosz Markowski @ 2013-04-23 11:06 UTC (permalink / raw)
  To: ath9k-devel

Signed-off-by: Bartosz Markowski <bartosz.markowski@tieto.com>
---
 drivers/net/wireless/ath/ath10k/hif.h |    3 ---
 drivers/net/wireless/ath/ath10k/pci.h |    3 +++
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/net/wireless/ath/ath10k/hif.h b/drivers/net/wireless/ath/ath10k/hif.h
index dbf1f37..ec6d5d3 100644
--- a/drivers/net/wireless/ath/ath10k/hif.h
+++ b/drivers/net/wireless/ath/ath10k/hif.h
@@ -21,9 +21,6 @@
 #include <linux/kernel.h>
 #include "core.h"
 
-/* FW dump area */
-#define REG_DUMP_COUNT_AR9888 60
-
 /*
  * maximum number of bytes that can be
  * handled atomically by DiagRead/DiagWrite
diff --git a/drivers/net/wireless/ath/ath10k/pci.h b/drivers/net/wireless/ath/ath10k/pci.h
index 188593e..9148bc5 100644
--- a/drivers/net/wireless/ath/ath10k/pci.h
+++ b/drivers/net/wireless/ath/ath10k/pci.h
@@ -23,6 +23,9 @@
 #include "ar9888def.h"
 #include "ce.h"
 
+/* FW dump area */
+#define REG_DUMP_COUNT_AR9888 60
+
 /*
  * maximum number of bytes that can be
  * handled atomically by DiagRead/DiagWrite
-- 
1.7.10

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

* [ath9k-devel] [PATCH 5/7] ath10k: move DIAG_TRANSFER_LIMIT to pci block
  2013-04-23 11:06 [ath9k-devel] [PATCH 0/7] ath10k: more cleanup Bartosz Markowski
                   ` (3 preceding siblings ...)
  2013-04-23 11:06 ` [ath9k-devel] [PATCH 4/7] ath10k: shift REG_DUMP_COUNT_AR9888 to pci block Bartosz Markowski
@ 2013-04-23 11:06 ` Bartosz Markowski
  2013-04-23 11:06 ` [ath9k-devel] [PATCH 6/7] ath10k: remove leftover prototypes Bartosz Markowski
                   ` (2 subsequent siblings)
  7 siblings, 0 replies; 10+ messages in thread
From: Bartosz Markowski @ 2013-04-23 11:06 UTC (permalink / raw)
  To: ath9k-devel

Signed-off-by: Bartosz Markowski <bartosz.markowski@tieto.com>
---
 drivers/net/wireless/ath/ath10k/hif.h |    6 ------
 drivers/net/wireless/ath/ath10k/pci.h |    5 +++++
 2 files changed, 5 insertions(+), 6 deletions(-)

diff --git a/drivers/net/wireless/ath/ath10k/hif.h b/drivers/net/wireless/ath/ath10k/hif.h
index ec6d5d3..39104c2 100644
--- a/drivers/net/wireless/ath/ath10k/hif.h
+++ b/drivers/net/wireless/ath/ath10k/hif.h
@@ -21,12 +21,6 @@
 #include <linux/kernel.h>
 #include "core.h"
 
-/*
- * maximum number of bytes that can be
- * handled atomically by DiagRead/DiagWrite
- */
-#define DIAG_TRANSFER_LIMIT 2048
-
 void ath10k_register_host_reg_table(struct ath10k *ar, u32 hif_type);
 void ath10k_register_target_reg_table(struct ath10k *ar, u32 target_type);
 
diff --git a/drivers/net/wireless/ath/ath10k/pci.h b/drivers/net/wireless/ath/ath10k/pci.h
index 9148bc5..69b0b1d 100644
--- a/drivers/net/wireless/ath/ath10k/pci.h
+++ b/drivers/net/wireless/ath/ath10k/pci.h
@@ -27,6 +27,11 @@
 #define REG_DUMP_COUNT_AR9888 60
 
 /*
+ * maximum number of bytes that can be handled atomically by DiagRead/DiagWrite
+ */
+#define DIAG_TRANSFER_LIMIT 2048
+
+/*
  * maximum number of bytes that can be
  * handled atomically by DiagRead/DiagWrite
  */
-- 
1.7.10

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

* [ath9k-devel] [PATCH 6/7] ath10k: remove leftover prototypes
  2013-04-23 11:06 [ath9k-devel] [PATCH 0/7] ath10k: more cleanup Bartosz Markowski
                   ` (4 preceding siblings ...)
  2013-04-23 11:06 ` [ath9k-devel] [PATCH 5/7] ath10k: move DIAG_TRANSFER_LIMIT " Bartosz Markowski
@ 2013-04-23 11:06 ` Bartosz Markowski
  2013-04-23 11:06 ` [ath9k-devel] [PATCH 7/7] ath10k: rename ath10k_pci_wait_for_target_to_awake Bartosz Markowski
  2013-04-24 11:03 ` [ath9k-devel] [PATCH 0/7] ath10k: more cleanup Kalle Valo
  7 siblings, 0 replies; 10+ messages in thread
From: Bartosz Markowski @ 2013-04-23 11:06 UTC (permalink / raw)
  To: ath9k-devel

* ath10k_register_host_reg_table()
* ath10k_register_target_reg_table()

Signed-off-by: Bartosz Markowski <bartosz.markowski@tieto.com>
---
 drivers/net/wireless/ath/ath10k/hif.h |    3 ---
 1 file changed, 3 deletions(-)

diff --git a/drivers/net/wireless/ath/ath10k/hif.h b/drivers/net/wireless/ath/ath10k/hif.h
index 39104c2..23e7c99 100644
--- a/drivers/net/wireless/ath/ath10k/hif.h
+++ b/drivers/net/wireless/ath/ath10k/hif.h
@@ -21,9 +21,6 @@
 #include <linux/kernel.h>
 #include "core.h"
 
-void ath10k_register_host_reg_table(struct ath10k *ar, u32 hif_type);
-void ath10k_register_target_reg_table(struct ath10k *ar, u32 target_type);
-
 struct ath10k_hif_cb {
 	int (*tx_completion_handler)(struct ath10k *ar,
 				     struct sk_buff *wbuf,
-- 
1.7.10

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

* [ath9k-devel] [PATCH 7/7] ath10k: rename ath10k_pci_wait_for_target_to_awake
  2013-04-23 11:06 [ath9k-devel] [PATCH 0/7] ath10k: more cleanup Bartosz Markowski
                   ` (5 preceding siblings ...)
  2013-04-23 11:06 ` [ath9k-devel] [PATCH 6/7] ath10k: remove leftover prototypes Bartosz Markowski
@ 2013-04-23 11:06 ` Bartosz Markowski
  2013-04-24 11:03 ` [ath9k-devel] [PATCH 0/7] ath10k: more cleanup Kalle Valo
  7 siblings, 0 replies; 10+ messages in thread
From: Bartosz Markowski @ 2013-04-23 11:06 UTC (permalink / raw)
  To: ath9k-devel

Signed-off-by: Bartosz Markowski <bartosz.markowski@tieto.com>
---
 drivers/net/wireless/ath/ath10k/pci.c |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/drivers/net/wireless/ath/ath10k/pci.c b/drivers/net/wireless/ath/ath10k/pci.c
index 6fe0508..790f23a 100644
--- a/drivers/net/wireless/ath/ath10k/pci.c
+++ b/drivers/net/wireless/ath/ath10k/pci.c
@@ -430,7 +430,7 @@ static bool ath10k_pci_target_is_awake(struct ath10k *ar)
 	return (RTC_STATE_V_GET(val) == RTC_STATE_V_ON);
 }
 
-static void ath10k_pci_wait_for_target_to_awake(struct ath10k *ar)
+static void ath10k_pci_wait(struct ath10k *ar)
 {
 	int n = 100;
 
@@ -2034,7 +2034,7 @@ static int ath10k_pci_configure(struct ath10k *ar)
 			  ar_pci->mem + PCIE_LOCAL_BASE_ADDRESS +
 			  PCIE_SOC_WAKE_ADDRESS);
 
-		ath10k_pci_wait_for_target_to_awake(ar);
+		ath10k_pci_wait(ar);
 
 		/*
 		 * A potential race occurs here: The CORE_BASE write
@@ -2064,7 +2064,7 @@ static int ath10k_pci_configure(struct ath10k *ar)
 		  ar_pci->mem + PCIE_LOCAL_BASE_ADDRESS +
 		  PCIE_SOC_WAKE_ADDRESS);
 
-	ath10k_pci_wait_for_target_to_awake(ar);
+	ath10k_pci_wait(ar);
 
 	ret = ath10k_pci_reset_target(ar);
 	if (ret)
@@ -2298,7 +2298,7 @@ retry:
 	iowrite32(PCIE_SOC_WAKE_V_MASK,
 		  mem + PCIE_LOCAL_BASE_ADDRESS +
 		  PCIE_SOC_WAKE_ADDRESS);
-	ath10k_pci_wait_for_target_to_awake(ar);
+	ath10k_pci_wait(ar);
 
 	fw_indicator = ioread32(mem + FW_INDICATOR_ADDRESS);
 	iowrite32(PCIE_SOC_WAKE_RESET,
-- 
1.7.10

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

* [ath9k-devel] [PATCH 0/7] ath10k: more cleanup
  2013-04-23 11:06 [ath9k-devel] [PATCH 0/7] ath10k: more cleanup Bartosz Markowski
                   ` (6 preceding siblings ...)
  2013-04-23 11:06 ` [ath9k-devel] [PATCH 7/7] ath10k: rename ath10k_pci_wait_for_target_to_awake Bartosz Markowski
@ 2013-04-24 11:03 ` Kalle Valo
  2013-04-24 11:06   ` Markowski Bartosz
  7 siblings, 1 reply; 10+ messages in thread
From: Kalle Valo @ 2013-04-24 11:03 UTC (permalink / raw)
  To: ath9k-devel

Bartosz Markowski <bartosz.markowski@tieto.com> writes:

> Bartosz Markowski (7):
>   ath10k: Print more elgant HW name/version
>   ath10k: shift ath10k_generic_iter structure to mac header
>   ath10k: kill HIF_TYPE_AR9888
>   ath10k: shift REG_DUMP_COUNT_AR9888 to pci block
>   ath10k: move DIAG_TRANSFER_LIMIT to pci block
>   ath10k: remove leftover prototypes
>   ath10k: rename ath10k_pci_wait_for_target_to_awake

Thanks, applied. Patch 4 had conflicts but git took care of that.

But there's a new warning now:

drivers/net/wireless/ath/ath10k/pci.c: In function 'ath10k_pci_probe':
drivers/net/wireless/ath/ath10k/pci.c:2150:6: warning: unused variable 'hif_type' [-Wunused-variable]


-- 
Kalle Valo

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

* [ath9k-devel] [PATCH 0/7] ath10k: more cleanup
  2013-04-24 11:03 ` [ath9k-devel] [PATCH 0/7] ath10k: more cleanup Kalle Valo
@ 2013-04-24 11:06   ` Markowski Bartosz
  0 siblings, 0 replies; 10+ messages in thread
From: Markowski Bartosz @ 2013-04-24 11:06 UTC (permalink / raw)
  To: ath9k-devel

On 24/04/13 13:03, Kalle Valo wrote:
> Bartosz Markowski <bartosz.markowski@tieto.com> writes:
>
>> Bartosz Markowski (7):
>>    ath10k: Print more elgant HW name/version
>>    ath10k: shift ath10k_generic_iter structure to mac header
>>    ath10k: kill HIF_TYPE_AR9888
>>    ath10k: shift REG_DUMP_COUNT_AR9888 to pci block
>>    ath10k: move DIAG_TRANSFER_LIMIT to pci block
>>    ath10k: remove leftover prototypes
>>    ath10k: rename ath10k_pci_wait_for_target_to_awake
> Thanks, applied. Patch 4 had conflicts but git took care of that.
>
> But there's a new warning now:
>
> drivers/net/wireless/ath/ath10k/pci.c: In function 'ath10k_pci_probe':
> drivers/net/wireless/ath/ath10k/pci.c:2150:6: warning: unused variable 'hif_type' [-Wunused-variable]
>
>
oops, sorry. I will fix it.

Bartosz

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

end of thread, other threads:[~2013-04-24 11:06 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-23 11:06 [ath9k-devel] [PATCH 0/7] ath10k: more cleanup Bartosz Markowski
2013-04-23 11:06 ` [ath9k-devel] [PATCH 1/7] ath10k: Print more elgant HW name/version Bartosz Markowski
2013-04-23 11:06 ` [ath9k-devel] [PATCH 2/7] ath10k: shift ath10k_generic_iter structure to mac header Bartosz Markowski
2013-04-23 11:06 ` [ath9k-devel] [PATCH 3/7] ath10k: kill HIF_TYPE_AR9888 Bartosz Markowski
2013-04-23 11:06 ` [ath9k-devel] [PATCH 4/7] ath10k: shift REG_DUMP_COUNT_AR9888 to pci block Bartosz Markowski
2013-04-23 11:06 ` [ath9k-devel] [PATCH 5/7] ath10k: move DIAG_TRANSFER_LIMIT " Bartosz Markowski
2013-04-23 11:06 ` [ath9k-devel] [PATCH 6/7] ath10k: remove leftover prototypes Bartosz Markowski
2013-04-23 11:06 ` [ath9k-devel] [PATCH 7/7] ath10k: rename ath10k_pci_wait_for_target_to_awake Bartosz Markowski
2013-04-24 11:03 ` [ath9k-devel] [PATCH 0/7] ath10k: more cleanup Kalle Valo
2013-04-24 11:06   ` Markowski Bartosz

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.