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

Commit 958e1be8 authored by Kalle Valo's avatar Kalle Valo
Browse files

ath6kl: don't set hi_refclk_hz if hardware version doesn't need it



Needed for ar6004 hw3.0 support.

Signed-off-by: default avatarKalle Valo <kvalo@qca.qualcomm.com>
parent b056397e
Loading
Loading
Loading
Loading
+6 −3
Original line number Original line Diff line number Diff line
@@ -624,9 +624,12 @@ int ath6kl_configure_target(struct ath6kl *ar)
		return status;
		return status;


	/* Configure target refclk_hz */
	/* Configure target refclk_hz */
	status = ath6kl_bmi_write_hi32(ar, hi_refclk_hz, ar->hw.refclk_hz);
	if (ar->hw.refclk_hz != 0) {
		status = ath6kl_bmi_write_hi32(ar, hi_refclk_hz,
					       ar->hw.refclk_hz);
		if (status)
		if (status)
			return status;
			return status;
	}


	return 0;
	return 0;
}
}