diff options
author | Christian Lamparter <chunkeey@gmail.com> | 2019-11-24 15:40:59 +0100 |
---|---|---|
committer | Kalle Valo <kvalo@codeaurora.org> | 2019-11-28 10:18:51 +0200 |
commit | 22d0d5ae7a089967e9295a06694aa3e8a812b15e (patch) | |
tree | e448a1c40129f44e7f7c5298999fee734d7b1367 | |
parent | 3d94a4a8373bf5f45cf5f939e88b8354dbf2311b (diff) | |
download | linux-22d0d5ae7a089967e9295a06694aa3e8a812b15e.tar.gz linux-22d0d5ae7a089967e9295a06694aa3e8a812b15e.tar.bz2 linux-22d0d5ae7a089967e9295a06694aa3e8a812b15e.zip |
ath9k: use iowrite32 over __raw_writel
This patch changes the ath9k_pci_owl_loader to use the
same iowrite32 memory accessor that ath9k_pci is using
to communicate with the PCI(e) chip.
This will fix endian issues that came up during testing
with loaned AVM Fritz!Box 7360 (Lantiq MIPS SoCs + AR9287).
Fixes: 5a4f2040fd07 ("ath9k: add loader for AR92XX (and older) pci(e)")
Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
-rw-r--r-- | drivers/net/wireless/ath/ath9k/ath9k_pci_owl_loader.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath/ath9k/ath9k_pci_owl_loader.c b/drivers/net/wireless/ath/ath9k/ath9k_pci_owl_loader.c index 956fa7828d0c..56d1a7764b9f 100644 --- a/drivers/net/wireless/ath/ath9k/ath9k_pci_owl_loader.c +++ b/drivers/net/wireless/ath/ath9k/ath9k_pci_owl_loader.c @@ -83,7 +83,7 @@ static int ath9k_pci_fixup(struct pci_dev *pdev, const u16 *cal_data, val = swahb32(val); } - __raw_writel(val, mem + reg); + iowrite32(val, mem + reg); usleep_range(100, 120); } |