diff options
author | Jonas Gorski <jogo@openwrt.org> | 2015-05-21 19:32:16 +0000 |
---|---|---|
committer | Jonas Gorski <jogo@openwrt.org> | 2015-05-21 19:32:16 +0000 |
commit | 19deb0cf132ecd6cd1b4aa79fcc4462c698a38dd (patch) | |
tree | 64cea72dc0e5975d838ee1119c3c6b938b9d7435 /package/kernel/mac80211/patches/319-ath9k_htc-add-new-WMI_REG_RMW_CMDID-command.patch | |
parent | 87e7581aed0b3df30c2f77eda387806f7c2b824c (diff) | |
download | upstream-19deb0cf132ecd6cd1b4aa79fcc4462c698a38dd.tar.gz upstream-19deb0cf132ecd6cd1b4aa79fcc4462c698a38dd.tar.bz2 upstream-19deb0cf132ecd6cd1b4aa79fcc4462c698a38dd.zip |
mac80211: make it work with 3.18.12+
3.18.12 backported 61ada528dea028331e99e8ceaed87c683ad25de2 ("sched/wait:
Provide infrastructure to deal with nested blocking") from 3.19, causing
the following error on load:
[ 13.588000] compat: exports duplicate symbol woken_wake_function (owned by kernel)
Fix this by guarding it with a check for 3.18.11 or earlier instead of
3.19.
Signed-off-by: Jonas Gorski <jogo@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45710 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/kernel/mac80211/patches/319-ath9k_htc-add-new-WMI_REG_RMW_CMDID-command.patch')
-rw-r--r-- | package/kernel/mac80211/patches/319-ath9k_htc-add-new-WMI_REG_RMW_CMDID-command.patch | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/package/kernel/mac80211/patches/319-ath9k_htc-add-new-WMI_REG_RMW_CMDID-command.patch b/package/kernel/mac80211/patches/319-ath9k_htc-add-new-WMI_REG_RMW_CMDID-command.patch index c3942cecf3..6af69ebd2a 100644 --- a/package/kernel/mac80211/patches/319-ath9k_htc-add-new-WMI_REG_RMW_CMDID-command.patch +++ b/package/kernel/mac80211/patches/319-ath9k_htc-add-new-WMI_REG_RMW_CMDID-command.patch @@ -121,7 +121,11 @@ Signed-off-by: Kalle Valo <kvalo@codeaurora.org> + } + priv->wmi->multi_rmw_idx = 0; + } -+ + +- val = ath9k_regread(hw_priv, reg_offset); +- val &= ~clr; +- val |= set; +- ath9k_regwrite(hw_priv, val, reg_offset); + mutex_unlock(&priv->wmi->multi_rmw_mutex); +} + @@ -133,11 +137,7 @@ Signed-off-by: Kalle Valo <kvalo@codeaurora.org> + + if (test_bit(HTC_FWFLAG_NO_RMW, &priv->fw_flags)) + return; - -- val = ath9k_regread(hw_priv, reg_offset); -- val &= ~clr; -- val |= set; -- ath9k_regwrite(hw_priv, val, reg_offset); ++ + atomic_inc(&priv->wmi->m_rmw_cnt); +} + @@ -239,7 +239,7 @@ Signed-off-by: Kalle Valo <kvalo@codeaurora.org> len += scnprintf(buf + len, size - len, "%20s : %10d\n",\ --- a/drivers/net/wireless/ath/ath9k/wmi.c +++ b/drivers/net/wireless/ath/ath9k/wmi.c -@@ -61,6 +61,8 @@ static const char *wmi_cmd_to_name(enum +@@ -61,6 +61,8 @@ static const char *wmi_cmd_to_name(enum return "WMI_REG_READ_CMDID"; case WMI_REG_WRITE_CMDID: return "WMI_REG_WRITE_CMDID"; |