brcm47xx: backport r29923
authorhauke <hauke@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Sun, 29 Jan 2012 15:01:16 +0000 (15:01 +0000)
committerhauke <hauke@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Sun, 29 Jan 2012 15:01:16 +0000 (15:01 +0000)
fix cardbus host controller

git-svn-id: svn://svn.openwrt.org/openwrt/branches/backfire@29943 3c298f89-4303-0410-b956-a3cf2f4a3e73

target/linux/brcm47xx/patches-2.6.32/180-fix-cardbus-in-hostmode.patch [new file with mode: 0644]

diff --git a/target/linux/brcm47xx/patches-2.6.32/180-fix-cardbus-in-hostmode.patch b/target/linux/brcm47xx/patches-2.6.32/180-fix-cardbus-in-hostmode.patch
new file mode 100644 (file)
index 0000000..fb170f5
--- /dev/null
@@ -0,0 +1,11 @@
+--- a/drivers/ssb/driver_pcicore.c
++++ b/drivers/ssb/driver_pcicore.c
+@@ -69,7 +69,7 @@ static u32 get_cfgspace_addr(struct ssb_
+       u32 tmp;
+       /* We do only have one cardbus device behind the bridge. */
+-      if (pc->cardbusmode && (dev >= 1))
++      if (pc->cardbusmode && (dev > 1))
+               goto out;
+       if (bus == 0) {