1 From bd8eca2c0f5542c5b20b1c2cc506b8b8a46018df Mon Sep 17 00:00:00 2001
2 From: Christian Lamparter <chunkeey@gmail.com>
3 Date: Sun, 24 Nov 2019 15:22:55 +0100
4 Subject: [PATCH] ath9k: use iowrite32 over __raw_writel
5 To: linux-wireless@vger.kernel.org
6 Cc: QCA ath9k Development <ath9k-devel@qca.qualcomm.com>,
7 Kalle Valo <kvalo@codeaurora.org>,
8 Hauke Mehrtens <hauke@hauke-m.de>,
9 Mathias Kresin <dev@kresin.me>,
10 Martin Blumenstingl <martin.blumenstingl@googlemail.com>
12 This patch changes the ath9k_pci_owl_loader to use the
13 same iowrite32 memory accessor that ath9k_pci is using
14 to communicate with the PCI(e) chip.
16 This will fix endian issues that came up during testing
17 with loaned AVM Fritz!Box 7360 (Lantiq MIPS SoCs + AR9287).
19 Fixes: 5a4f2040fd07 ("ath9k: add loader for AR92XX (and older) pci(e)")
20 Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
22 drivers/net/wireless/ath/ath9k/ath9k_pci_owl_loader.c | 2 +-
23 1 file changed, 1 insertion(+), 1 deletion(-)
25 diff --git a/drivers/net/wireless/ath/ath9k/ath9k_pci_owl_loader.c b/drivers/net/wireless/ath/ath9k/ath9k_pci_owl_loader.c
26 index 956fa7828d0c..56d1a7764b9f 100644
27 --- a/drivers/net/wireless/ath/ath9k/ath9k_pci_owl_loader.c
28 +++ b/drivers/net/wireless/ath/ath9k/ath9k_pci_owl_loader.c
29 @@ -83,7 +83,7 @@ static int ath9k_pci_fixup(struct pci_dev *pdev, const u16 *cal_data,
33 - __raw_writel(val, mem + reg);
34 + iowrite32(val, mem + reg);
35 usleep_range(100, 120);