aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/generic-2.6/files
Commit message (Collapse)AuthorAgeFilesLines
* rename target/linux/generic-2.6 to genericFelix Fietkau2010-06-26250-114767/+0
| | | | SVN-Revision: 21952
* generic: rtl8366: rename vlan debugfs file to vlan_mc, and clean up it's formatGabor Juhos2010-06-262-52/+26
| | | | SVN-Revision: 21923
* generic: rtl8366: update vlan handling code for rtl8366sGabor Juhos2010-06-261-120/+174
| | | | SVN-Revision: 21922
* generic: rtl8366: update vlan handling code of rtl8366rbGabor Juhos2010-06-261-121/+175
| | | | SVN-Revision: 21921
* generic: rtl8366: add hw_init to initialize registers after resetGabor Juhos2010-06-262-4/+128
| | | | SVN-Revision: 21920
* generic: rtl8366: introduce rtl8366_smi_rmwr functionGabor Juhos2010-06-264-133/+75
| | | | SVN-Revision: 21919
* generic: rtl8366s: get some MIB counters from another offsetGabor Juhos2010-06-261-36/+57
| | | | SVN-Revision: 21918
* generic: rtl8366: cleanup MIB counter printingGabor Juhos2010-06-262-122/+96
| | | | SVN-Revision: 21917
* generic: rtl8366: use struct rtl8366_smi instead of struct rtl8366{s,rb}Gabor Juhos2010-06-262-152/+141
| | | | SVN-Revision: 21916
* generic: rtl8366: add common vlan_4k structureGabor Juhos2010-06-263-20/+49
| | | | SVN-Revision: 21915
* generic: rtl8366: add common vlan_mc structureGabor Juhos2010-06-263-24/+62
| | | | SVN-Revision: 21914
* generic: rtl8366: rename vlanmc and vlan4k related structures an functionsGabor Juhos2010-06-262-83/+80
| | | | SVN-Revision: 21913
* generic: rtl8366: use struct rtl8366_smi for phy_reg_{read,write} callsGabor Juhos2010-06-262-18/+14
| | | | SVN-Revision: 21912
* generic: rtl8366: move mii bus handling to the rtl8366_smi codeGabor Juhos2010-06-264-108/+75
| | | | SVN-Revision: 21911
* generic: rtl8366: introduce rtl8366_smi_opsGabor Juhos2010-06-264-22/+63
| | | | SVN-Revision: 21910
* generic: rtl8366: change format string for debugfs error messagesGabor Juhos2010-06-262-12/+16
| | | | SVN-Revision: 21909
* generic: rtl8366: don't show link parameters if the link is downGabor Juhos2010-06-262-24/+34
| | | | SVN-Revision: 21908
* generic: rtl8366: fix register offset and size of MIB countersGabor Juhos2010-06-262-26/+26
| | | | SVN-Revision: 21907
* generic: rtl8366: prevent modifications of VLAN 0Gabor Juhos2010-06-262-6/+6
| | | | SVN-Revision: 21906
* another #ifdef around pci_set_mwi callClaudio Mignanti2010-06-201-0/+2
| | | | SVN-Revision: 21854
* pci_set_mwi depends upon CONFIG_HAVE_PCI_SET_MWIClaudio Mignanti2010-06-201-0/+2
| | | | SVN-Revision: 21849
* Add the generic PWM api from Bill Gatliff (experimental). Ignore the leds ↵Claudio Mignanti2010-06-147-0/+1995
| | | | | | trigger part at the moment SVN-Revision: 21800
* Extend the gpio device driver (#5671)Claudio Mignanti2010-06-132-52/+61
| | | | SVN-Revision: 21787
* swconfig: fix lock imbalance in unregister_switch()Gabor Juhos2010-06-131-0/+1
| | | | | | Signed-off-by: Karl Beldan <karl.beldan@sagemcom.com> SVN-Revision: 21780
* swconfig: release switch in error path of swconfig_get_attrGabor Juhos2010-06-131-3/+2
| | | | | | Signed-off-by: Karl Beldan <karl.beldan@sagemcom.com> SVN-Revision: 21779
* ip17xx: fix autonegotioation issuesGabor Juhos2010-06-081-10/+21
| | | | SVN-Revision: 21727
* ip17xx: Update the copyright messageGabor Juhos2010-06-081-1/+2
| | | | | | | | | 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> SVN-Revision: 21725
* ip17xx: Rename the driver to ip17xx.cGabor Juhos2010-06-081-0/+0
| | | | | | | | | | 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> SVN-Revision: 21724
* ip17xx: The big renameGabor Juhos2010-06-081-174/+174
| | | | | | | | | | | | | 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> SVN-Revision: 21723
* ip17xx: Keep all state locallyGabor Juhos2010-06-081-209/+3
| | | | | | | | | | | | 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> SVN-Revision: 21722
* ip17xx: Add support for IP175DGabor Juhos2010-06-081-1/+169
| | | | | | | | | | | | | | | | | 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> SVN-Revision: 21721
* ip17xx: Avoid auto-negotiationGabor Juhos2010-06-081-3/+5
| | | | | | | | | | | | | | 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> SVN-Revision: 21720
* ip17xx: New chip detectionGabor Juhos2010-06-081-28/+30
| | | | | | | | | | | | | 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> SVN-Revision: 21719
* ip17xx: Add VLAN tag fieldGabor Juhos2010-06-081-1/+44
| | | | | | | | | | 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> SVN-Revision: 21718
* ip17xx: Maintain state->remove_tag incrementallyGabor Juhos2010-06-081-3/+4
| | | | | | | | | | | | | 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> SVN-Revision: 21717
* ip17xx: Initialize VLAN state upon resetGabor Juhos2010-06-081-5/+15
| | | | | | | | | | | | | | 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> SVN-Revision: 21716
* ip17xx: Introduce vlan arrayGabor Juhos2010-06-081-12/+14
| | | | | | | | | 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
* ip17xx: Introduce indirection of low-level operationsGabor Juhos2010-06-081-49/+90
| | | | | | | | | | | | | | | | | | | | | | | | | | 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
* ip17xx: Fix use of MODE_VALGabor Juhos2010-06-081-1/+1
| | | | | | | | | | | | 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
* ip17xx: Fix indentation in get_state() and update_state()Gabor Juhos2010-06-081-76/+76
| | | | | | | Signed-off-by: Martin Mares <mj@ucw.cz> Signed-off-by: Patrick Horn <patrick.horn@gmail.com> SVN-Revision: 21712
* ip17xx: Fixed error handling in ip175c_set_val()Gabor Juhos2010-06-081-1/+1
| | | | | | | | | 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
* ip17xx: Cosmetic cleanupsGabor Juhos2010-06-081-50/+35
| | | | | | | | | | 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
* ip17xx: Consolidate operations with PHY registersGabor Juhos2010-06-081-47/+40
| | | | | | | | | | | | | | | 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
* swconfig: Fix a bug in use of SWITCH_PORT_FLAG_TAGGEDGabor Juhos2010-06-081-1/+1
| | | | | | | | | 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
* gpio_buttons: include slab.hLars-Peter Clausen2010-05-121-0/+1
| | | | | | Fixes build with 2.6.34 SVN-Revision: 21436
* fix build error on hifnHIPP spotted by buildbotFlorian Fainelli2010-05-051-0/+1
| | | | SVN-Revision: 21373
* update OCF framework to version 20100325Jo-Philipp Wich2010-05-04164-3645/+65040
| | | | SVN-Revision: 21356
* kernel: fix build with kernel 2.6.34-rc4Hauke Mehrtens2010-04-181-0/+1
| | | | SVN-Revision: 20992
* swconfig: Add cpu port index to help output.Gabor Juhos2010-04-162-0/+2
| | | | | | | | | | | | | 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> SVN-Revision: 20939
* swconfig: Check vlan/port indexes for validity.Florian Fainelli2010-04-111-0/+4
| | | | | | | | | | | | 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> SVN-Revision: 20811