ATH10K Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 1/3] ath10k: don't enable interrupts for the diagnostic window
@ 2014-09-23 14:32 Kalle Valo
  2014-09-23 14:32 ` [PATCH v2 2/3] ath10k: add diag_read() to hif ops Kalle Valo
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: Kalle Valo @ 2014-09-23 14:32 UTC (permalink / raw)
  To: ath10k; +Cc: linux-wireless

The diagnostic window (CE7) uses polling and is not initiliased to retrieve
interrupts so disable interrupts altogether for CE7. Otherwise ath10k crashes
when using the diagnostic window while the firmware is running due to NULL
dereference and polling reads timeout.

Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
---
 drivers/net/wireless/ath/ath10k/ce.c |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/drivers/net/wireless/ath/ath10k/ce.c b/drivers/net/wireless/ath/ath10k/ce.c
index 101cadb6e4ba..03b3a2c441fe 100644
--- a/drivers/net/wireless/ath/ath10k/ce.c
+++ b/drivers/net/wireless/ath/ath10k/ce.c
@@ -817,7 +817,9 @@ void ath10k_ce_enable_interrupts(struct ath10k *ar)
 	struct ath10k_pci *ar_pci = ath10k_pci_priv(ar);
 	int ce_id;
 
-	for (ce_id = 0; ce_id < CE_COUNT; ce_id++)
+	/* Skip the last copy engine, CE7 the diagnostic window, as that
+	 * uses polling and isn't initialized for interrupts. */
+	for (ce_id = 0; ce_id < CE_COUNT - 1; ce_id++)
 		ath10k_ce_per_engine_handler_adjust(&ar_pci->ce_states[ce_id]);
 }
 


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

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

end of thread, other threads:[~2014-09-24 11:01 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-09-23 14:32 [PATCH v2 1/3] ath10k: don't enable interrupts for the diagnostic window Kalle Valo
2014-09-23 14:32 ` [PATCH v2 2/3] ath10k: add diag_read() to hif ops Kalle Valo
2014-09-23 14:32 ` [PATCH v2 3/3] ath10k: add cal_data debugfs file Kalle Valo
2014-09-24  7:00   ` Michal Kazior
2014-09-24 11:00     ` Kalle Valo
2014-09-23 14:38 ` [PATCH v2 1/3] ath10k: don't enable interrupts for the diagnostic window Kalle Valo
2014-09-24  6:58 ` Michal Kazior
2014-09-24 10:26   ` Kalle Valo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox