summaryrefslogtreecommitdiffstats
path: root/target/linux/generic-2.6
Commit message (Collapse)AuthorAgeFilesLines
...
* ip17xx: New chip detectionjuhosg2010-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 fieldjuhosg2010-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 incrementallyjuhosg2010-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 resetjuhosg2010-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 arrayjuhosg2010-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 operationsjuhosg2010-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_VALjuhosg2010-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()juhosg2010-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()juhosg2010-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 cleanupsjuhosg2010-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 registersjuhosg2010-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_TAGGEDjuhosg2010-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
* generic-2.6: fix mini_fo 2.6.35 kernel issueacoul2010-06-081-0/+20
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21706 3c298f89-4303-0410-b956-a3cf2f4a3e73
* fix a typo on commit r21704acoul2010-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.35acoul2010-06-081-1/+8
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21704 3c298f89-4303-0410-b956-a3cf2f4a3e73
* generic: add missing config symbol for 2.6.34juhosg2010-06-071-0/+1
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21699 3c298f89-4303-0410-b956-a3cf2f4a3e73
* generic-2.6: add kernel 2.6.35 preliminary support (patches)acoul2010-06-07104-0/+38334
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21696 3c298f89-4303-0410-b956-a3cf2f4a3e73
* refresh kernel patchesacoul2010-06-0618-65/+65
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21694 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [kernel] do not override kmod-usb-storage-extras Kconfig symbols (#7285)florian2010-06-065-50/+0
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21688 3c298f89-4303-0410-b956-a3cf2f4a3e73
* generic: update mips multimachine patchjuhosg2010-06-053-42/+51
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21681 3c298f89-4303-0410-b956-a3cf2f4a3e73
* generic: merge mips multi machine update to generic patches for 2.6.34juhosg2010-06-041-68/+100
| | | | 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.33juhosg2010-06-041-69/+101
| | | | 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.32juhosg2010-06-041-68/+100
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21673 3c298f89-4303-0410-b956-a3cf2f4a3e73
* kernel: add missing config symbols.hauke2010-05-291-1/+10
| | | | | | | | | Thank you Maddes for your patch This closes #7375. git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21623 3c298f89-4303-0410-b956-a3cf2f4a3e73
* kernel: add lzma support for arm cpu.hauke2010-05-291-0/+57
| | | | | | | | | | | | This patch appears to be lost beetween 2.6.32 and 2.6.33. Thank you Maddes for the patch. This helps making orion work with kernel 2.6.34. closes #7377. git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21622 3c298f89-4303-0410-b956-a3cf2f4a3e73
* target/linux: refresh 2.6.32 patchesnico2010-05-2416-51/+51
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21566 3c298f89-4303-0410-b956-a3cf2f4a3e73
* kernel: add lzma support for arm cpu.hauke2010-05-231-0/+57
| | | | | | | | | | | This patch appears to be lost beetween 2.6.32 and 2.6.33. Thank you Maddes for the patch. This helps making orion work with kernel 2.6.33. git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21552 3c298f89-4303-0410-b956-a3cf2f4a3e73
* generic-2.6: refresh patcheshauke2010-05-2311-43/+39
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21542 3c298f89-4303-0410-b956-a3cf2f4a3e73
* target/generic-2.6: add missing bits for 2.6.30 ssb update nico2010-05-191-3/+166
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21507 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [kernel] Add checksum for 2.6.34, refresh 2.6.34 patches and update targets ↵lars2010-05-179-15/+15
| | | | | | from 2.6.34-rcX to 2.6.34 git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21498 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [kernel] add missing ifxmips crypto config symbols, spotted by buildbotflorian2010-05-172-0/+2
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21483 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [kernel] do not export find_task_by_vpid twice on 2.6.30florian2010-05-151-21/+19
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21456 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ssb: activate CONFIG_SSB_BLOCKIO in the kernel and not in compat-wireless.hauke2010-05-1510-10/+45
| | | | | | | | | Before this patch CONFIG_SSB_BLOCKIO was set to y in compat-wireless but the in kernel ssb system had it set to n, this causes an invalid pointer. b43 now needs CONFIG_SSB_BLOCKIO=y git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21449 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [kernel] Move CONFIG_LZMA_{DE,}COMPRESS to generic configlars2010-05-122-1/+5
| | | | | | | | It is selected by CONFIG_JFFS2_LZMA which is set in the generic config. git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21437 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [kernel] gpio_buttons: include slab.hlars2010-05-121-0/+1
| | | | | | | | Fixes build with 2.6.34 git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21436 3c298f89-4303-0410-b956-a3cf2f4a3e73
* kernel: add missing symbolhauke2010-05-121-0/+1
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21429 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [kernel] Add missing symbols to generic 2.6.34 configlars2010-05-121-0/+47
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21428 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [kernel] refresh 2.6.32 patchesflorian2010-05-0919-70/+68
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21411 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [kernel] make etrax samsung flash patch generic (#6552)florian2010-05-093-0/+33
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21408 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [kernel] fix build error on hifnHIPP spotted by buildbotflorian2010-05-051-0/+1
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21373 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [generic-2.6] update OCF framework to version 20100325jow2010-05-04192-4797/+65214
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21356 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [generic-2.6] remove a bogus byteswap in the hifn_795x driver, should fix ↵jow2010-05-035-0/+85
| | | | | | support for the VPN1411 crypto accelerator git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21344 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [kernel] use AMD standard command-set with winbond flash chips (#6966), ↵florian2010-05-033-0/+36
| | | | | | patch from obinou git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21333 3c298f89-4303-0410-b956-a3cf2f4a3e73
* kernel: bring ssb in sync with upstream (as of current wireless-testing)nbd2010-04-304-77/+3441
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21269 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [kernel] refresh 2.6.31 patchesflorian2010-04-2819-66/+66
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21240 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [kernel] refresh 2.6.32 patchesflorian2010-04-2816-58/+58
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21233 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [generic-2.6] refresh kernel patchesacoul2010-04-2853-179/+179
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21217 3c298f89-4303-0410-b956-a3cf2f4a3e73
* kernel: refresh patches for 2.6.34-rc5 and update md5sumjuhosg2010-04-221-1/+1
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21082 3c298f89-4303-0410-b956-a3cf2f4a3e73
* kernel: refresh patches for 2.6.33.2, and drop md5sum for older 2.6.32 kernelsjuhosg2010-04-2219-105/+105
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21081 3c298f89-4303-0410-b956-a3cf2f4a3e73
* kernel: add KEY_WPS_BUTTON definitionjuhosg2010-04-212-0/+51
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21073 3c298f89-4303-0410-b956-a3cf2f4a3e73