]> git.enpas.org Git - openwrt.git/commitdiff
broadcom-wl: hack to work around a bug in the PCIe controller
authorhauke <hauke@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Sun, 24 Feb 2013 18:01:06 +0000 (18:01 +0000)
committerhauke <hauke@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Sun, 24 Feb 2013 18:01:06 +0000 (18:01 +0000)
Thank you nlh

This closes #12930.

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@35767 3c298f89-4303-0410-b956-a3cf2f4a3e73

package/broadcom-wl/patches/913-avoid-dbe-on-ifs_ctl-readw-hack.patch [new file with mode: 0644]

diff --git a/package/broadcom-wl/patches/913-avoid-dbe-on-ifs_ctl-readw-hack.patch b/package/broadcom-wl/patches/913-avoid-dbe-on-ifs_ctl-readw-hack.patch
new file mode 100644 (file)
index 0000000..412bce9
--- /dev/null
@@ -0,0 +1,12 @@
+--- a/driver/linux_osl.c
++++ b/driver/linux_osl.c
+@@ -723,6 +723,9 @@ osl_readl(volatile uint32 *r)
+ uint16
+ osl_readw(volatile uint16 *r)
+ {
++      uint32 addr = (uintptr)r & 0xffff3fff;
++      if (addr == 0xa8000688) /* ifs_ctl */
++              readl(r);
+       return (readw(r));
+ }