All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ath10k: Drop WARN_ON()s that always trigger during system resume
@ 2019-03-03 17:24 ` Rafael J. Wysocki
  0 siblings, 0 replies; 43+ messages in thread
From: Rafael J. Wysocki @ 2019-03-03 17:24 UTC (permalink / raw)
  To: Kalle Valo
  Cc: Todd Brandt, Srinivas Pandruvada, linux-wireless, ath10k,
	Linux PM

From: Rafael J. Wysocki <rafael.j.wysocki@intel.com>

ath10k_mac_vif_chan() always returns an error for the given vif
during system-wide resume which reliably triggers two WARN_ON()s
in ath10k_bss_info_changed() and they are not particularly
useful in that code path, so drop them.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
---
 drivers/net/wireless/ath/ath10k/mac.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Index: linux-pm/drivers/net/wireless/ath/ath10k/mac.c
===================================================================
--- linux-pm.orig/drivers/net/wireless/ath/ath10k/mac.c
+++ linux-pm/drivers/net/wireless/ath/ath10k/mac.c
@@ -5705,7 +5705,7 @@ static void ath10k_bss_info_changed(stru
 	}
 
 	if (changed & BSS_CHANGED_MCAST_RATE &&
-	    !WARN_ON(ath10k_mac_vif_chan(arvif->vif, &def))) {
+	    !ath10k_mac_vif_chan(arvif->vif, &def)) {
 		band = def.chan->band;
 		rateidx = vif->bss_conf.mcast_rate[band] - 1;
 
@@ -5743,7 +5743,7 @@ static void ath10k_bss_info_changed(stru
 	}
 
 	if (changed & BSS_CHANGED_BASIC_RATES) {
-		if (WARN_ON(ath10k_mac_vif_chan(vif, &def))) {
+		if (ath10k_mac_vif_chan(vif, &def)) {
 			mutex_unlock(&ar->conf_mutex);
 			return;
 		}


_______________________________________________
ath10k mailing list
ath10k@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/ath10k

^ permalink raw reply	[flat|nested] 43+ messages in thread
* [PATCH] ath10k: Drop WARN_ON()s that always trigger during system resume
@ 2019-03-01 12:51 ` Rafael J. Wysocki
  0 siblings, 0 replies; 43+ messages in thread
From: Rafael J. Wysocki @ 2019-03-01 12:51 UTC (permalink / raw)
  To: Kalle Valo; +Cc: Todd Brandt, Srinivas Pandruvada, ath10k, Linux PM

rom: Rafael J. Wysocki <rafael.j.wysocki@intel.com>

ath10k_mac_vif_chan() always returns an error for the given vif
during system-wide resume which reliably triggers two WARN_ON()s
in ath10k_bss_info_changed() and they are not particularly
useful in that code path, so drop them.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
---
 drivers/net/wireless/ath/ath10k/mac.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Index: linux-pm/drivers/net/wireless/ath/ath10k/mac.c
===================================================================
--- linux-pm.orig/drivers/net/wireless/ath/ath10k/mac.c
+++ linux-pm/drivers/net/wireless/ath/ath10k/mac.c
@@ -5705,7 +5705,7 @@ static void ath10k_bss_info_changed(stru
 	}
 
 	if (changed & BSS_CHANGED_MCAST_RATE &&
-	    !WARN_ON(ath10k_mac_vif_chan(arvif->vif, &def))) {
+	    !ath10k_mac_vif_chan(arvif->vif, &def)) {
 		band = def.chan->band;
 		rateidx = vif->bss_conf.mcast_rate[band] - 1;
 
@@ -5743,7 +5743,7 @@ static void ath10k_bss_info_changed(stru
 	}
 
 	if (changed & BSS_CHANGED_BASIC_RATES) {
-		if (WARN_ON(ath10k_mac_vif_chan(vif, &def))) {
+		if (ath10k_mac_vif_chan(vif, &def)) {
 			mutex_unlock(&ar->conf_mutex);
 			return;
 		}


_______________________________________________
ath10k mailing list
ath10k@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/ath10k

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

end of thread, other threads:[~2019-04-29 14:26 UTC | newest]

Thread overview: 43+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-03-03 17:24 [PATCH] ath10k: Drop WARN_ON()s that always trigger during system resume Rafael J. Wysocki
2019-03-03 17:24 ` Rafael J. Wysocki
2019-03-03 17:24 ` Rafael J. Wysocki
2019-04-03 19:57 ` Brian Norris
2019-04-03 19:57   ` Brian Norris
2019-04-03 19:57   ` Brian Norris
2019-04-03 21:44   ` Rafael J. Wysocki
2019-04-03 21:44     ` Rafael J. Wysocki
2019-04-03 21:44     ` Rafael J. Wysocki
2019-04-03 21:54     ` Brian Norris
2019-04-03 21:54       ` Brian Norris
2019-04-03 21:54       ` Brian Norris
2019-04-04  4:06       ` Kalle Valo
2019-04-04  4:06         ` Kalle Valo
2019-04-04  4:06         ` Kalle Valo
2019-04-04  8:28         ` Rafael J. Wysocki
2019-04-04  8:28           ` Rafael J. Wysocki
2019-04-04  8:28           ` Rafael J. Wysocki
2019-04-26  7:18   ` Kalle Valo
2019-04-26  7:18     ` Kalle Valo
2019-04-26  7:18     ` Kalle Valo
2019-04-29  8:48     ` Rafael J. Wysocki
2019-04-29  8:48       ` Rafael J. Wysocki
2019-04-29  8:48       ` Rafael J. Wysocki
2019-04-29 10:41       ` Claire Chang
2019-04-29 10:41         ` Claire Chang
2019-04-29 10:41         ` Claire Chang
2019-04-29 14:12         ` Kalle Valo
2019-04-29 14:12           ` Kalle Valo
2019-04-29 14:12           ` Kalle Valo
2019-04-29 14:10       ` Kalle Valo
2019-04-29 14:10         ` Kalle Valo
2019-04-29 14:10         ` Kalle Valo
     [not found] ` <2884043.Jv1Mn93hE8-yvgW3jdyMHm1GS7QM15AGw@public.gmane.org>
2019-04-29 14:26   ` Kalle Valo
2019-04-29 14:26     ` Kalle Valo
2019-04-29 14:26 ` Kalle Valo
2019-04-29 14:26   ` Kalle Valo
  -- strict thread matches above, loose matches on Subject: below --
2019-03-01 12:51 Rafael J. Wysocki
2019-03-01 12:51 ` Rafael J. Wysocki
2019-03-01 13:45 ` Kalle Valo
2019-03-01 13:45   ` Kalle Valo
2019-03-03 17:24   ` Rafael J. Wysocki
2019-03-03 17:24     ` Rafael J. Wysocki

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.