summaryrefslogtreecommitdiff
path: root/target/linux/generic-2.6/files/drivers
AgeCommit message (Collapse)Author
2010-06-26generic: rtl8366: rename vlan debugfs file to vlan_mc, and clean up it's formatjuhosg
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21923 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-06-26generic: rtl8366: update vlan handling code for rtl8366sjuhosg
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21922 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-06-26generic: rtl8366: update vlan handling code of rtl8366rbjuhosg
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21921 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-06-26generic: rtl8366: add hw_init to initialize registers after resetjuhosg
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21920 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-06-26generic: rtl8366: introduce rtl8366_smi_rmwr functionjuhosg
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21919 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-06-26generic: rtl8366s: get some MIB counters from another offsetjuhosg
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21918 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-06-26generic: rtl8366: cleanup MIB counter printingjuhosg
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21917 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-06-26generic: rtl8366: use struct rtl8366_smi instead of struct rtl8366{s,rb}juhosg
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21916 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-06-26generic: rtl8366: add common vlan_4k structurejuhosg
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21915 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-06-26generic: rtl8366: add common vlan_mc structurejuhosg
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21914 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-06-26generic: rtl8366: rename vlanmc and vlan4k related structures an functionsjuhosg
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21913 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-06-26generic: rtl8366: use struct rtl8366_smi for phy_reg_{read,write} callsjuhosg
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21912 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-06-26generic: rtl8366: move mii bus handling to the rtl8366_smi codejuhosg
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21911 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-06-26generic: rtl8366: introduce rtl8366_smi_opsjuhosg
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21910 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-06-26generic: rtl8366: change format string for debugfs error messagesjuhosg
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21909 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-06-26generic: rtl8366: don't show link parameters if the link is downjuhosg
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21908 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-06-26generic: rtl8366: fix register offset and size of MIB countersjuhosg
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21907 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-06-26generic: rtl8366: prevent modifications of VLAN 0juhosg
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21906 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-06-14[kernel] Add the generic PWM api from Bill Gatliff (experimental). Ignore ↵claudio
the leds trigger part at the moment git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21800 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-06-13[kernel] Extend the gpio device driver (#5671)claudio
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21787 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-06-13swconfig: fix lock imbalance in unregister_switch()juhosg
Signed-off-by: Karl Beldan <karl.beldan@sagemcom.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21780 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-06-13swconfig: release switch in error path of swconfig_get_attrjuhosg
Signed-off-by: Karl Beldan <karl.beldan@sagemcom.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21779 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-06-08ip17xx: fix autonegotioation issuesjuhosg
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21727 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-06-08ip17xx: Update the copyright messagejuhosg
Update the copyright message to reflect my changes. Signed-off-by: Martin Mares <mj@ucw.cz> Signed-off-by: Patrick Horn <patrick.horn@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21725 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-06-08ip17xx: Rename the driver to ip17xx.cjuhosg
Following the big internal rename, this is the external rename. Rename the source file to ip17xx.c and adjust Makefile and Kconfig. Signed-off-by: Martin Mares <mj@ucw.cz> Signed-off-by: Patrick Horn <patrick.horn@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21724 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-06-08ip17xx: The big renamejuhosg
Recognize that the driver supports many more devices than the ip175c. The driver itself is now called ip17xx, all generic functions have been renamed to ip17xx_*. The model-dependent functions have prefixes ip175c_ and ip175d_. Signed-off-by: Martin Mares <mj@ucw.cz> Signed-off-by: Patrick Horn <patrick.horn@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21723 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-06-08ip17xx: Keep all state locallyjuhosg
Instead of reading the hardware state every time we want to inspect it or to modify it, maintain it in struct ip175c_state. This simplifies the code significantly. Signed-off-by: Martin Mares <mj@ucw.cz> Signed-off-by: Patrick Horn <patrick.horn@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21722 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-06-08ip17xx: Add support for IP175Djuhosg
Add support for the IP175D chip. Since the register set is vastly different from the previous models, we cannot not use the register number tables in struct register_mappings (except for VLAN_DEFAULT_TAG_REG), so we supply a different set of low-level functions. Unlike with the previous models, we keep the VLAN setup in our state structure instead of querying the hardware (it would be much harder in case of IP175D, because the mapping between hardware and software state is not 1:1). Therefore, get_flags() and get_state() are no-ops. Signed-off-by: Martin Mares <mj@ucw.cz> Signed-off-by: Patrick Horn <patrick.horn@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21721 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-06-08ip17xx: Avoid auto-negotiationjuhosg
Let ip175c_config_init() initialize the link state of the PHY and set the PHY state machine directly to the PHY_RUNNING state in order to skip the auto-negotiation phase. Previously, auto-negotiation on PHY 0 (switch port 0) influenced the ethernet driver connected to the CPU port, causing all sorts of weird effects. Signed-off-by: Martin Mares <mj@ucw.cz> Signed-off-by: Patrick Horn <patrick.horn@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21720 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-06-08ip17xx: New chip detectionjuhosg
Clean up get_model() and make it recognize IP175D using yet another chip ID register. Log the detected model. Also fix a bug in the interface between the PHY layer and our probe function, which caused IP175A devices to be ignored. Signed-off-by: Martin Mares <mj@ucw.cz> Signed-off-by: Patrick Horn <patrick.horn@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21719 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-06-08ip17xx: Add VLAN tag fieldjuhosg
Since IP175D uses tag-based VLANs, we need an ability to set VLAN tag of every VLAN. Signed-off-by: Martin Mares <mj@ucw.cz> Signed-off-by: Patrick Horn <patrick.horn@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21718 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-06-08ip17xx: Maintain state->remove_tag incrementallyjuhosg
So far, state->remove_tag was sometimes updated incrementally, sometimes left to correct_vlan_state() to recalculate. Since I want to avoid use of correct_vlan_state() for IP175D, this patch fixes the only two remaining places which leave state->remove_tag inconsistent with state->add_tag and it drops the recalculation. Signed-off-by: Martin Mares <mj@ucw.cz> Signed-off-by: Patrick Horn <patrick.horn@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21717 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-06-08ip17xx: Initialize VLAN state upon resetjuhosg
Let VLAN state variables be initialized not only when the enable VLAN bit is toggled, but also upon reset. At this point, this should be a no-op, since the driver reads the current hardware state before doing any modifications anyway, but I plan to keep some state locally in the subsequent patches. Signed-off-by: Martin Mares <mj@ucw.cz> Signed-off-by: Patrick Horn <patrick.horn@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21716 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-06-08ip17xx: Introduce vlan arrayjuhosg
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> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21715 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-06-08ip17xx: Introduce indirection of low-level operationsjuhosg
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> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21714 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-06-08ip17xx: Fix use of MODE_VALjuhosg
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> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21713 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-06-08ip17xx: Fix indentation in get_state() and update_state()juhosg
Signed-off-by: Martin Mares <mj@ucw.cz> Signed-off-by: Patrick Horn <patrick.horn@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21712 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-06-08ip17xx: Fixed error handling in ip175c_set_val()juhosg
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> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21711 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-06-08ip17xx: Cosmetic cleanupsjuhosg
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> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21710 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-06-08ip17xx: Consolidate operations with PHY registersjuhosg
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> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21709 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-06-08swconfig: Fix a bug in use of SWITCH_PORT_FLAG_TAGGEDjuhosg
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> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21708 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-05-12[kernel] gpio_buttons: include slab.hlars
Fixes build with 2.6.34 git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21436 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-04-18kernel: fix build with kernel 2.6.34-rc4hauke
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20992 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-04-16swconfig: Add cpu port index to help output.juhosg
Let swconfig provide the cpu port index in its help page. This is needed as e.g. Atheros switches have their cpu port at port 0, not port 5. This could allow e.g. luci to get a rough overview of the layout of the switch. Signed-off-by: Jonas Gorski <jonas.gorski+openwrt@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20939 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-04-11[kernel] swconfig: Check vlan/port indexes for validity.florian
Swconfig needs to make sure that requested vlans/ports actually exist, else it might read or modify memory not belonging to itself. This patch adds a quick range check in swconfig's kernel part to prevent accidential or intentional memory modification. Signed-off-by: Jonas Gorski <jonas.gorski+openwrt@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20811 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-04-10Generic: Clean up output of AR8216 driver.juhosg
This patch is rather a cosmetic patch. It fixes the following issues: * Demote the unknown device message to debug level to not spam the log. * Fix the version print of the unknown device message. * Output the 'attach' message only when attaching as switch driver, not when attaching as phy driver. * Correctly return NET_RX_DROP when dropping packets. Signed-off-by: Jonas Gorski <jonas.gorski+openwrt@gmail.com> Cc: bacfire@openwrt.org git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20773 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-04-09generic: make chip detection more reliable in the AR8216 driverjuhosg
Fixes broken ethernet on the Planex MZK-W04NU/W300NH boards. Cc: bacfire@openwrt.org git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20753 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-04-05[PATCH 1/2] Add support for the ar8316 switch.jow
This patch enhances the ar8216 driver with ar8316 support and fixes some minor issues with the ar8216 driver itself. It should not break anything, but isn't tested on ar8216 devices. [PATCH 2/2] ar71xx: Add the ar8316 driver to rs pro/rb-450g. Add the ar8216 driver to the ar71xx target, and add network configurations for the RouterStation Pro and the RouterBoard RB-450G. git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20722 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-03-28enable IP175A support in the IP175C PHY driver (based on patch from jh in #6733)nbd
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20551 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-03-09ar8216: fix the mtu register definitionnbd
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20110 3c298f89-4303-0410-b956-a3cf2f4a3e73