From: Michal Kazior Date: Fri, 5 Jul 2013 13:15:10 +0000 (+0300) Subject: ath10k: provide errno if bmi read/write fails X-Git-Tag: MMI-PSA29.97-13-9~13299^2~225^2~25^2~109 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=ed48b35644a08da5ee3c54570241a023abf3ea40;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git ath10k: provide errno if bmi read/write fails Signed-off-by: Michal Kazior Signed-off-by: Kalle Valo --- diff --git a/drivers/net/wireless/ath/ath10k/bmi.c b/drivers/net/wireless/ath/ath10k/bmi.c index 1a2ef51b69d9..aeae02979d46 100644 --- a/drivers/net/wireless/ath/ath10k/bmi.c +++ b/drivers/net/wireless/ath/ath10k/bmi.c @@ -105,7 +105,8 @@ int ath10k_bmi_read_memory(struct ath10k *ar, ret = ath10k_hif_exchange_bmi_msg(ar, &cmd, cmdlen, &resp, &rxlen); if (ret) { - ath10k_warn("unable to read from the device\n"); + ath10k_warn("unable to read from the device (%d)\n", + ret); return ret; } @@ -149,7 +150,8 @@ int ath10k_bmi_write_memory(struct ath10k *ar, ret = ath10k_hif_exchange_bmi_msg(ar, &cmd, hdrlen + txlen, NULL, NULL); if (ret) { - ath10k_warn("unable to write to the device\n"); + ath10k_warn("unable to write to the device (%d)\n", + ret); return ret; }