Commit Graph

68 Commits (c86eeac4352323d5bc988f10b9ec5d9c30f5e80b)

Author SHA1 Message Date
Hauke Mehrtens 243c582213 switch: export name of device found via /proc
SVN-Revision: 35596
12 years ago
Hauke Mehrtens 60913bbac6 switch: export cpuport, ports and vlans via /proc
SVN-Revision: 35595
12 years ago
Hauke Mehrtens 17c18e23ab switch: add support for BCM53125
SVN-Revision: 35586
12 years ago
Hauke Mehrtens 446414f367 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.

SVN-Revision: 35585
12 years ago
Hauke Mehrtens 43b4f67f25 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.

SVN-Revision: 35584
12 years ago
Hauke Mehrtens 8ab78d1096 switch: improve robo_switch_enable()
This is based on a patch by jcharest and the Broadcom SDK.

SVN-Revision: 35583
12 years ago
Hauke Mehrtens b8a84038a5 switch: fix switches with more than 6 ports
This is based on a patch by jcharest and the Broadcom SDK.

SVN-Revision: 35582
12 years ago
Hauke Mehrtens 3c51948454 switch: reverse if else in handle_vlan_port_read()
SVN-Revision: 35581
12 years ago
Hauke Mehrtens 9d3b0f5661 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.

SVN-Revision: 35580
12 years ago
Hauke Mehrtens 827e315017 switch: reset switch before using it.
SVN-Revision: 35579
12 years ago
Hauke Mehrtens f3360fdf67 switch: improve error handling in robo_probe()
SVN-Revision: 35578
12 years ago
Hauke Mehrtens 3f0c0c6935 switch: run cleanfile over the source code
SVN-Revision: 35577
12 years ago
Jonas Gorski 8411e5c06e 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>

SVN-Revision: 35307
12 years ago
Hauke Mehrtens d8f1fa1e38 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>

SVN-Revision: 34992
12 years ago
Hauke Mehrtens 63ec34612c switch: improve error messages
This is in part based on a patch send by Nathan Hintz <nlhintz@hotmail.com>

SVN-Revision: 34991
12 years ago
Hauke Mehrtens 25afeba608 brcm47xx: add a new version of the nvram rewrite patch
This is the version like it was send for mainline inclusion.

SVN-Revision: 34988
12 years ago
Hauke Mehrtens da94d4ac29 switch: warn if ndo_do_ioctl is not implemented in the Ethernet driver
SVN-Revision: 33506
12 years ago
Hauke Mehrtens bf0974e8da switch: improve error message
SVN-Revision: 33464
12 years ago
Hauke Mehrtens 40f139b53b 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

SVN-Revision: 33002
12 years ago
Hauke Mehrtens 0758996824 brcm47xx: use libgpio instaed of implementing the gpio interface ourself.
SVN-Revision: 32992
12 years ago
Jo-Philipp Wich 654f9c879f 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.
SVN-Revision: 30937
12 years ago
Hauke Mehrtens b9da4dcb6b switch: fix some memory leaks in switch_parse_vlan()
SVN-Revision: 29936
13 years ago
Hauke Mehrtens b220442c75 switch: update for brcm47xx target
* remove suport for 2.4 kernel
* add support for bcma bus

SVN-Revision: 27904
13 years ago
Florian Fainelli 640927dde3 switch: fix switch-robo device reference counting
Fix incorrect device reference counting by switch-robo.

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

SVN-Revision: 25619
14 years ago
Florian Fainelli e31542241c remove whitespaces in kmod-switch sources
SVN-Revision: 22320
14 years ago
Claudio Mignanti 2d86ea7bf3 massive: replace occurences of .$(LINUX_KMOD_SUFFIX) with .ko after r21950
SVN-Revision: 22145
14 years ago
Felix Fietkau 543d870e82 remove linux 2.4 support from several packages
SVN-Revision: 21954
14 years ago
Jo-Philipp Wich 501e154d03 switch: explicitely clear port mappings in unsused vlans (#7082)
SVN-Revision: 20717
14 years ago
Nicolas Thill 2d100861a4 switch: suppress boot error message on 2.4
SVN-Revision: 19922
15 years ago
Jo-Philipp Wich 96e4312e7e 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
SVN-Revision: 19909
15 years ago
Florian Fainelli f4edda27af switch: do not include linux/autoconf.h (#6513)
SVN-Revision: 19903
15 years ago
Jo-Philipp Wich 194f32bc26 change switch config to swconfig style format to remain consistent accross platforms
SVN-Revision: 18425
15 years ago
Florian Fainelli 5a13cc0726 fix breakage on wl500gp after r18214, thanks sn9 (#6084)
SVN-Revision: 18289
15 years ago
John Crispin 2d57b56bce make etehrent work on wrt350n, thx sn9
SVN-Revision: 18214
15 years ago
Hauke Mehrtens 8673372e20 add patches for kernel 2.6.31
This is completly untested. Only a compile tests with the default config was done!

SVN-Revision: 17734
15 years ago
Florian Fainelli 369db35a29 fix oops in switch-robo on brcm63xx, thanks to Daniel Dickinson (#5053)
SVN-Revision: 15611
15 years ago
Florian Fainelli 9051239daf prevent kmod-switch from accessing nvram on brcm63xx (#5035)
SVN-Revision: 15555
15 years ago
Florian Fainelli 210254c279 fix nvram_get checking on non-WGT634U (#4975)
SVN-Revision: 15319
15 years ago
Florian Fainelli 6f80c9cc7c fix strange LED behavior with Netgear WGT634U (#3552)
SVN-Revision: 15290
15 years ago
Felix Fietkau 34939cad39 get rid of $Id$ - it has never helped us and it has broken too many patches ;)
SVN-Revision: 15242
15 years ago
Florian Fainelli 04909ca614 allow kmod-switch to be used on brcm63xx (#4599)
SVN-Revision: 14825
16 years ago
Felix Fietkau 529e87f6c5 switch: remove message about BFL_ENETADM not being set on systems with a roboswitch
SVN-Revision: 13100
16 years ago
Felix Fietkau 40990382e5 (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>

SVN-Revision: 11469
16 years ago
Peter Denison f027ecb2cf Stopgap compilation fixes for diag and switch under 2.6.25
SVN-Revision: 11231
16 years ago
Peter Denison 72d40dec08 Allow package/switch to compile against 2.6.25
SVN-Revision: 11138
16 years ago
Michael Büsch 6a2a1e251b Check the return values of kmalloc()
SVN-Revision: 10599
17 years ago
Felix Fietkau d65241e13b fix switch-robo.c compile errors on linux 2.4
SVN-Revision: 10539
17 years ago
Michael Büsch a9cddc69ec Fix the roboswitch code for the WRT350N
SVN-Revision: 10531
17 years ago
Michael Büsch faa14263f5 ssb: Make the GPIO API reentrancy safe.
SVN-Revision: 10496
17 years ago
Felix Fietkau d9e54d1e0b export switch-core.h to $(STAGING_DIR)
SVN-Revision: 10138
17 years ago