All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ath9k: Show actual timeout value in failed calibration messages.
@ 2013-03-24 18:25 ` Robert Shade
  0 siblings, 0 replies; 4+ messages in thread
From: Robert Shade @ 2013-03-24 18:25 UTC (permalink / raw)
  To: linux-wireless; +Cc: ath9k-devel

The messages are currently hard coding "1ms", which does not match
the actual timeout being used.
---
 drivers/net/wireless/ath/ath9k/ar9002_calib.c |    9 ++++++---
 drivers/net/wireless/ath/ath9k/ar9003_calib.c |    3 ++-
 2 files changed, 8 insertions(+), 4 deletions(-)

diff --git a/drivers/net/wireless/ath/ath9k/ar9002_calib.c
b/drivers/net/wireless/ath/ath9k/ar9002_calib.c
index c55e5bb..9f58974 100644
--- a/drivers/net/wireless/ath/ath9k/ar9002_calib.c
+++ b/drivers/net/wireless/ath/ath9k/ar9002_calib.c
@@ -731,7 +731,8 @@ static bool ar9285_hw_cl_cal(struct ath_hw *ah,
struct ath9k_channel *chan)
 		if (!ath9k_hw_wait(ah, AR_PHY_AGC_CONTROL,
 				  AR_PHY_AGC_CONTROL_CAL, 0, AH_WAIT_TIMEOUT)) {
 			ath_dbg(common, CALIBRATE,
-				"offset calibration failed to complete in 1ms; noisy environment?\n");
+				"offset calibration failed to complete in %d ms; noisy environment?\n",
+				AH_WAIT_TIMEOUT / 1000);
 			return false;
 		}
 		REG_CLR_BIT(ah, AR_PHY_TURBO, AR_PHY_FC_DYN2040_EN);
@@ -745,7 +746,8 @@ static bool ar9285_hw_cl_cal(struct ath_hw *ah,
struct ath9k_channel *chan)
 	if (!ath9k_hw_wait(ah, AR_PHY_AGC_CONTROL, AR_PHY_AGC_CONTROL_CAL,
 			  0, AH_WAIT_TIMEOUT)) {
 		ath_dbg(common, CALIBRATE,
-			"offset calibration failed to complete in 1ms; noisy environment?\n");
+			"offset calibration failed to complete in %d ms; noisy environment?\n",
+			AH_WAIT_TIMEOUT / 1000);
 		return false;
 	}

@@ -841,7 +843,8 @@ static bool ar9002_hw_init_cal(struct ath_hw *ah,
struct ath9k_channel *chan)
 				   AR_PHY_AGC_CONTROL_CAL,
 				   0, AH_WAIT_TIMEOUT)) {
 			ath_dbg(common, CALIBRATE,
-				"offset calibration failed to complete in 1ms; noisy environment?\n");
+				"offset calibration failed to complete in %d ms; noisy environment?\n",
+				AH_WAIT_TIMEOUT / 1000);
 			return false;
 		}

diff --git a/drivers/net/wireless/ath/ath9k/ar9003_calib.c
b/drivers/net/wireless/ath/ath9k/ar9003_calib.c
index f76c3ca..639ba7d 100644
--- a/drivers/net/wireless/ath/ath9k/ar9003_calib.c
+++ b/drivers/net/wireless/ath/ath9k/ar9003_calib.c
@@ -1126,7 +1126,8 @@ skip_tx_iqcal:
 			ar9003_hw_rtt_disable(ah);

 		ath_dbg(common, CALIBRATE,
-			"offset calibration failed to complete in 1ms; noisy environment?\n");
+			"offset calibration failed to complete in %d ms; noisy environment?\n",
+			AH_WAIT_TIMEOUT / 1000);
 		return false;
 	}

-- 
1.7.1

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

* [ath9k-devel] [PATCH] ath9k: Show actual timeout value in failed calibration messages.
@ 2013-03-24 18:25 ` Robert Shade
  0 siblings, 0 replies; 4+ messages in thread
From: Robert Shade @ 2013-03-24 18:25 UTC (permalink / raw)
  To: ath9k-devel

The messages are currently hard coding "1ms", which does not match
the actual timeout being used.
---
 drivers/net/wireless/ath/ath9k/ar9002_calib.c |    9 ++++++---
 drivers/net/wireless/ath/ath9k/ar9003_calib.c |    3 ++-
 2 files changed, 8 insertions(+), 4 deletions(-)

diff --git a/drivers/net/wireless/ath/ath9k/ar9002_calib.c
b/drivers/net/wireless/ath/ath9k/ar9002_calib.c
index c55e5bb..9f58974 100644
--- a/drivers/net/wireless/ath/ath9k/ar9002_calib.c
+++ b/drivers/net/wireless/ath/ath9k/ar9002_calib.c
@@ -731,7 +731,8 @@ static bool ar9285_hw_cl_cal(struct ath_hw *ah,
struct ath9k_channel *chan)
 		if (!ath9k_hw_wait(ah, AR_PHY_AGC_CONTROL,
 				  AR_PHY_AGC_CONTROL_CAL, 0, AH_WAIT_TIMEOUT)) {
 			ath_dbg(common, CALIBRATE,
-				"offset calibration failed to complete in 1ms; noisy environment?\n");
+				"offset calibration failed to complete in %d ms; noisy environment?\n",
+				AH_WAIT_TIMEOUT / 1000);
 			return false;
 		}
 		REG_CLR_BIT(ah, AR_PHY_TURBO, AR_PHY_FC_DYN2040_EN);
@@ -745,7 +746,8 @@ static bool ar9285_hw_cl_cal(struct ath_hw *ah,
struct ath9k_channel *chan)
 	if (!ath9k_hw_wait(ah, AR_PHY_AGC_CONTROL, AR_PHY_AGC_CONTROL_CAL,
 			  0, AH_WAIT_TIMEOUT)) {
 		ath_dbg(common, CALIBRATE,
-			"offset calibration failed to complete in 1ms; noisy environment?\n");
+			"offset calibration failed to complete in %d ms; noisy environment?\n",
+			AH_WAIT_TIMEOUT / 1000);
 		return false;
 	}

@@ -841,7 +843,8 @@ static bool ar9002_hw_init_cal(struct ath_hw *ah,
struct ath9k_channel *chan)
 				   AR_PHY_AGC_CONTROL_CAL,
 				   0, AH_WAIT_TIMEOUT)) {
 			ath_dbg(common, CALIBRATE,
-				"offset calibration failed to complete in 1ms; noisy environment?\n");
+				"offset calibration failed to complete in %d ms; noisy environment?\n",
+				AH_WAIT_TIMEOUT / 1000);
 			return false;
 		}

diff --git a/drivers/net/wireless/ath/ath9k/ar9003_calib.c
b/drivers/net/wireless/ath/ath9k/ar9003_calib.c
index f76c3ca..639ba7d 100644
--- a/drivers/net/wireless/ath/ath9k/ar9003_calib.c
+++ b/drivers/net/wireless/ath/ath9k/ar9003_calib.c
@@ -1126,7 +1126,8 @@ skip_tx_iqcal:
 			ar9003_hw_rtt_disable(ah);

 		ath_dbg(common, CALIBRATE,
-			"offset calibration failed to complete in 1ms; noisy environment?\n");
+			"offset calibration failed to complete in %d ms; noisy environment?\n",
+			AH_WAIT_TIMEOUT / 1000);
 		return false;
 	}

-- 
1.7.1

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

* Re: [PATCH] ath9k: Show actual timeout value in failed calibration messages.
  2013-03-24 18:25 ` [ath9k-devel] " Robert Shade
@ 2013-03-27 15:04   ` John W. Linville
  -1 siblings, 0 replies; 4+ messages in thread
From: John W. Linville @ 2013-03-27 15:04 UTC (permalink / raw)
  To: Robert Shade; +Cc: linux-wireless, ath9k-devel

Missing a Signed-off-by line...

On Sun, Mar 24, 2013 at 02:25:02PM -0400, Robert Shade wrote:
> The messages are currently hard coding "1ms", which does not match
> the actual timeout being used.
> ---
>  drivers/net/wireless/ath/ath9k/ar9002_calib.c |    9 ++++++---
>  drivers/net/wireless/ath/ath9k/ar9003_calib.c |    3 ++-
>  2 files changed, 8 insertions(+), 4 deletions(-)
> 
> diff --git a/drivers/net/wireless/ath/ath9k/ar9002_calib.c
> b/drivers/net/wireless/ath/ath9k/ar9002_calib.c
> index c55e5bb..9f58974 100644
> --- a/drivers/net/wireless/ath/ath9k/ar9002_calib.c
> +++ b/drivers/net/wireless/ath/ath9k/ar9002_calib.c
> @@ -731,7 +731,8 @@ static bool ar9285_hw_cl_cal(struct ath_hw *ah,
> struct ath9k_channel *chan)
>  		if (!ath9k_hw_wait(ah, AR_PHY_AGC_CONTROL,
>  				  AR_PHY_AGC_CONTROL_CAL, 0, AH_WAIT_TIMEOUT)) {
>  			ath_dbg(common, CALIBRATE,
> -				"offset calibration failed to complete in 1ms; noisy environment?\n");
> +				"offset calibration failed to complete in %d ms; noisy environment?\n",
> +				AH_WAIT_TIMEOUT / 1000);
>  			return false;
>  		}
>  		REG_CLR_BIT(ah, AR_PHY_TURBO, AR_PHY_FC_DYN2040_EN);
> @@ -745,7 +746,8 @@ static bool ar9285_hw_cl_cal(struct ath_hw *ah,
> struct ath9k_channel *chan)
>  	if (!ath9k_hw_wait(ah, AR_PHY_AGC_CONTROL, AR_PHY_AGC_CONTROL_CAL,
>  			  0, AH_WAIT_TIMEOUT)) {
>  		ath_dbg(common, CALIBRATE,
> -			"offset calibration failed to complete in 1ms; noisy environment?\n");
> +			"offset calibration failed to complete in %d ms; noisy environment?\n",
> +			AH_WAIT_TIMEOUT / 1000);
>  		return false;
>  	}
> 
> @@ -841,7 +843,8 @@ static bool ar9002_hw_init_cal(struct ath_hw *ah,
> struct ath9k_channel *chan)
>  				   AR_PHY_AGC_CONTROL_CAL,
>  				   0, AH_WAIT_TIMEOUT)) {
>  			ath_dbg(common, CALIBRATE,
> -				"offset calibration failed to complete in 1ms; noisy environment?\n");
> +				"offset calibration failed to complete in %d ms; noisy environment?\n",
> +				AH_WAIT_TIMEOUT / 1000);
>  			return false;
>  		}
> 
> diff --git a/drivers/net/wireless/ath/ath9k/ar9003_calib.c
> b/drivers/net/wireless/ath/ath9k/ar9003_calib.c
> index f76c3ca..639ba7d 100644
> --- a/drivers/net/wireless/ath/ath9k/ar9003_calib.c
> +++ b/drivers/net/wireless/ath/ath9k/ar9003_calib.c
> @@ -1126,7 +1126,8 @@ skip_tx_iqcal:
>  			ar9003_hw_rtt_disable(ah);
> 
>  		ath_dbg(common, CALIBRATE,
> -			"offset calibration failed to complete in 1ms; noisy environment?\n");
> +			"offset calibration failed to complete in %d ms; noisy environment?\n",
> +			AH_WAIT_TIMEOUT / 1000);
>  		return false;
>  	}
> 
> -- 
> 1.7.1
> --
> 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
> 

-- 
John W. Linville		Someday the world will need a hero, and you
linville@tuxdriver.com			might be all we have.  Be ready.

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

* [ath9k-devel] [PATCH] ath9k: Show actual timeout value in failed calibration messages.
@ 2013-03-27 15:04   ` John W. Linville
  0 siblings, 0 replies; 4+ messages in thread
From: John W. Linville @ 2013-03-27 15:04 UTC (permalink / raw)
  To: ath9k-devel

Missing a Signed-off-by line...

On Sun, Mar 24, 2013 at 02:25:02PM -0400, Robert Shade wrote:
> The messages are currently hard coding "1ms", which does not match
> the actual timeout being used.
> ---
>  drivers/net/wireless/ath/ath9k/ar9002_calib.c |    9 ++++++---
>  drivers/net/wireless/ath/ath9k/ar9003_calib.c |    3 ++-
>  2 files changed, 8 insertions(+), 4 deletions(-)
> 
> diff --git a/drivers/net/wireless/ath/ath9k/ar9002_calib.c
> b/drivers/net/wireless/ath/ath9k/ar9002_calib.c
> index c55e5bb..9f58974 100644
> --- a/drivers/net/wireless/ath/ath9k/ar9002_calib.c
> +++ b/drivers/net/wireless/ath/ath9k/ar9002_calib.c
> @@ -731,7 +731,8 @@ static bool ar9285_hw_cl_cal(struct ath_hw *ah,
> struct ath9k_channel *chan)
>  		if (!ath9k_hw_wait(ah, AR_PHY_AGC_CONTROL,
>  				  AR_PHY_AGC_CONTROL_CAL, 0, AH_WAIT_TIMEOUT)) {
>  			ath_dbg(common, CALIBRATE,
> -				"offset calibration failed to complete in 1ms; noisy environment?\n");
> +				"offset calibration failed to complete in %d ms; noisy environment?\n",
> +				AH_WAIT_TIMEOUT / 1000);
>  			return false;
>  		}
>  		REG_CLR_BIT(ah, AR_PHY_TURBO, AR_PHY_FC_DYN2040_EN);
> @@ -745,7 +746,8 @@ static bool ar9285_hw_cl_cal(struct ath_hw *ah,
> struct ath9k_channel *chan)
>  	if (!ath9k_hw_wait(ah, AR_PHY_AGC_CONTROL, AR_PHY_AGC_CONTROL_CAL,
>  			  0, AH_WAIT_TIMEOUT)) {
>  		ath_dbg(common, CALIBRATE,
> -			"offset calibration failed to complete in 1ms; noisy environment?\n");
> +			"offset calibration failed to complete in %d ms; noisy environment?\n",
> +			AH_WAIT_TIMEOUT / 1000);
>  		return false;
>  	}
> 
> @@ -841,7 +843,8 @@ static bool ar9002_hw_init_cal(struct ath_hw *ah,
> struct ath9k_channel *chan)
>  				   AR_PHY_AGC_CONTROL_CAL,
>  				   0, AH_WAIT_TIMEOUT)) {
>  			ath_dbg(common, CALIBRATE,
> -				"offset calibration failed to complete in 1ms; noisy environment?\n");
> +				"offset calibration failed to complete in %d ms; noisy environment?\n",
> +				AH_WAIT_TIMEOUT / 1000);
>  			return false;
>  		}
> 
> diff --git a/drivers/net/wireless/ath/ath9k/ar9003_calib.c
> b/drivers/net/wireless/ath/ath9k/ar9003_calib.c
> index f76c3ca..639ba7d 100644
> --- a/drivers/net/wireless/ath/ath9k/ar9003_calib.c
> +++ b/drivers/net/wireless/ath/ath9k/ar9003_calib.c
> @@ -1126,7 +1126,8 @@ skip_tx_iqcal:
>  			ar9003_hw_rtt_disable(ah);
> 
>  		ath_dbg(common, CALIBRATE,
> -			"offset calibration failed to complete in 1ms; noisy environment?\n");
> +			"offset calibration failed to complete in %d ms; noisy environment?\n",
> +			AH_WAIT_TIMEOUT / 1000);
>  		return false;
>  	}
> 
> -- 
> 1.7.1
> --
> To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
> the body of a message to majordomo at vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 

-- 
John W. Linville		Someday the world will need a hero, and you
linville at tuxdriver.com			might be all we have.  Be ready.

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

end of thread, other threads:[~2013-03-27 15:15 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-03-24 18:25 [PATCH] ath9k: Show actual timeout value in failed calibration messages Robert Shade
2013-03-24 18:25 ` [ath9k-devel] " Robert Shade
2013-03-27 15:04 ` John W. Linville
2013-03-27 15:04   ` [ath9k-devel] " John W. Linville

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.