| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
| |
Replace vlan_ports array in struct ip175c_state by an array of structures.
Signed-off-by: Martin Mares <mj@ucw.cz>
Signed-off-by: Patrick Horn <patrick.horn@gmail.com>
SVN-Revision: 21715
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This patch introduces seperation between low-level and high-level parts
of the driver. The low-level functions are now called via pointers stored
in struct ip175c_regs.
The only functional changes are:
o correct_vlan_state() is now called as a part of every update_state().
o The order of setting of MODE_REG and resetting switch ports
has changed. (These are independent actions, so it should not matter.)
o ip175c_set_tagged() sets the tags via update_state() instead of writing
directly to the registers.
o The same for ip175c_set_pvid().
The only gaps in this abstraction are operations on ports (get_port_speed
and friends), which access PHY registers directly.
Signed-off-by: Martin Mares <mj@ucw.cz>
Signed-off-by: Patrick Horn <patrick.horn@gmail.com>
SVN-Revision: 21714
|
|
|
|
|
|
|
|
|
|
|
|
| |
The value written to MODE_REG in ip175c_reset() should be obviously MODE_VAL,
not RESET_VAL. Actually, this change is a NOP, because in the only case where
the MODE_REG is used, the two values are identical, but it makes the code
more readable.
Signed-off-by: Martin Mares <mj@ucw.cz>
Signed-off-by: Patrick Horn <patrick.horn@gmail.com>
SVN-Revision: 21713
|
|
|
|
|
|
|
| |
Signed-off-by: Martin Mares <mj@ucw.cz>
Signed-off-by: Patrick Horn <patrick.horn@gmail.com>
SVN-Revision: 21712
|
|
|
|
|
|
|
|
|
| |
Upon error, ip175c_set_val() returned 0 instead of -EINVAL.
Signed-off-by: Martin Mares <mj@ucw.cz>
Signed-off-by: Patrick Horn <patrick.horn@gmail.com>
SVN-Revision: 21711
|
|
|
|
|
|
|
|
|
|
| |
Trying to unify capitalization and formatting of comments. Writing of periods
at the end of comments is however still inconsistent.
Signed-off-by: Martin Mares <mj@ucw.cz>
Signed-off-by: Patrick Horn <patrick.horn@gmail.com>
SVN-Revision: 21710
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Call mdiobus_{read,write} instead of duplicating their code.
Introduce ip_phy_write_masked(), which changes a part of a register. Will
be used later in this patch series. Please note that it does not hold any
lock between reading and writing, so it is up to the caller to serialize.
Also add DUMP_MII_IO, which enables logging of all MII accesses.
Signed-off-by: Martin Mares <mj@ucw.cz>
Signed-off-by: Patrick Horn <patrick.horn@gmail.com>
SVN-Revision: 21709
|
|
|
|
|
|
|
|
|
| |
SWITCH_PORT_FLAG_TAGGED is a bit index, not a bit mask.
Signed-off-by: Martin Mares <mj@ucw.cz>
Signed-off-by: Patrick Horn <patrick.horn@gmail.com>
SVN-Revision: 21708
|
|
|
|
| |
SVN-Revision: 21707
|
|
|
|
| |
SVN-Revision: 21706
|
|
|
|
| |
SVN-Revision: 21705
|
|
|
|
| |
SVN-Revision: 21704
|
|
|
|
| |
SVN-Revision: 21703
|
|
|
|
| |
SVN-Revision: 21699
|
|
|
|
| |
SVN-Revision: 21698
|
|
|
|
| |
SVN-Revision: 21697
|
|
|
|
| |
SVN-Revision: 21696
|
|
|
|
| |
SVN-Revision: 21694
|
|
|
|
| |
SVN-Revision: 21692
|
|
|
|
| |
SVN-Revision: 21691
|
|
|
|
| |
SVN-Revision: 21690
|
|
|
|
| |
SVN-Revision: 21688
|
|
|
|
| |
SVN-Revision: 21684
|
|
|
|
| |
SVN-Revision: 21683
|
|
|
|
|
|
|
|
|
| |
Was flashed on WRT350Nv2, booted and is running for several days.
Closes #7405
Thank you maddes for your patch.
SVN-Revision: 21682
|
|
|
|
| |
SVN-Revision: 21681
|
|
|
|
| |
SVN-Revision: 21680
|
|
|
|
| |
SVN-Revision: 21679
|
|
|
|
| |
SVN-Revision: 21675
|
|
|
|
| |
SVN-Revision: 21674
|
|
|
|
| |
SVN-Revision: 21673
|
|
|
|
| |
SVN-Revision: 21672
|
|
|
|
| |
SVN-Revision: 21671
|
|
|
|
| |
SVN-Revision: 21664
|
|
|
|
| |
SVN-Revision: 21647
|
|
|
|
| |
SVN-Revision: 21645
|
|
|
|
|
|
| |
Signed-off-by: Helmut Schaa
SVN-Revision: 21643
|
|
|
|
|
|
| |
brcm-specific
SVN-Revision: 21637
|
|
|
|
| |
SVN-Revision: 21636
|
|
|
|
|
|
| |
preinit_main. This fixes a bug in which the vars were not set due to /proc not being mounted when ramips.sh was sourced
SVN-Revision: 21635
|
|
|
|
|
|
| |
preinit_main. This fixes a bug in which the vars were not set due to /proc not being mounted when ar71xx.sh was sourced
SVN-Revision: 21634
|
|
|
|
|
|
| |
main; This fixes a bug in which the per-board vars were not set due to cpuinfo not being mounted when the adm5120.sh was run
SVN-Revision: 21633
|
|
|
|
| |
SVN-Revision: 21632
|
|
|
|
|
|
| |
reference design)
SVN-Revision: 21631
|
|
|
|
| |
SVN-Revision: 21630
|
|
|
|
|
|
| |
switch on eth1 (currently only 96348GW - Tecom 6x00)
SVN-Revision: 21629
|
|
|
|
|
|
| |
support it and for which /lib/brcm63xx.sh has the definitions (currently only 96348GW - Tecom 6x00)
SVN-Revision: 21628
|
|
|
|
| |
SVN-Revision: 21627
|
|
|
|
|
|
| |
6x00)
SVN-Revision: 21626
|
|
|
|
|
|
|
|
| |
Thank you Maddes for your patch
This closes #7375.
SVN-Revision: 21623
|