]> git.itanic.dy.fi Git - linux-stable/commitdiff
ath9k: use iowrite32 over __raw_writel
authorChristian Lamparter <chunkeey@gmail.com>
Sun, 24 Nov 2019 14:40:59 +0000 (15:40 +0100)
committerKalle Valo <kvalo@codeaurora.org>
Thu, 28 Nov 2019 08:18:51 +0000 (10:18 +0200)
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>
drivers/net/wireless/ath/ath9k/ath9k_pci_owl_loader.c

index 956fa7828d0c8c668531928ac86924c12859d5d7..56d1a7764b9f8746819898a2247a9bf83c3da3c2 100644 (file)
@@ -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);
        }