Commit Graph

79 Commits (1bb5b406f4f6df0583afca0096fb0cc7a9bc1754)

Author SHA1 Message Date
Hauke Mehrtens f47db5b16a switch: export name of device found via /proc
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@35596 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-02-14 12:36:52 +00:00
Hauke Mehrtens e7ecb15a75 switch: export cpuport, ports and vlans via /proc
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@35595 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-02-14 12:36:13 +00:00
Hauke Mehrtens d2f74db548 switch: add support for BCM53125
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@35586 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-02-13 16:05:32 +00:00
Hauke Mehrtens 9cb4b87ca1 switch: resetting and enabling vlan write for gigabit switches
This patch makes it possible to reset and enable writing vlans to recent switchs.

This is based on a patch by jcharest and the Broadcom SDK.


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@35585 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-02-13 16:05:13 +00:00
Hauke Mehrtens 50eb7c5b18 switch: read and write vlan config from and to gigabit switches
This patch makes it possible to read and write the vlan config from and to recent switchs.

This is based on a patch by jcharest and the Broadcom SDK.


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@35584 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-02-13 16:04:50 +00:00
Hauke Mehrtens 9d90fe1527 switch: improve robo_switch_enable()
This is based on a patch by jcharest and the Broadcom SDK.


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@35583 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-02-13 16:04:18 +00:00
Hauke Mehrtens 8e4b444166 switch: fix switches with more than 6 ports
This is based on a patch by jcharest and the Broadcom SDK.


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@35582 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-02-13 16:03:47 +00:00
Hauke Mehrtens 9f68dd6769 switch: reverse if else in handle_vlan_port_read()
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@35581 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-02-13 16:03:27 +00:00
Hauke Mehrtens e2fabaf65c switch: the BCM5365 is a special switch and the BCM5350 or BCM5325 is the normal case.
This makes it easier to compare this code with the code from the Broadcom SDK.


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@35580 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-02-13 16:03:03 +00:00
Hauke Mehrtens 1e21b129a3 switch: reset switch before using it.
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@35579 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-02-13 16:02:41 +00:00
Hauke Mehrtens 8b186c8162 switch: improve error handling in robo_probe()
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@35578 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-02-13 16:02:20 +00:00
Hauke Mehrtens 9692bcf3d9 switch: run cleanfile over the source code
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@35577 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-02-13 16:01:50 +00:00
Jonas Gorski a72a8da790 bcm63xx: switch to b53 and swconfig
Switch to using the B53 switch driver where appropriate.

Use a non-tagged default config where it isn't confirmed to be
working.

Remove the switch configuration in preinit as the switch will now
be configured by the driver  to use port isolation to prevent leakage
between lan and wan.

While at it, also provide a switch config for Neufbox 6.

Signed-off-by: Jonas Gorski <jogo@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@35307 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-01-23 10:12:40 +00:00
Hauke Mehrtens c16de866d5 switch: ROBO Switch Gigabit MII Support
I wrote this patch some time ago because I had a need for one of the
Gigabit ports (Linksys E3000) to be forced to 100FD.  This is based
on the robocfg sources included w/ the RT-N16 sources from ASUS.
Since work is progressing on a BGMAC driver that could be included in
OpenWRT, this may be useful to someone else.

In testing, forcing the speed to 10/100 or 1000 worked fine; however,
when trying to force full-duplex mode, the result was always
half-duplex.  I was not able to isolate the source of the problem
(this patch, driver or H/W limitation).  The only way I could get it
to work was to set the port to Auto, but then only advertise 100FD
(not included in this patch).

I have a modified version of the robocfg package as well, I'd have to
clean it up a little first (remove the full-duplex hack) before
submitting it if there is interest.

Signed-off-by: Nathan Hintz <nlhintz@hotmail.com>


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@34992 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-01-03 01:58:01 +00:00
Hauke Mehrtens 477d74b42b switch: improve error messages
This is in part based on a patch send by Nathan Hintz <nlhintz@hotmail.com>


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@34991 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-01-03 01:57:19 +00:00
Hauke Mehrtens 880dc8381a brcm47xx: add a new version of the nvram rewrite patch
This is the version like it was send for mainline inclusion.


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@34988 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-01-03 01:53:30 +00:00
Hauke Mehrtens 63c477708e [packages] switch: warn if ndo_do_ioctl is not implemented in the Ethernet driver
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@33506 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-09-22 12:29:23 +00:00
Hauke Mehrtens 1e9116b365 [package]: switch: improve error message
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@33464 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-09-19 10:57:38 +00:00
Hauke Mehrtens 368889cbfe [packages] switch: clean up robo switch driver
* remove use_et, all supported drivers are using mii ioctls
 * remove robo.phy_addr, phy_addr was always set to ROBO_PHY_ADDR.
 * remove support for old kernel versions
 * do_ioctl is allways called with buff == NULL
 * use if_mii


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@33002 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-08-05 13:10:43 +00:00
Hauke Mehrtens b37db09843 brcm47xx: use libgpio instaed of implementing the gpio interface ourself.
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@32992 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-08-04 19:46:25 +00:00
Jo-Philipp Wich 24f8f16390 [package] switch: the hardware must be up while configuring
Since the removal of the interface coldplug hack the timing changed in such a way that eth0 is not up during switch setup,
leading to an inaccesible device. Bring up the switch interface before configuring it to mitigate the problem.


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@30937 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-03-13 21:15:41 +00:00
Hauke Mehrtens b8d85a1212 switch: fix some memory leaks in switch_parse_vlan()
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29936 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-01-28 13:52:37 +00:00
Hauke Mehrtens ee6b31756a switch: update for brcm47xx target
* remove suport for 2.4 kernel
* add support for bcma bus



git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27904 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-08-04 20:07:58 +00:00
Florian Fainelli d83ab218fe [package] switch: fix switch-robo device reference counting
Fix incorrect device reference counting by switch-robo.

Signed-off-by: George Kashperko <george@znau.edu.ua>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@25619 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-02-20 17:24:15 +00:00
Florian Fainelli b2ef939d74 [package] remove whitespaces in kmod-switch sources
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22320 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-07-20 22:25:04 +00:00
Claudio Mignanti 33990405fb massive: replace occurences of .$(LINUX_KMOD_SUFFIX) with .ko after r21950
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22145 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-07-12 14:06:13 +00:00
Felix Fietkau 3bc5d6887d remove linux 2.4 support from several packages
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21954 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-06-26 20:43:41 +00:00
Jo-Philipp Wich 12c8561736 [package] switch: explicitely clear port mappings in unsused vlans (#7082)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20717 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-04-05 13:51:26 +00:00
Nicolas Thill 24269ba691 switch: suppress boot error message on 2.4
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19922 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-03-01 01:12:57 +00:00
Jo-Philipp Wich 866a8f1140 [package] switch:
eliminate the asterisk from the switch port configuration and set it
	automatically on the first vlan, this aligns the broadcom vlan config
	with the swconfig format


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19909 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-02-28 16:40:06 +00:00
Florian Fainelli 4a8472619f [package] switch: do not include linux/autoconf.h (#6513)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19903 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-02-28 12:57:57 +00:00
Jo-Philipp Wich 48b86bd36e [brcm-2.4] change switch config to swconfig style format to remain consistent accross platforms
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18425 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-11-15 18:43:46 +00:00
Florian Fainelli 7b6bda3ebf [package] fix breakage on wl500gp after r18214, thanks sn9 (#6084)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18289 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-11-03 20:35:37 +00:00
John Crispin ef50787039 make etehrent work on wrt350n, thx sn9
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18214 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-10-29 21:26:36 +00:00
Hauke Mehrtens 9f266abb8c [brcm47xx] add patches for kernel 2.6.31
This is completly untested. Only a compile tests with the default config was done!


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@17734 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-09-26 11:48:48 +00:00
Florian Fainelli 0161324044 [package] fix oops in switch-robo on brcm63xx, thanks to Daniel Dickinson (#5053)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@15611 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-05-05 06:32:45 +00:00
Florian Fainelli 192a9d2514 [package] prevent kmod-switch from accessing nvram on brcm63xx (#5035)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@15555 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-05-02 10:01:09 +00:00
Florian Fainelli e6654449d4 [package] fix nvram_get checking on non-WGT634U (#4975)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@15319 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-04-21 09:25:51 +00:00
Florian Fainelli a3b2c3c70b [package] fix strange LED behavior with Netgear WGT634U (#3552)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@15290 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-04-20 10:27:46 +00:00
Felix Fietkau 5bdd866100 get rid of $Id$ - it has never helped us and it has broken too many patches ;)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@15242 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-04-17 14:09:46 +00:00
Florian Fainelli 13a5bcb41b [package] allow kmod-switch to be used on brcm63xx (#4599)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@14825 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-03-09 21:57:11 +00:00
Felix Fietkau 1cb52372bc switch: remove message about BFL_ENETADM not being set on systems with a roboswitch
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@13100 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-11-02 23:14:16 +00:00
Felix Fietkau ec81fa9d4e (4/6) bcm57xx: switch-core.c/switch-robo.c check for port already registered
This patch prevents switch-robo.c from attempting robo_probe on a port
that is already registered.  robo_probe will adjust kernel reference counts
if it detects a switch on the port.  If this patch wasn't applied, the
wrt350n would hang on reboot, waiting for the network driver reference count
to reach zero indefinitely.

Signed-off-by: Ben Pfountz <netprince (at) vt (dot) edu>


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@11469 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-06-15 11:10:27 +00:00
Peter Denison a824434922 [bcm47xx] Stopgap compilation fixes for diag and switch under 2.6.25
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@11231 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-05-20 22:33:45 +00:00
Peter Denison 2ad42a8a5a Allow package/switch to compile against 2.6.25
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@11138 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-05-14 15:03:05 +00:00
Michael Büsch d2b655da2b Check the return values of kmalloc()
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@10599 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-03-13 15:22:46 +00:00
Felix Fietkau 9cae1e48f5 fix switch-robo.c compile errors on linux 2.4
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@10539 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-03-01 15:34:17 +00:00
Michael Büsch d1b25e6b6b Fix the roboswitch code for the WRT350N
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@10531 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-02-27 22:35:41 +00:00
Michael Büsch 378e11cb84 ssb: Make the GPIO API reentrancy safe.
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@10496 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-02-19 15:22:17 +00:00
Felix Fietkau a133f02be2 export switch-core.h to $(STAGING_DIR)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@10138 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-01-06 19:28:26 +00:00