Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6a4f6e1d authored by Michal Kazior's avatar Michal Kazior Committed by Kalle Valo
Browse files

ath10k: differentiate between target init failures



This just makes it easier to tell apart different
kinds of bringup failure.

Signed-off-by: default avatarMichal Kazior <michal.kazior@tieto.com>
Signed-off-by: default avatarKalle Valo <kvalo@qca.qualcomm.com>
parent 644aa4d6
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -2464,7 +2464,13 @@ static int ath10k_pci_wait_for_target_init(struct ath10k *ar)
		mdelay(10);
	} while (time_before(jiffies, timeout));

	if (val == 0xffffffff || !(val & FW_IND_INITIALIZED)) {
	if (val == 0xffffffff) {
		ath10k_err("failed to read device register, device is gone\n");
		ret = -EIO;
		goto out;
	}

	if (!(val & FW_IND_INITIALIZED)) {
		ath10k_err("failed to receive initialized event from target: %08x\n",
			   val);
		ret = -ETIMEDOUT;