diff options
author | Felix Fietkau <nbd@openwrt.org> | 2015-04-14 12:17:34 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2015-04-14 12:17:34 +0000 |
commit | cd59cb2a4004c0a4bd13ded3c0ee7abf850fda7d (patch) | |
tree | 580c994a8d121e191f2de5383c8de7ea84afb665 /package/kernel/mac80211/patches/323-ath9k-add-multi_read-to-be-compatible-with-ath9k_htc.patch | |
parent | 054044ff91891723025a6b35bd583c98e141ea3d (diff) | |
download | master-187ad058-cd59cb2a4004c0a4bd13ded3c0ee7abf850fda7d.tar.gz master-187ad058-cd59cb2a4004c0a4bd13ded3c0ee7abf850fda7d.tar.bz2 master-187ad058-cd59cb2a4004c0a4bd13ded3c0ee7abf850fda7d.zip |
mac80211: merge a number of upstream driver fixes/improvements
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45432 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/kernel/mac80211/patches/323-ath9k-add-multi_read-to-be-compatible-with-ath9k_htc.patch')
-rw-r--r-- | package/kernel/mac80211/patches/323-ath9k-add-multi_read-to-be-compatible-with-ath9k_htc.patch | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/package/kernel/mac80211/patches/323-ath9k-add-multi_read-to-be-compatible-with-ath9k_htc.patch b/package/kernel/mac80211/patches/323-ath9k-add-multi_read-to-be-compatible-with-ath9k_htc.patch new file mode 100644 index 0000000000..4cd0ea3c79 --- /dev/null +++ b/package/kernel/mac80211/patches/323-ath9k-add-multi_read-to-be-compatible-with-ath9k_htc.patch @@ -0,0 +1,35 @@ +From: Oleksij Rempel <linux@rempel-privat.de> +Date: Sun, 22 Mar 2015 19:29:50 +0100 +Subject: [PATCH] ath9k: add multi_read to be compatible with ath9k_htc + +Signed-off-by: Oleksij Rempel <linux@rempel-privat.de> +Signed-off-by: Kalle Valo <kvalo@codeaurora.org> +--- + +--- a/drivers/net/wireless/ath/ath9k/init.c ++++ b/drivers/net/wireless/ath/ath9k/init.c +@@ -141,6 +141,16 @@ static unsigned int ath9k_ioread32(void + return val; + } + ++static void ath9k_multi_ioread32(void *hw_priv, u32 *addr, ++ u32 *val, u16 count) ++{ ++ int i; ++ ++ for (i = 0; i < count; i++) ++ val[i] = ath9k_ioread32(hw_priv, addr[i]); ++} ++ ++ + static unsigned int __ath9k_reg_rmw(struct ath_softc *sc, u32 reg_offset, + u32 set, u32 clr) + { +@@ -530,6 +540,7 @@ static int ath9k_init_softc(u16 devid, s + ah->hw = sc->hw; + ah->hw_version.devid = devid; + ah->reg_ops.read = ath9k_ioread32; ++ ah->reg_ops.multi_read = ath9k_multi_ioread32; + ah->reg_ops.write = ath9k_iowrite32; + ah->reg_ops.rmw = ath9k_reg_rmw; + pCap = &ah->caps; |