aboutsummaryrefslogtreecommitdiffstats
path: root/package/broadcom-diag
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2008-06-15 11:09:27 +0000
committerFelix Fietkau <nbd@openwrt.org>2008-06-15 11:09:27 +0000
commit7886efab9db906ffa3c77a26e460b3bd0c2dc41a (patch)
tree94f913c2410b551e42abff977730254492503b37 /package/broadcom-diag
parentef3c293536a7a1f784c6305c0b6b37d3975c5640 (diff)
downloadupstream-7886efab9db906ffa3c77a26e460b3bd0c2dc41a.tar.gz
upstream-7886efab9db906ffa3c77a26e460b3bd0c2dc41a.tar.bz2
upstream-7886efab9db906ffa3c77a26e460b3bd0c2dc41a.zip
(1/6) bcm57xx: init from diag
I've been working to finish up the bcm57xx module package nbd posted a few months ago. I am no expert, just had some spare time and some motivation. Here is the background: https://dev.openwrt.org/ticket/2744 This first patch disables the bcm57xx gpio setup in broadcom-diag. The switch needs to be initialized by the driver so the driver can then reset the switch ASAP. If the switch isn't reset quickly enough, it will forward packets between the WAN and LAN, which will cause problems with modems that only allow one mac to access the internet. Tested on wrt350n. Signed-off-by: Ben Pfountz <netprince (at) vt (dot) edu> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@11466 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/broadcom-diag')
-rw-r--r--package/broadcom-diag/src/diag.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/package/broadcom-diag/src/diag.c b/package/broadcom-diag/src/diag.c
index a4bad4d00c..9cfc1d98c8 100644
--- a/package/broadcom-diag/src/diag.c
+++ b/package/broadcom-diag/src/diag.c
@@ -142,9 +142,12 @@ static void __init bcm4780_init(void) {
static void __init bcm57xx_init(void) {
int pin = 1 << 2;
+#ifndef LINUX_2_4
+ /* FIXME: switch comes up, but port mappings/vlans not right */
gpio_outen(pin, pin);
gpio_control(pin, 0);
gpio_out(pin, pin);
+#endif
}
static struct platform_t __initdata platforms[] = {