summaryrefslogtreecommitdiffstats
path: root/target/linux/generic/files/drivers/net/phy/rtl8366s.c
Commit message (Collapse)AuthorAgeFilesLines
* generic: rtl8366{s,rb}: remove the PHY driver.juhosg2011-04-121-52/+1
| | | | | | | | | | Since the PHY driver is only used for the WAN port and there is virtually no difference between it and the generic PHY driver, we can sefely remove it. Signed-off-by: Jonas Gorski <jonas.gorski+openwrt@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26600 3c298f89-4303-0410-b956-a3cf2f4a3e73
* generic: rtl8366s: allow initial register values to be passed via platform_datajuhosg2011-01-261-0/+11
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@25120 3c298f89-4303-0410-b956-a3cf2f4a3e73
* generic: rtl8366: enable vlans before enabling the portsjuhosg2011-01-081-0/+4
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@24939 3c298f89-4303-0410-b956-a3cf2f4a3e73
* generic: rtl8366: enable ports only after VLAN configuration is donejuhosg2011-01-081-4/+5
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@24938 3c298f89-4303-0410-b956-a3cf2f4a3e73
* generic: rtl8366: add enable_port helperjuhosg2011-01-081-0/+7
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@24937 3c298f89-4303-0410-b956-a3cf2f4a3e73
* generic: rtl8366s: use correct bitmasks in sanity checksjuhosg2011-01-081-4/+4
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@24935 3c298f89-4303-0410-b956-a3cf2f4a3e73
* generic: rtl8366s: add vlan fid supportjuhosg2011-01-081-0/+7
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@24934 3c298f89-4303-0410-b956-a3cf2f4a3e73
* rt8366*: use __devinit instead of __init for the probe function to fix a ↵nbd2010-10-211-1/+1
| | | | | | section mismatch git-svn-id: svn://svn.openwrt.org/openwrt/trunk@23573 3c298f89-4303-0410-b956-a3cf2f4a3e73
* generic: RTL8366S/RB: Fix autonegotiation for the WAN port.juhosg2010-09-271-0/+5
| | | | | | | | | | | | The RTL8366S/RB support connecting a second mac to it and using the 5th port as an independent phy. Therefore we need to handle autonegotiation changes for phy 4 like on a single phy device. This fixes #7980, verified on a WNDR3700. Signed-off-by: Jonas Gorski <jonas.gorski+openwrt@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@23127 3c298f89-4303-0410-b956-a3cf2f4a3e73
* generic: rtl8366: allow use of VIDs 16-4095 if vlan4k is enabledjuhosg2010-08-181-2/+7
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22704 3c298f89-4303-0410-b956-a3cf2f4a3e73
* generic: rtl8366: add generic code to enable VLANsjuhosg2010-08-181-42/+4
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22703 3c298f89-4303-0410-b956-a3cf2f4a3e73
* generic: rtl8366: add enable_vlan{,4k} to smi_opsjuhosg2010-08-181-4/+6
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22702 3c298f89-4303-0410-b956-a3cf2f4a3e73
* generic: fix LED control on the RTL8366 switchesjuhosg2010-08-151-1/+1
| | | | | | * patch from #7713 git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22656 3c298f89-4303-0410-b956-a3cf2f4a3e73
* rtl8366: re-enable learning by default, disabling it broke switching ↵nbd2010-08-081-4/+46
| | | | | | | | | functionality. add a configuration option for dynamically enabling/disabling this feature. based on patch from #7637 git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22545 3c298f89-4303-0410-b956-a3cf2f4a3e73
* swconfig: cleanup of kernel drivers and interfacenbd2010-08-041-8/+6
| | | | | | | | - add some comments to a few data structures - add a switch_dev_ops data structure for attributes and callback to replace the stupid template memcpy - get rid of the switch_dev.priv pointer - using container_of() is better git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22476 3c298f89-4303-0410-b956-a3cf2f4a3e73
* generic: rtl8366: add common rtl8366_sw_{get,set}_vlan_ports functionsjuhosg2010-07-151-53/+2
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22204 3c298f89-4303-0410-b956-a3cf2f4a3e73
* generic: rtl8366: add common rtl8366_sw_get_vlan_infojuhosg2010-07-151-42/+1
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22203 3c298f89-4303-0410-b956-a3cf2f4a3e73
* generic: rtl8366: use smi->num_ports and smi->ops->get_vlan_4kjuhosg2010-07-151-4/+4
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22202 3c298f89-4303-0410-b956-a3cf2f4a3e73
* generic: rtl8366: add is_vlan_valid function to smi_opsjuhosg2010-07-151-3/+12
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22201 3c298f89-4303-0410-b956-a3cf2f4a3e73
* generic: rtl8366: add common rtl8366_sw_get_port_mib functionjuhosg2010-07-151-34/+1
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22200 3c298f89-4303-0410-b956-a3cf2f4a3e73
* generic: rtl8366: generealize rtl8366{s,rb}_sw_get_port_mib functionsjuhosg2010-07-151-4/+5
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22199 3c298f89-4303-0410-b956-a3cf2f4a3e73
* generic: rtl8366: add common rtl8366_sw_{get,set}_port_pvid functionsjuhosg2010-07-151-14/+2
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22197 3c298f89-4303-0410-b956-a3cf2f4a3e73
* generic: rtl8366: add setup to rtl8366_smi_ops structjuhosg2010-07-151-4/+2
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22196 3c298f89-4303-0410-b956-a3cf2f4a3e73
* generic: rtl8366: introduce rtl8366_smi_allocjuhosg2010-07-151-3/+1
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22195 3c298f89-4303-0410-b956-a3cf2f4a3e73
* generic: rtl8366: get rid of private rtl8366{s,rb} structsjuhosg2010-07-151-42/+21
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22194 3c298f89-4303-0410-b956-a3cf2f4a3e73
* generic: rtl8366: move switch device to the rtl8366_smi structjuhosg2010-07-151-11/+4
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22193 3c298f89-4303-0410-b956-a3cf2f4a3e73
* generic: rtl8366: get rid of private vlan_{mc,4k} structsjuhosg2010-07-151-122/+77
| | | | | | | | | The usage of bitfields causes problems in Little-Endian mode. Remove them and manipulate the bits directly in the appropriate functions. This change also reduces the size of the binary a bit. git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22192 3c298f89-4303-0410-b956-a3cf2f4a3e73
* generic: rtl8366: use SWITCH_TYPE_NOVAL for reset_mib attributesjuhosg2010-07-151-11/+3
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22191 3c298f89-4303-0410-b956-a3cf2f4a3e73
* generic: rtl8366: enable VLAN ingress filteringjuhosg2010-07-021-0/+7
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22044 3c298f89-4303-0410-b956-a3cf2f4a3e73
* generic: rtl8366: minor cleanupjuhosg2010-06-281-8/+5
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21985 3c298f89-4303-0410-b956-a3cf2f4a3e73
* generic: rtl8366: add common read_debugfs_mibs functionjuhosg2010-06-281-71/+0
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21984 3c298f89-4303-0410-b956-a3cf2f4a3e73
* generic: rtl8366: standardize read_debugfs_mibs functionsjuhosg2010-06-281-10/+19
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21983 3c298f89-4303-0410-b956-a3cf2f4a3e73
* generic: rtl8366: use common rtl8366_mib_counter structurejuhosg2010-06-281-8/+1
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21982 3c298f89-4303-0410-b956-a3cf2f4a3e73
* generic: rtl8366: move common debugfs code to rtl8366_smi.cjuhosg2010-06-281-168/+9
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21981 3c298f89-4303-0410-b956-a3cf2f4a3e73
* generic: rtl8366: move buf to struct rtl8366_smijuhosg2010-06-281-36/+32
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21980 3c298f89-4303-0410-b956-a3cf2f4a3e73
* generic: rtl8366: move common VLAN handling functions to rtl8366_smi.cjuhosg2010-06-281-205/+4
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21979 3c298f89-4303-0410-b956-a3cf2f4a3e73
* generic: rtl8366: add cpu_port, num_ports and num_vlan_mc to struct rtl8366_smijuhosg2010-06-281-10/+13
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21978 3c298f89-4303-0410-b956-a3cf2f4a3e73
* generic: rtl8366: add VLAN handling functions to rtl8366_smi_opsjuhosg2010-06-281-18/+25
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21977 3c298f89-4303-0410-b956-a3cf2f4a3e73
* generic: rtl8366: use RTL8366{S,RB} prefixes for all definesjuhosg2010-06-281-167/+167
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21976 3c298f89-4303-0410-b956-a3cf2f4a3e73
* rename target/linux/generic-2.6 to genericnbd2010-06-261-0/+1785
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21952 3c298f89-4303-0410-b956-a3cf2f4a3e73