linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/3] mwifiex: FW downloading debug printing improvements
@ 2016-08-25 15:05 Stanislaw Gruszka
  2016-08-25 15:05 ` [PATCH 1/3] mwifiex: make "PCI-E is not the winner" print more informative Stanislaw Gruszka
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Stanislaw Gruszka @ 2016-08-25 15:05 UTC (permalink / raw)
  To: linux-wireless; +Cc: Amitkumar Karwar, Nishant Sarmukadam, Stanislaw Gruszka

3 small patches that make FW downloading prints more informative

Stanislaw Gruszka (3):
  mwifiex: make "PCI-E is not the winner" print more informative
  mwifiex: print status of FW ready event
  mwifiex: do not print dot when downloading FW

 drivers/net/wireless/marvell/mwifiex/pcie.c | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

-- 
1.8.3.1

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

* [PATCH 1/3] mwifiex: make "PCI-E is not the winner" print more informative
  2016-08-25 15:05 [PATCH 0/3] mwifiex: FW downloading debug printing improvements Stanislaw Gruszka
@ 2016-08-25 15:05 ` Stanislaw Gruszka
  2016-09-03 17:03   ` [1/3] " Kalle Valo
  2016-08-25 15:05 ` [PATCH 2/3] mwifiex: print status of FW ready event Stanislaw Gruszka
  2016-08-25 15:05 ` [PATCH 3/3] mwifiex: do not print dot when downloading FW Stanislaw Gruszka
  2 siblings, 1 reply; 5+ messages in thread
From: Stanislaw Gruszka @ 2016-08-25 15:05 UTC (permalink / raw)
  To: linux-wireless; +Cc: Amitkumar Karwar, Nishant Sarmukadam, Stanislaw Gruszka

Printing ret and adapter->winner do not provide any useful information
as those are always 0 at point where the massage is printed. Print value
read from reg->fw_status register instead.

Stanislaw Gruszka <sgruszka@redhat.com>
---
 drivers/net/wireless/marvell/mwifiex/pcie.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/net/wireless/marvell/mwifiex/pcie.c b/drivers/net/wireless/marvell/mwifiex/pcie.c
index 453ab6a..8abbbfe 100644
--- a/drivers/net/wireless/marvell/mwifiex/pcie.c
+++ b/drivers/net/wireless/marvell/mwifiex/pcie.c
@@ -2074,8 +2074,7 @@ mwifiex_check_winner_status(struct mwifiex_adapter *adapter)
 		adapter->winner = 1;
 	} else {
 		mwifiex_dbg(adapter, ERROR,
-			    "PCI-E is not the winner <%#x,%d>, exit dnld\n",
-			    ret, adapter->winner);
+			    "PCI-E is not the winner <%#x>", winner);
 	}
 
 	return ret;
-- 
1.8.3.1

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

* [PATCH 2/3] mwifiex: print status of FW ready event
  2016-08-25 15:05 [PATCH 0/3] mwifiex: FW downloading debug printing improvements Stanislaw Gruszka
  2016-08-25 15:05 ` [PATCH 1/3] mwifiex: make "PCI-E is not the winner" print more informative Stanislaw Gruszka
@ 2016-08-25 15:05 ` Stanislaw Gruszka
  2016-08-25 15:05 ` [PATCH 3/3] mwifiex: do not print dot when downloading FW Stanislaw Gruszka
  2 siblings, 0 replies; 5+ messages in thread
From: Stanislaw Gruszka @ 2016-08-25 15:05 UTC (permalink / raw)
  To: linux-wireless; +Cc: Amitkumar Karwar, Nishant Sarmukadam, Stanislaw Gruszka

For debugging purpose print content of reg->fw_status register and other
variables values when waiting for firmware ready event.

Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
---
 drivers/net/wireless/marvell/mwifiex/pcie.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/drivers/net/wireless/marvell/mwifiex/pcie.c b/drivers/net/wireless/marvell/mwifiex/pcie.c
index 8abbbfe..2f555b0 100644
--- a/drivers/net/wireless/marvell/mwifiex/pcie.c
+++ b/drivers/net/wireless/marvell/mwifiex/pcie.c
@@ -2043,6 +2043,10 @@ mwifiex_check_fw_status(struct mwifiex_adapter *adapter, u32 poll_num)
 			ret = -1;
 		else
 			ret = 0;
+
+		mwifiex_dbg(adapter, INFO, "Try %d if FW is ready <%d,%#x>",
+			    tries, ret, firmware_stat);
+
 		if (ret)
 			continue;
 		if (firmware_stat == FIRMWARE_READY_PCIE) {
-- 
1.8.3.1

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

* [PATCH 3/3] mwifiex: do not print dot when downloading FW
  2016-08-25 15:05 [PATCH 0/3] mwifiex: FW downloading debug printing improvements Stanislaw Gruszka
  2016-08-25 15:05 ` [PATCH 1/3] mwifiex: make "PCI-E is not the winner" print more informative Stanislaw Gruszka
  2016-08-25 15:05 ` [PATCH 2/3] mwifiex: print status of FW ready event Stanislaw Gruszka
@ 2016-08-25 15:05 ` Stanislaw Gruszka
  2 siblings, 0 replies; 5+ messages in thread
From: Stanislaw Gruszka @ 2016-08-25 15:05 UTC (permalink / raw)
  To: linux-wireless; +Cc: Amitkumar Karwar, Nishant Sarmukadam, Stanislaw Gruszka

Printing about 3000 lines like this

[   20.691850] mwifiex_pcie 0000:02:00.0: .
[   20.693466] mwifiex_pcie 0000:02:00.0: .

is not useful. If FW downloading will be interrupted, we will get
proper error message about that.

Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
---
 drivers/net/wireless/marvell/mwifiex/pcie.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/drivers/net/wireless/marvell/mwifiex/pcie.c b/drivers/net/wireless/marvell/mwifiex/pcie.c
index 2f555b0..50a6a53 100644
--- a/drivers/net/wireless/marvell/mwifiex/pcie.c
+++ b/drivers/net/wireless/marvell/mwifiex/pcie.c
@@ -1956,8 +1956,6 @@ static int mwifiex_prog_fw_w_helper(struct mwifiex_adapter *adapter,
 			if (firmware_len - offset < txlen)
 				txlen = firmware_len - offset;
 
-			mwifiex_dbg(adapter, INFO, ".");
-
 			tx_blocks = (txlen + card->pcie.blksz_fw_dl - 1) /
 				    card->pcie.blksz_fw_dl;
 
-- 
1.8.3.1

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

* Re: [1/3] mwifiex: make "PCI-E is not the winner" print more informative
  2016-08-25 15:05 ` [PATCH 1/3] mwifiex: make "PCI-E is not the winner" print more informative Stanislaw Gruszka
@ 2016-09-03 17:03   ` Kalle Valo
  0 siblings, 0 replies; 5+ messages in thread
From: Kalle Valo @ 2016-09-03 17:03 UTC (permalink / raw)
  To: Stanislaw Gruszka
  Cc: linux-wireless, Amitkumar Karwar, Nishant Sarmukadam,
	Stanislaw Gruszka

Stanislaw Gruszka <sgruszka@redhat.com> wrote:
> Printing ret and adapter->winner do not provide any useful information
> as those are always 0 at point where the massage is printed. Print value
> read from reg->fw_status register instead.
> 
> Stanislaw Gruszka <sgruszka@redhat.com>

Thanks, 3 patches applied to wireless-drivers-next.git:

fd3fbb65cab8 mwifiex: make "PCI-E is not the winner" print more informative
09dd9ec598c3 mwifiex: print status of FW ready event
b9aebb69ecd3 mwifiex: do not print dot when downloading FW

-- 
Sent by pwcli
https://patchwork.kernel.org/patch/9299495/

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

end of thread, other threads:[~2016-09-03 17:03 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-08-25 15:05 [PATCH 0/3] mwifiex: FW downloading debug printing improvements Stanislaw Gruszka
2016-08-25 15:05 ` [PATCH 1/3] mwifiex: make "PCI-E is not the winner" print more informative Stanislaw Gruszka
2016-09-03 17:03   ` [1/3] " Kalle Valo
2016-08-25 15:05 ` [PATCH 2/3] mwifiex: print status of FW ready event Stanislaw Gruszka
2016-08-25 15:05 ` [PATCH 3/3] mwifiex: do not print dot when downloading FW Stanislaw Gruszka

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).