aboutsummaryrefslogtreecommitdiffstats
path: root/package/kernel/mac80211/patches/861-b43-call-PCIe-up-and-down-functions.patch
diff options
context:
space:
mode:
authorHauke Mehrtens <hauke@openwrt.org>2013-08-05 16:17:05 +0000
committerHauke Mehrtens <hauke@openwrt.org>2013-08-05 16:17:05 +0000
commit0b5bdf9b5e1d1b9e35be9bca8884ef5b01b2fd9b (patch)
treed1eb54f3a7b2de513780abfca19871386867b75e /package/kernel/mac80211/patches/861-b43-call-PCIe-up-and-down-functions.patch
parentcff3736b8f18eaf3a0c93449e142d45ab62bfb9c (diff)
downloadmaster-187ad058-0b5bdf9b5e1d1b9e35be9bca8884ef5b01b2fd9b.tar.gz
master-187ad058-0b5bdf9b5e1d1b9e35be9bca8884ef5b01b2fd9b.tar.bz2
master-187ad058-0b5bdf9b5e1d1b9e35be9bca8884ef5b01b2fd9b.zip
kernel: fix DMA error when BCM4331 is connected to BCM4706
The BCM4331 supports a PCIe max request size of 512 bytes and uses that, but the PCIe controller in the BCM4706 just supports 128 Bytes and that causes a DMA error for packages bigger than 126 bytes. This fixes the problem by setting the BCM4331 also to 128 Bytes. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@37709 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/kernel/mac80211/patches/861-b43-call-PCIe-up-and-down-functions.patch')
-rw-r--r--package/kernel/mac80211/patches/861-b43-call-PCIe-up-and-down-functions.patch36
1 files changed, 36 insertions, 0 deletions
diff --git a/package/kernel/mac80211/patches/861-b43-call-PCIe-up-and-down-functions.patch b/package/kernel/mac80211/patches/861-b43-call-PCIe-up-and-down-functions.patch
new file mode 100644
index 0000000000..f09cc3ee89
--- /dev/null
+++ b/package/kernel/mac80211/patches/861-b43-call-PCIe-up-and-down-functions.patch
@@ -0,0 +1,36 @@
+b43: call PCIe up and down functions
+
+Tell the PCIe host core when the wifi is activated.
+
+Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
+
+--- a/drivers/net/wireless/b43/main.c
++++ b/drivers/net/wireless/b43/main.c
+@@ -4670,6 +4670,19 @@ static void b43_wireless_core_exit(struc
+ b43_maskset32(dev, B43_MMIO_MACCTL, ~B43_MACCTL_PSM_RUN,
+ B43_MACCTL_PSM_JMP0);
+
++ switch (dev->dev->bus_type) {
++#ifdef CPTCFG_B43_BCMA
++ case B43_BUS_BCMA:
++ bcma_core_pci_down(dev->dev->bdev->bus);
++ break;
++#endif
++#ifdef CPTCFG_B43_SSB
++ case B43_BUS_SSB:
++ /* TODO */
++ break;
++#endif
++ }
++
+ b43_dma_free(dev);
+ b43_pio_free(dev);
+ b43_chip_exit(dev);
+@@ -4709,6 +4722,7 @@ static int b43_wireless_core_init(struct
+ case B43_BUS_BCMA:
+ bcma_core_pci_irq_ctl(&dev->dev->bdev->bus->drv_pci[0],
+ dev->dev->bdev, true);
++ bcma_core_pci_up(dev->dev->bdev->bus);
+ break;
+ #endif
+ #ifdef CPTCFG_B43_SSB