board/lemaker/bananapro: fix wlan module
authorBartosz Bilas <b.bilas@grinn-global.com>
Sat, 4 Jan 2020 16:48:37 +0000 (17:48 +0100)
committerPeter Korsgaard <peter@korsgaard.com>
Tue, 4 Feb 2020 18:27:48 +0000 (19:27 +0100)
Restore a patch which disables 00B IRQ for the built-in wlan module which
allows working wlan module again.  It turned out that it shouldn't have been
deleted because the bug still exists in the mainline linux kernel, so keep
this patch the same as armbian[1] to have wifi connection working correctly.

[1] https://github.com/armbian/build/blob/master/patch/kernel/sunxi-dev/ARM-dts-sun7i-Disable-OOB-IRQ-for-brcm-wifi-on-Cubietruck-and-Banana-Pro.patch

Signed-off-by: Bartosz Bilas <b.bilas@grinn-global.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
board/lemaker/bananapro/patches/linux/0001-arch-arm-boot-dts-sun7i-a20-bananapro.dts-disable-00.patch [new file with mode: 0644]
configs/bananapro_defconfig

diff --git a/board/lemaker/bananapro/patches/linux/0001-arch-arm-boot-dts-sun7i-a20-bananapro.dts-disable-00.patch b/board/lemaker/bananapro/patches/linux/0001-arch-arm-boot-dts-sun7i-a20-bananapro.dts-disable-00.patch
new file mode 100644 (file)
index 0000000..c8e8c03
--- /dev/null
@@ -0,0 +1,44 @@
+From 896e82ab14e7e4e361ffa7c81def787907c1bf4c Mon Sep 17 00:00:00 2001
+From: Bartosz Bilas <b.bilas@grinn-global.com>
+Date: Sun, 19 May 2019 21:04:35 +0200
+Subject: [PATCH] arch/arm/boot/dts/sun7i-a20-bananapro.dts: disable 00B
+ IRQ for brcm wifi module
+
+       BugLink: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=908438
+
+Signed-off-by: Hans de Goede <hdegoede@redhat.com>
+Signed-off-by: Bartosz Bilas <b.bilas@grinn-global.com>
+---
+ arch/arm/boot/dts/sun7i-a20-bananapro.dts | 16 +++++++++++++---
+ 1 file changed, 13 insertions(+), 3 deletions(-)
+
+diff --git a/arch/arm/boot/dts/sun7i-a20-bananapro.dts b/arch/arm/boot/dts/sun7i-a20-bananapro.dts
+index 0176e9de0..93b3340f5 100644
+--- a/arch/arm/boot/dts/sun7i-a20-bananapro.dts
++++ b/arch/arm/boot/dts/sun7i-a20-bananapro.dts
+@@ -160,9 +160,19 @@
+       brcmf: wifi@1 {
+               reg = <1>;
+               compatible = "brcm,bcm4329-fmac";
+-              interrupt-parent = <&pio>;
+-              interrupts = <7 15 IRQ_TYPE_LEVEL_LOW>;
+-              interrupt-names = "host-wake";
++              /*
++               * OOB interrupt support is broken ATM, often the first irq
++               * does not get seen resulting in the drv probe failing with:
++               *
++               * brcmfmac: brcmf_sdio_bus_rxctl: resumed on timeout
++               * brcmfmac: brcmf_bus_started: failed: -110
++               * brcmfmac: brcmf_attach: dongle is not responding: err=-110
++               * brcmfmac: brcmf_sdio_firmware_callback: brcmf_attach failed
++               *
++               * interrupt-parent = <&pio>;
++               * interrupts = <7 15 IRQ_TYPE_LEVEL_LOW>;
++               * interrupt-names = "host-wake";
++               */
+       };
+ };
+-- 
+2.21.0
+
index a99038057099ba633591e7788c23214f53c0a8cf..95bd871468925907cff761dfba1656e708669e89 100644 (file)
@@ -1,6 +1,7 @@
 # Architecture
 BR2_arm=y
 BR2_cortex_a7=y
+BR2_GLOBAL_PATCH_DIR="board/lemaker/bananapro/patches"
 BR2_ARM_EABIHF=y
 BR2_ARM_FPU_NEON_VFPV4=y