broadcom-wl: hack to work around a bug in the PCIe controller
[openwrt/svn-archive/archive.git] / package / broadcom-wl / patches / 913-avoid-dbe-on-ifs_ctl-readw-hack.patch
1 --- a/driver/linux_osl.c
2 +++ b/driver/linux_osl.c
3 @@ -723,6 +723,9 @@ osl_readl(volatile uint32 *r)
4 uint16
5 osl_readw(volatile uint16 *r)
6 {
7 + uint32 addr = (uintptr)r & 0xffff3fff;
8 + if (addr == 0xa8000688) /* ifs_ctl */
9 + readl(r);
10 return (readw(r));
11 }
12