All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ath9k_hw: extend GPIO pin select mask for rfkill
@ 2011-09-28 13:19 ` Mohammed Shafi Shajakhan
  0 siblings, 0 replies; 4+ messages in thread
From: Mohammed Shafi Shajakhan @ 2011-09-28 13:19 UTC (permalink / raw)
  To: John W. Linville
  Cc: Jouni Malinen, linux-wireless, Rodriguez Luis,
	Balasubramanian senthilkumar, Vasanthakumar Thiagarajan,
	Rajkumar Manoharan, Vivek Natarajan, ath9k-devel,
	Mohammed Shafi Shajakhan, Wilson Tsao, Hu, Russell

From: Mohammed Shafi Shajakhan <mohammed@qca.qualcomm.com>

this extends the bits for rf kill GPIO selection to [7:2] from [4:2] as
we use GPIO pin 11 as rfkill for AR9480 and also remove few unused macros

Cc: Wilson Tsao <wtsao@qca.qualcomm.com>
Cc: "Hu, Russell" <rhu@qca.qualcomm.com>
Signed-off-by: Mohammed Shafi Shajakhan <mohammed@qca.qualcomm.com>
---
 drivers/net/wireless/ath/ath9k/eeprom.h |    7 +------
 1 files changed, 1 insertions(+), 6 deletions(-)

diff --git a/drivers/net/wireless/ath/ath9k/eeprom.h b/drivers/net/wireless/ath/ath9k/eeprom.h
index a3c7d0c..9bde45c 100644
--- a/drivers/net/wireless/ath/ath9k/eeprom.h
+++ b/drivers/net/wireless/ath/ath9k/eeprom.h
@@ -104,16 +104,11 @@
 #define OLC_FOR_AR9287_10_LATER (AR_SREV_9287_11_OR_LATER(ah) && \
 				 ah->eep_ops->get_eeprom(ah, EEP_OL_PWRCTRL))
 
-#define AR_EEPROM_RFSILENT_GPIO_SEL     0x001c
-#define AR_EEPROM_RFSILENT_GPIO_SEL_S   2
-#define AR_EEPROM_RFSILENT_POLARITY     0x0002
-#define AR_EEPROM_RFSILENT_POLARITY_S   1
-
 #define EEP_RFSILENT_ENABLED        0x0001
 #define EEP_RFSILENT_ENABLED_S      0
 #define EEP_RFSILENT_POLARITY       0x0002
 #define EEP_RFSILENT_POLARITY_S     1
-#define EEP_RFSILENT_GPIO_SEL       0x001c
+#define EEP_RFSILENT_GPIO_SEL       0x00fc
 #define EEP_RFSILENT_GPIO_SEL_S     2
 
 #define AR5416_OPFLAGS_11A           0x01
-- 
1.7.0.4


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

* [ath9k-devel] [PATCH] ath9k_hw: extend GPIO pin select mask for rfkill
@ 2011-09-28 13:19 ` Mohammed Shafi Shajakhan
  0 siblings, 0 replies; 4+ messages in thread
From: Mohammed Shafi Shajakhan @ 2011-09-28 13:19 UTC (permalink / raw)
  To: ath9k-devel

From: Mohammed Shafi Shajakhan <mohammed@qca.qualcomm.com>

this extends the bits for rf kill GPIO selection to [7:2] from [4:2] as
we use GPIO pin 11 as rfkill for AR9480 and also remove few unused macros

Cc: Wilson Tsao <wtsao@qca.qualcomm.com>
Cc: "Hu, Russell" <rhu@qca.qualcomm.com>
Signed-off-by: Mohammed Shafi Shajakhan <mohammed@qca.qualcomm.com>
---
 drivers/net/wireless/ath/ath9k/eeprom.h |    7 +------
 1 files changed, 1 insertions(+), 6 deletions(-)

diff --git a/drivers/net/wireless/ath/ath9k/eeprom.h b/drivers/net/wireless/ath/ath9k/eeprom.h
index a3c7d0c..9bde45c 100644
--- a/drivers/net/wireless/ath/ath9k/eeprom.h
+++ b/drivers/net/wireless/ath/ath9k/eeprom.h
@@ -104,16 +104,11 @@
 #define OLC_FOR_AR9287_10_LATER (AR_SREV_9287_11_OR_LATER(ah) && \
 				 ah->eep_ops->get_eeprom(ah, EEP_OL_PWRCTRL))
 
-#define AR_EEPROM_RFSILENT_GPIO_SEL     0x001c
-#define AR_EEPROM_RFSILENT_GPIO_SEL_S   2
-#define AR_EEPROM_RFSILENT_POLARITY     0x0002
-#define AR_EEPROM_RFSILENT_POLARITY_S   1
-
 #define EEP_RFSILENT_ENABLED        0x0001
 #define EEP_RFSILENT_ENABLED_S      0
 #define EEP_RFSILENT_POLARITY       0x0002
 #define EEP_RFSILENT_POLARITY_S     1
-#define EEP_RFSILENT_GPIO_SEL       0x001c
+#define EEP_RFSILENT_GPIO_SEL       0x00fc
 #define EEP_RFSILENT_GPIO_SEL_S     2
 
 #define AR5416_OPFLAGS_11A           0x01
-- 
1.7.0.4

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

* Re: [PATCH] ath9k_hw: extend GPIO pin select mask for rfkill
  2011-09-28 13:19 ` [ath9k-devel] " Mohammed Shafi Shajakhan
@ 2011-09-28 14:44   ` mohammed
  -1 siblings, 0 replies; 4+ messages in thread
From: mohammed @ 2011-09-28 14:44 UTC (permalink / raw)
  To: Mohammed Shafi Shajakhan
  Cc: John W. Linville, Jouni Malinen, linux-wireless, Rodriguez Luis,
	Balasubramanian senthilkumar, Vasanthakumar Thiagarajan,
	Rajkumar Manoharan, Vivek Natarajan, ath9k-devel, Wilson Tsao,
	Hu, Russell

John, please drop this patch will resend a proper v2 patch, as its 
better to have a unique GPIO rfkill selection mask for AR5416 family of 
chip sets and AR93XX.

On Wednesday 28 September 2011 06:49 PM, Mohammed Shafi Shajakhan wrote:
> From: Mohammed Shafi Shajakhan<mohammed@qca.qualcomm.com>
>
> this extends the bits for rf kill GPIO selection to [7:2] from [4:2] as
> we use GPIO pin 11 as rfkill for AR9480 and also remove few unused macros
>
> Cc: Wilson Tsao<wtsao@qca.qualcomm.com>
> Cc: "Hu, Russell"<rhu@qca.qualcomm.com>
> Signed-off-by: Mohammed Shafi Shajakhan<mohammed@qca.qualcomm.com>
> ---
>   drivers/net/wireless/ath/ath9k/eeprom.h |    7 +------
>   1 files changed, 1 insertions(+), 6 deletions(-)
>
> diff --git a/drivers/net/wireless/ath/ath9k/eeprom.h b/drivers/net/wireless/ath/ath9k/eeprom.h
> index a3c7d0c..9bde45c 100644
> --- a/drivers/net/wireless/ath/ath9k/eeprom.h
> +++ b/drivers/net/wireless/ath/ath9k/eeprom.h
> @@ -104,16 +104,11 @@
>   #define OLC_FOR_AR9287_10_LATER (AR_SREV_9287_11_OR_LATER(ah)&&  \
>   				 ah->eep_ops->get_eeprom(ah, EEP_OL_PWRCTRL))
>
> -#define AR_EEPROM_RFSILENT_GPIO_SEL     0x001c
> -#define AR_EEPROM_RFSILENT_GPIO_SEL_S   2
> -#define AR_EEPROM_RFSILENT_POLARITY     0x0002
> -#define AR_EEPROM_RFSILENT_POLARITY_S   1
> -
>   #define EEP_RFSILENT_ENABLED        0x0001
>   #define EEP_RFSILENT_ENABLED_S      0
>   #define EEP_RFSILENT_POLARITY       0x0002
>   #define EEP_RFSILENT_POLARITY_S     1
> -#define EEP_RFSILENT_GPIO_SEL       0x001c
> +#define EEP_RFSILENT_GPIO_SEL       0x00fc
>   #define EEP_RFSILENT_GPIO_SEL_S     2
>
>   #define AR5416_OPFLAGS_11A           0x01


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

* [ath9k-devel] [PATCH] ath9k_hw: extend GPIO pin select mask for rfkill
@ 2011-09-28 14:44   ` mohammed
  0 siblings, 0 replies; 4+ messages in thread
From: mohammed @ 2011-09-28 14:44 UTC (permalink / raw)
  To: ath9k-devel

John, please drop this patch will resend a proper v2 patch, as its 
better to have a unique GPIO rfkill selection mask for AR5416 family of 
chip sets and AR93XX.

On Wednesday 28 September 2011 06:49 PM, Mohammed Shafi Shajakhan wrote:
> From: Mohammed Shafi Shajakhan<mohammed@qca.qualcomm.com>
>
> this extends the bits for rf kill GPIO selection to [7:2] from [4:2] as
> we use GPIO pin 11 as rfkill for AR9480 and also remove few unused macros
>
> Cc: Wilson Tsao<wtsao@qca.qualcomm.com>
> Cc: "Hu, Russell"<rhu@qca.qualcomm.com>
> Signed-off-by: Mohammed Shafi Shajakhan<mohammed@qca.qualcomm.com>
> ---
>   drivers/net/wireless/ath/ath9k/eeprom.h |    7 +------
>   1 files changed, 1 insertions(+), 6 deletions(-)
>
> diff --git a/drivers/net/wireless/ath/ath9k/eeprom.h b/drivers/net/wireless/ath/ath9k/eeprom.h
> index a3c7d0c..9bde45c 100644
> --- a/drivers/net/wireless/ath/ath9k/eeprom.h
> +++ b/drivers/net/wireless/ath/ath9k/eeprom.h
> @@ -104,16 +104,11 @@
>   #define OLC_FOR_AR9287_10_LATER (AR_SREV_9287_11_OR_LATER(ah)&&  \
>   				 ah->eep_ops->get_eeprom(ah, EEP_OL_PWRCTRL))
>
> -#define AR_EEPROM_RFSILENT_GPIO_SEL     0x001c
> -#define AR_EEPROM_RFSILENT_GPIO_SEL_S   2
> -#define AR_EEPROM_RFSILENT_POLARITY     0x0002
> -#define AR_EEPROM_RFSILENT_POLARITY_S   1
> -
>   #define EEP_RFSILENT_ENABLED        0x0001
>   #define EEP_RFSILENT_ENABLED_S      0
>   #define EEP_RFSILENT_POLARITY       0x0002
>   #define EEP_RFSILENT_POLARITY_S     1
> -#define EEP_RFSILENT_GPIO_SEL       0x001c
> +#define EEP_RFSILENT_GPIO_SEL       0x00fc
>   #define EEP_RFSILENT_GPIO_SEL_S     2
>
>   #define AR5416_OPFLAGS_11A           0x01

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

end of thread, other threads:[~2011-09-28 16:49 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-09-28 13:19 [PATCH] ath9k_hw: extend GPIO pin select mask for rfkill Mohammed Shafi Shajakhan
2011-09-28 13:19 ` [ath9k-devel] " Mohammed Shafi Shajakhan
2011-09-28 14:44 ` mohammed
2011-09-28 14:44   ` [ath9k-devel] " mohammed

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.