diff mbox

[OpenWrt-Devel] mac80211: bypass otp check in ath10k initialization (needed for TP-Link Archer C2600)

Message ID 1451066884-8415-1-git-send-email-joshbendavid@gmail.com
State Changes Requested
Headers show

Commit Message

Josh Bendavid Dec. 25, 2015, 6:08 p.m. UTC
There is a patch added here to ath10k to bypass some checks on startup.  I believe this is related to the calibration data being provided in external files (dumped from the ART mtd partition at init time) rather than directly from the pcie board.  The patch and related discussion is from here: http://lists.infradead.org/pipermail/ath10k/2015-November/006489.html.  This has also been discussed a bit further on the ath10k list here: http://lists.infradead.org/pipermail/ath10k/2015-December/006613.html.

Signed-off-by: Josh Bendavid <joshbendavid@gmail.com>

---
 .../kernel/mac80211/patches/941-ath10k_skip_otp_check.patch | 13 +++++++++++++
 1 file changed, 13 insertions(+)
 create mode 100644 package/kernel/mac80211/patches/941-ath10k_skip_otp_check.patch

Comments

Felix Fietkau Jan. 3, 2016, 8:46 p.m. UTC | #1
On 2015-12-25 19:08, Josh Bendavid wrote:
> There is a patch added here to ath10k to bypass some checks on
> startup. I believe this is related to the calibration data being
> provided in external files (dumped from the ART mtd partition at init
> time) rather than directly from the pcie board. The patch and related
> discussion is from here:
> http://lists.infradead.org/pipermail/ath10k/2015-November/006489.html.
> This has also been discussed a bit further on the ath10k list here:
> http://lists.infradead.org/pipermail/ath10k/2015-December/006613.html.
> 
> Signed-off-by: Josh Bendavid <joshbendavid@gmail.com>
I think the check should only be skipped if loading calibration data
succeeded. Actually, in that case it should not even try to fetch the
board id.

- Felix
diff mbox

Patch

diff --git a/package/kernel/mac80211/patches/941-ath10k_skip_otp_check.patch b/package/kernel/mac80211/patches/941-ath10k_skip_otp_check.patch
new file mode 100644
index 0000000..ffe783d
--- /dev/null
+++ b/package/kernel/mac80211/patches/941-ath10k_skip_otp_check.patch
@@ -0,0 +1,13 @@ 
+--- a/drivers/net/wireless/ath/ath10k/core.c
++++ b/drivers/net/wireless/ath/ath10k/core.c
+@@ -1800,9 +1800,8 @@
+ 
+ 	ret = ath10k_core_get_board_id_from_otp(ar);
+ 	if (ret && ret != -EOPNOTSUPP) {
+-		ath10k_err(ar, "failed to get board id from otp: %d\n",
++		ath10k_err(ar, "failed to get board id from otp: %d, ignoring\n",
+ 			   ret);
+-		return ret;
+ 	}
+ 
+ 	ret = ath10k_core_fetch_board_file(ar);