1 From: Oleksij Rempel <linux@rempel-privat.de>
2 Date: Sun, 22 Mar 2015 19:29:50 +0100
3 Subject: [PATCH] ath9k: add multi_read to be compatible with ath9k_htc
5 Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
6 Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
9 --- a/drivers/net/wireless/ath/ath9k/init.c
10 +++ b/drivers/net/wireless/ath/ath9k/init.c
11 @@ -141,6 +141,16 @@ static unsigned int ath9k_ioread32(void
15 +static void ath9k_multi_ioread32(void *hw_priv, u32 *addr,
16 + u32 *val, u16 count)
20 + for (i = 0; i < count; i++)
21 + val[i] = ath9k_ioread32(hw_priv, addr[i]);
25 static unsigned int __ath9k_reg_rmw(struct ath_softc *sc, u32 reg_offset,
28 @@ -530,6 +540,7 @@ static int ath9k_init_softc(u16 devid, s
30 ah->hw_version.devid = devid;
31 ah->reg_ops.read = ath9k_ioread32;
32 + ah->reg_ops.multi_read = ath9k_multi_ioread32;
33 ah->reg_ops.write = ath9k_iowrite32;
34 ah->reg_ops.rmw = ath9k_reg_rmw;