Commit 36a8f413 authored by Ben Greear's avatar Ben Greear Committed by Kalle Valo

ath10k: add otp and firmware boot error messages

If OTP or firmware fails to load properly, print out some
extra info in the kernel logs.
Signed-off-by: default avatarBen Greear <greearb@candelatech.com>
Signed-off-by: default avatarKalle Valo <kvalo@qca.qualcomm.com>
parent 53c02284
...@@ -255,7 +255,8 @@ static int ath10k_download_and_run_otp(struct ath10k *ar) ...@@ -255,7 +255,8 @@ static int ath10k_download_and_run_otp(struct ath10k *ar)
/* OTP is optional */ /* OTP is optional */
if (!ar->otp_data || !ar->otp_len) { if (!ar->otp_data || !ar->otp_len) {
ath10k_warn("Not running otp, calibration will be incorrect!\n"); ath10k_warn("Not running otp, calibration will be incorrect (otp-data %p otp_len %zd)!\n",
ar->otp_data, ar->otp_len);
return 0; return 0;
} }
...@@ -585,16 +586,22 @@ static int ath10k_init_download_firmware(struct ath10k *ar) ...@@ -585,16 +586,22 @@ static int ath10k_init_download_firmware(struct ath10k *ar)
int ret; int ret;
ret = ath10k_download_board_data(ar); ret = ath10k_download_board_data(ar);
if (ret) if (ret) {
ath10k_err("failed to download board data: %d\n", ret);
return ret; return ret;
}
ret = ath10k_download_and_run_otp(ar); ret = ath10k_download_and_run_otp(ar);
if (ret) if (ret) {
ath10k_err("failed to run otp: %d\n", ret);
return ret; return ret;
}
ret = ath10k_download_fw(ar); ret = ath10k_download_fw(ar);
if (ret) if (ret) {
ath10k_err("failed to download firmware: %d\n", ret);
return ret; return ret;
}
return ret; return ret;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment