summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/ath10k/bmi.c
diff options
context:
space:
mode:
authorMichal Kazior <michal.kazior@tieto.com>2013-07-16 09:38:53 +0200
committerKalle Valo <kvalo@qca.qualcomm.com>2013-07-30 18:01:19 +0300
commit64d151d47030d0d73d82bb6fa7bfe1e29385ed43 (patch)
tree7e78abaf5f09d459b76936b63a0e47cda33184ea /drivers/net/wireless/ath/ath10k/bmi.c
parentf7843d7f1ac57fb388d5814cdcbd309fa18214be (diff)
downloadtalos-op-linux-64d151d47030d0d73d82bb6fa7bfe1e29385ed43.tar.gz
talos-op-linux-64d151d47030d0d73d82bb6fa7bfe1e29385ed43.zip
ath10k: reset BMI state upon init
This is necessary if we want to be able to restart hw on-the-fly. Signed-off-by: Michal Kazior <michal.kazior@tieto.com> Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath10k/bmi.c')
-rw-r--r--drivers/net/wireless/ath/ath10k/bmi.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath10k/bmi.c b/drivers/net/wireless/ath/ath10k/bmi.c
index aeae02979d46..744da6d1c405 100644
--- a/drivers/net/wireless/ath/ath10k/bmi.c
+++ b/drivers/net/wireless/ath/ath10k/bmi.c
@@ -20,6 +20,12 @@
#include "debug.h"
#include "htc.h"
+void ath10k_bmi_start(struct ath10k *ar)
+{
+ ath10k_dbg(ATH10K_DBG_CORE, "BMI started\n");
+ ar->bmi.done_sent = false;
+}
+
int ath10k_bmi_done(struct ath10k *ar)
{
struct bmi_cmd cmd;
OpenPOWER on IntegriCloud