kernel/0004-ath6kl-don-t-set-hi_refclk_hz-if-hardware-version-do.patch
Adam Williamson 0e84f13bb3 attempt to support Venue 8 Pro wireless (ath6kl backport + add ID)
Backport the latest significant changes from ath6kl in 3.17, and
add the SDIO ID of the V8P's wireless adapter. This should possibly
make wireless work on the V8P.
2014-09-09 17:30:51 -07:00

37 lines
1.0 KiB
Diff

From 958e1be848c92006ee4b95190d3725daf3a70034 Mon Sep 17 00:00:00 2001
From: Kalle Valo <kvalo@qca.qualcomm.com>
Date: Tue, 17 Jun 2014 12:41:04 +0300
Subject: [PATCH 4/8] ath6kl: don't set hi_refclk_hz if hardware version
doesn't need it
Needed for ar6004 hw3.0 support.
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
---
drivers/net/wireless/ath/ath6kl/init.c | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/drivers/net/wireless/ath/ath6kl/init.c b/drivers/net/wireless/ath/ath6kl/init.c
index ed086ea..a0400a1 100644
--- a/drivers/net/wireless/ath/ath6kl/init.c
+++ b/drivers/net/wireless/ath/ath6kl/init.c
@@ -624,9 +624,12 @@ int ath6kl_configure_target(struct ath6kl *ar)
return status;
/* Configure target refclk_hz */
- status = ath6kl_bmi_write_hi32(ar, hi_refclk_hz, ar->hw.refclk_hz);
- if (status)
- return status;
+ if (ar->hw.refclk_hz != 0) {
+ status = ath6kl_bmi_write_hi32(ar, hi_refclk_hz,
+ ar->hw.refclk_hz);
+ if (status)
+ return status;
+ }
return 0;
}
--
2.1.0