提交 ed48b356 编写于 作者: M Michal Kazior 提交者: Kalle Valo

ath10k: provide errno if bmi read/write fails

Signed-off-by: NMichal Kazior <michal.kazior@tieto.com>
Signed-off-by: NKalle Valo <kvalo@qca.qualcomm.com>
上级 342004be
...@@ -105,7 +105,8 @@ int ath10k_bmi_read_memory(struct ath10k *ar, ...@@ -105,7 +105,8 @@ int ath10k_bmi_read_memory(struct ath10k *ar,
ret = ath10k_hif_exchange_bmi_msg(ar, &cmd, cmdlen, ret = ath10k_hif_exchange_bmi_msg(ar, &cmd, cmdlen,
&resp, &rxlen); &resp, &rxlen);
if (ret) { if (ret) {
ath10k_warn("unable to read from the device\n"); ath10k_warn("unable to read from the device (%d)\n",
ret);
return ret; return ret;
} }
...@@ -149,7 +150,8 @@ int ath10k_bmi_write_memory(struct ath10k *ar, ...@@ -149,7 +150,8 @@ int ath10k_bmi_write_memory(struct ath10k *ar,
ret = ath10k_hif_exchange_bmi_msg(ar, &cmd, hdrlen + txlen, ret = ath10k_hif_exchange_bmi_msg(ar, &cmd, hdrlen + txlen,
NULL, NULL); NULL, NULL);
if (ret) { if (ret) {
ath10k_warn("unable to write to the device\n"); ath10k_warn("unable to write to the device (%d)\n",
ret);
return ret; return ret;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册