juhosg
0a71019902
rtl8366_smi: store device pointer instead of plaform_device
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19274 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-01-22 17:37:41 +00:00
juhosg
3e3062918b
rtl8366_smi: rename switch attribute handlers
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19254 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-01-21 12:13:43 +00:00
juhosg
4162526b1d
rtl8366_smi: simplify rtl8366_attr_get_port_link function
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19250 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-01-20 20:36:30 +00:00
juhosg
4cff025384
rtl8366_smi: make rtl8366_phy_config_{aneg,init} static
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19249 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-01-20 20:36:27 +00:00
juhosg
a51fdf9d02
rtl8366_smi: simplify rtl8366_{get,set}_port_vlan_index functions
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19248 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-01-20 20:36:24 +00:00
juhosg
64f1c1d827
rtl8366_smi: minor code optimalizations
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19247 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-01-20 20:36:21 +00:00
juhosg
aac113a5bf
rtl8366_smi: coding style cleanup
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19246 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-01-20 17:40:39 +00:00
juhosg
75c9ca9730
rtl8366_smi: add Kconfig option for the debugfs stuff
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19243 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-01-20 09:30:36 +00:00
juhosg
01b8553904
rtl8366_smi: fix error checking in rtl8366s_set_vlan_4k_entry
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19242 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-01-20 09:30:32 +00:00
juhosg
f3d96d2a1e
rtl8366_smi: fix parameter checking in rtl8366_attr_get_vlan_info
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19241 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-01-20 09:30:25 +00:00
juhosg
72607e76c7
rtl8366_smi: fix return codes in rtl8366s_reset_vlan
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19240 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-01-20 07:06:18 +00:00
juhosg
e191d5d165
rtl8366_smi: move variable initialization out from the loop
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19239 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-01-20 07:06:15 +00:00
juhosg
77450dabca
rtl8366_smi: fix port->flags calculation in rtl8366_get_ports
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19237 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-01-20 07:06:10 +00:00
juhosg
a3545860d0
rtl8366_smi: use inline function instead of a macro on top of container_of
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19215 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-01-18 09:01:40 +00:00
nbd
a289808594
rtl8366_smi: reset the vlan table when resetting the switch and use vlan get/set ports for vlan member lists
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19206 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-01-18 00:12:12 +00:00
nbd
efa2a6f909
rtl8366_smi: fix excessive stack usage and buffer handling bugs
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19205 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-01-18 00:12:07 +00:00
nbd
f79dd5c840
ar71xx: fix return statement in the rtl8366 driver
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19204 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-01-17 22:57:08 +00:00
juhosg
ad726f6e1c
rtl8366_smi: register the switch directly from the probe routine
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19202 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-01-17 21:37:09 +00:00
juhosg
221c0d2b2d
rtl8366_smi: use vlanmc name for all vlanconfig variables
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19201 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-01-17 21:17:59 +00:00
juhosg
c0e88a59a8
rtl8366_smi: use vlan4k name for all vlan4kentry variables
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19200 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-01-17 21:17:57 +00:00
juhosg
ced9e0d6c7
rtl8366_smi: move memset into the rtl8366s_get_member_config function
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19199 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-01-17 21:17:53 +00:00
juhosg
f0d1ad31ba
rtl8366_smi: move memset into the rtl8366s_get_vlan_4k_entry function
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19198 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-01-17 21:17:49 +00:00
juhosg
ef0ac006ff
rtl8366_smi: add vid parameter to the rtl8366s_get_vlan_4k_entry function
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19197 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-01-17 21:17:46 +00:00
juhosg
3d89991158
ar71xx: upgrade rtl8366_smi driver
...
Thanks to Antti Seppälä.
Patch from https://forum.openwrt.org/viewtopic.php?pid=100150#p100150
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19196 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-01-17 21:17:42 +00:00
juhosg
c64ff4c0d6
ar71xx: add NAPI statistics to the ag71xx driver
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19079 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-01-08 20:22:55 +00:00
jow
9a41a375f8
[ar71xx] fix typo after r19054
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19059 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-01-06 20:16:07 +00:00
juhosg
0c1d7bcfa5
ar71xx: add detailed interrupt statistics for the ag71xx driver
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19054 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-01-06 15:24:01 +00:00
juhosg
efbbcd998e
ar71xx: update Kconfig of the ag71xx driver
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19032 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-01-04 14:28:28 +00:00
juhosg
bdcb066fc4
ar71xx: add dummy debugfs support for the ag71xx driver
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19031 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-01-04 14:28:25 +00:00
nbd
483781cdb7
Revert "ar71xx: move phy_connect call to ag71xx_open" (r18691)
...
It's causing issues with switch drivers that register with swconfig and
makes fixing those unnecessarily complicated.
Fixes rtl8306 switch support on the WRT160NL.
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18789 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-12-15 22:37:54 +00:00
juhosg
1e52fbecdb
ar71xx: fix NULL pointer dereference in the ethernet driver
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18755 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-12-11 19:32:58 +00:00
juhosg
07282cf223
ar71xx: merge ag71xx specific patches
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18751 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-12-11 16:41:40 +00:00
juhosg
c9789da4c5
ar71xx: move mdio_bus reset code
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18749 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-12-11 12:21:15 +00:00
juhosg
bfa2f874b9
ar71xx: add mdio bus driver for the rtl8366 switch
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18694 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-12-08 10:29:35 +00:00
juhosg
5608c597c3
ar71xx: add support for external mii_bus
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18692 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-12-08 10:29:27 +00:00
juhosg
1fec1f6c54
ar71xx: move phy_connect call to ag71xx_open
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18691 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-12-08 10:29:19 +00:00
juhosg
9152c5c793
ar71xx: change mii_bus name
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18619 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-12-03 14:17:12 +00:00
juhosg
98a4123863
ar71xx: override fifo_cfg[123] values on AR7240
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18614 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-11-30 13:53:39 +00:00
nbd
ac42d58d7c
ar71xx: mask out reserved bits from the dma tx status in the ethernet driver
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18599 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-11-29 13:38:03 +00:00
juhosg
0724c81c22
ar71xx: use soc specific divider for mdio clock
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18225 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-10-30 12:26:22 +00:00
juhosg
5be08769f3
ar71xx: update mdio_reset code
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18224 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-10-30 12:26:17 +00:00
juhosg
c09228f083
ar71xx: flush mii register writes
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@17695 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-09-23 17:44:08 +00:00
juhosg
1bf028b56d
ar71xx: don't use mac_base2 in the ag71xx driver
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@17693 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-09-23 17:44:02 +00:00
juhosg
7e34715f43
ar71xx: remove some extern directives in the ag71xx driver
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@17692 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-09-23 17:43:57 +00:00
juhosg
0e481cb3bc
[ar71xx] ag71xx driver: rename ag71xx_debug module parameter
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@16833 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-07-13 17:45:25 +00:00
juhosg
f7c0493258
[ar71xx] ag71xx driver: fix a typo
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@16827 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-07-13 12:20:02 +00:00
juhosg
b38196cb4b
[ar71xx] ag71xx driver: align descriptors on cache_line boundary
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@16825 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-07-13 11:40:10 +00:00
juhosg
788424fcb7
[ar71xx] ag71xx driver: store descriptor pointers in ag71xx_buf
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@16824 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-07-13 11:38:37 +00:00
juhosg
76604034e6
[ar71xx] ag71xx driver: descriptors always aligned on 4 byte boundary
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@16818 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-07-12 16:04:28 +00:00
juhosg
1142b81a11
[ar71xx] ag71xx driver: don't flush ddr on tx path
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@16817 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-07-12 16:02:27 +00:00