aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* 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> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21720 3c298f89-4303-0410-b956-a3cf2f4a3e73
* 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> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21719 3c298f89-4303-0410-b956-a3cf2f4a3e73
* 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> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21718 3c298f89-4303-0410-b956-a3cf2f4a3e73
* 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> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21717 3c298f89-4303-0410-b956-a3cf2f4a3e73
* 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> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21716 3c298f89-4303-0410-b956-a3cf2f4a3e73
* 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> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21715 3c298f89-4303-0410-b956-a3cf2f4a3e73
* 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> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21714 3c298f89-4303-0410-b956-a3cf2f4a3e73
* 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> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21713 3c298f89-4303-0410-b956-a3cf2f4a3e73
* 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> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21712 3c298f89-4303-0410-b956-a3cf2f4a3e73
* 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> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21711 3c298f89-4303-0410-b956-a3cf2f4a3e73
* 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> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21710 3c298f89-4303-0410-b956-a3cf2f4a3e73
* 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> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21709 3c298f89-4303-0410-b956-a3cf2f4a3e73
* 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> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21708 3c298f89-4303-0410-b956-a3cf2f4a3e73
* brcm47xx: add kernel 2.6.35 preliminary supportAlexandros C. Couloumbis2010-06-0827-0/+2748
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21707 3c298f89-4303-0410-b956-a3cf2f4a3e73
* generic-2.6: fix mini_fo 2.6.35 kernel issueAlexandros C. Couloumbis2010-06-081-0/+20
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21706 3c298f89-4303-0410-b956-a3cf2f4a3e73
* fix a typo on commit r21704Alexandros C. Couloumbis2010-06-081-1/+1
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21705 3c298f89-4303-0410-b956-a3cf2f4a3e73
* generic-2.6: generic: add missing config symbols for 2.6.35Alexandros C. Couloumbis2010-06-081-1/+8
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21704 3c298f89-4303-0410-b956-a3cf2f4a3e73
* atheros: add kernel 2.6.35 preliminary supportAlexandros C. Couloumbis2010-06-0814-0/+6657
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21703 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [package] move broadcom-shdc from trunk to packages/utilsFlorian Fainelli2010-06-071-57/+0
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21702 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [package] kernel: ensure that IMQ is autoloaded after ip_queue, fixes ↵Jo-Philipp Wich2010-06-071-1/+1
| | | | | | disappearing traffic when using qos rules git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21700 3c298f89-4303-0410-b956-a3cf2f4a3e73
* generic: add missing config symbol for 2.6.34Gabor Juhos2010-06-071-0/+1
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21699 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ar71xx: fix 2.6.34 build errorsGabor Juhos2010-06-073-0/+3
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21698 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ar71xx: add missing 2.6.34 config symbolGabor Juhos2010-06-071-0/+1
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21697 3c298f89-4303-0410-b956-a3cf2f4a3e73
* generic-2.6: add kernel 2.6.35 preliminary support (patches)Alexandros C. Couloumbis2010-06-07104-0/+38334
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21696 3c298f89-4303-0410-b956-a3cf2f4a3e73
* generic-2.6: add kernel 2.6.35 preliminary supportAlexandros C. Couloumbis2010-06-071-0/+3
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21695 3c298f89-4303-0410-b956-a3cf2f4a3e73
* refresh kernel patchesAlexandros C. Couloumbis2010-06-0621-69/+69
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21694 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [package/madwifi] add 2.6.35 supportAlexandros C. Couloumbis2010-06-061-0/+40
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21693 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [ar7] generate NA and non-NA images for Titan platformsFlorian Fainelli2010-06-061-0/+7
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21692 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [ar7] add Titan MTD partitionning support (#6632)Florian Fainelli2010-06-062-0/+289
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21691 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [ar7] titan board also have CYWL as a product idFlorian Fainelli2010-06-061-1/+1
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21690 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [tools] add mktitanimg to create Titan (AR7-based) images (#6632)Florian Fainelli2010-06-063-0/+1211
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21689 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [kernel] do not override kmod-usb-storage-extras Kconfig symbols (#7285)Florian Fainelli2010-06-065-50/+0
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21688 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [package] update openssl to 0.9.8o (#7428)Florian Fainelli2010-06-061-2/+2
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21687 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ar71xx: build firmware images if Minimal profile is selectedGabor Juhos2010-06-061-0/+4
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21684 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ar71xx: rename Minimal profileGabor Juhos2010-06-061-5/+5
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21683 3c298f89-4303-0410-b956-a3cf2f4a3e73
* orion: Update Orion in trunk to kernel 2.6.34.Hauke Mehrtens2010-06-0610-3/+96
| | | | | | | | | | Was flashed on WRT350Nv2, booted and is running for several days. Closes #7405 Thank you maddes for your patch. git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21682 3c298f89-4303-0410-b956-a3cf2f4a3e73
* generic: update mips multimachine patchGabor Juhos2010-06-053-42/+51
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21681 3c298f89-4303-0410-b956-a3cf2f4a3e73
* adm5120: convert to use the new mips multimachine stuffGabor Juhos2010-06-0528-747/+55
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21680 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ar71xx: clarify the nand subtarget a bitFelix Fietkau2010-06-051-1/+1
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21679 3c298f89-4303-0410-b956-a3cf2f4a3e73
* generic: merge mips multi machine update to generic patches for 2.6.34Gabor Juhos2010-06-045-337/+342
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21675 3c298f89-4303-0410-b956-a3cf2f4a3e73
* generic: merge mips multi machine update to generic patches for 2.6.33Gabor Juhos2010-06-044-337/+332
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21674 3c298f89-4303-0410-b956-a3cf2f4a3e73
* generic: merge mips multi machine update to generic patches for 2.6.32Gabor Juhos2010-06-045-470/+331
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21673 3c298f89-4303-0410-b956-a3cf2f4a3e73
* adm5120: don't use linux/autoconf.hGabor Juhos2010-06-0412-1286/+0
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21672 3c298f89-4303-0410-b956-a3cf2f4a3e73
* adm5120: fix build error on 2.6.34Gabor Juhos2010-06-041-0/+1
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21671 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [etrax] Force usb features, fix depends Claudio Mignanti2010-06-032-3/+2
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21664 3c298f89-4303-0410-b956-a3cf2f4a3e73
* libelf: get rid of CRLF encoding in the makefile (thx, danimo)Felix Fietkau2010-06-031-49/+49
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21663 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [package] base-files: introduce option "broadcast" for proto=dhcp interface ↵Jo-Philipp Wich2010-06-021-2/+11
| | | | | | to enable the broadcast flag in DHCP requests, required by certain providers git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21661 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [toolchain] fix eglibc INET_ANL option selectionFlorian Fainelli2010-06-021-1/+1
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21660 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [package] base-files: remove IPv6 LL addr from interfaces before adding them ↵Jo-Philipp Wich2010-06-021-0/+9
| | | | | | to a bridge git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21659 3c298f89-4303-0410-b956-a3cf2f4a3e73
* mac80211: reduce the size of the debugfs codeFelix Fietkau2010-06-021-0/+262
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21657 3c298f89-4303-0410-b956-a3cf2f4a3e73