aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/ath10k/bmi.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/ath/ath10k/bmi.c')
-rw-r--r--drivers/net/wireless/ath/ath10k/bmi.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/drivers/net/wireless/ath/ath10k/bmi.c b/drivers/net/wireless/ath/ath10k/bmi.c
index 1a2ef51b69d9..744da6d1c405 100644
--- a/drivers/net/wireless/ath/ath10k/bmi.c
+++ b/drivers/net/wireless/ath/ath10k/bmi.c
@@ -20,6 +20,12 @@
20#include "debug.h" 20#include "debug.h"
21#include "htc.h" 21#include "htc.h"
22 22
23void ath10k_bmi_start(struct ath10k *ar)
24{
25 ath10k_dbg(ATH10K_DBG_CORE, "BMI started\n");
26 ar->bmi.done_sent = false;
27}
28
23int ath10k_bmi_done(struct ath10k *ar) 29int ath10k_bmi_done(struct ath10k *ar)
24{ 30{
25 struct bmi_cmd cmd; 31 struct bmi_cmd cmd;
@@ -105,7 +111,8 @@ int ath10k_bmi_read_memory(struct ath10k *ar,
105 ret = ath10k_hif_exchange_bmi_msg(ar, &cmd, cmdlen, 111 ret = ath10k_hif_exchange_bmi_msg(ar, &cmd, cmdlen,
106 &resp, &rxlen); 112 &resp, &rxlen);
107 if (ret) { 113 if (ret) {
108 ath10k_warn("unable to read from the device\n"); 114 ath10k_warn("unable to read from the device (%d)\n",
115 ret);
109 return ret; 116 return ret;
110 } 117 }
111 118
@@ -149,7 +156,8 @@ int ath10k_bmi_write_memory(struct ath10k *ar,
149 ret = ath10k_hif_exchange_bmi_msg(ar, &cmd, hdrlen + txlen, 156 ret = ath10k_hif_exchange_bmi_msg(ar, &cmd, hdrlen + txlen,
150 NULL, NULL); 157 NULL, NULL);
151 if (ret) { 158 if (ret) {
152 ath10k_warn("unable to write to the device\n"); 159 ath10k_warn("unable to write to the device (%d)\n",
160 ret);
153 return ret; 161 return ret;
154 } 162 }
155 163