Commit Graph

1088 Commits

Author SHA1 Message Date
Gabor Juhos
d08093b8b3 ip17xx: Maintain state->remove_tag incrementally
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
2010-06-08 20:18:34 +00:00
Gabor Juhos
e04dd645f2 ip17xx: Initialize VLAN state upon reset
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
2010-06-08 20:18:30 +00:00
Gabor Juhos
3c213b14ed ip17xx: Introduce vlan array
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
2010-06-08 20:18:25 +00:00
Gabor Juhos
065bc60f37 ip17xx: Introduce indirection of low-level operations
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
2010-06-08 20:18:20 +00:00
Gabor Juhos
09be47cf90 ip17xx: Fix use of MODE_VAL
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
2010-06-08 20:18:15 +00:00
Gabor Juhos
f09e3fb65b ip17xx: Fix indentation in get_state() and update_state()
Signed-off-by: Martin Mares <mj@ucw.cz>
Signed-off-by: Patrick Horn <patrick.horn@gmail.com>

SVN-Revision: 21712
2010-06-08 20:18:10 +00:00
Gabor Juhos
7b5a77fa39 ip17xx: Fixed error handling in ip175c_set_val()
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
2010-06-08 20:18:05 +00:00
Gabor Juhos
b3073617a5 ip17xx: Cosmetic cleanups
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
2010-06-08 20:18:00 +00:00
Gabor Juhos
f96f1cd16f ip17xx: Consolidate operations with PHY registers
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
2010-06-08 20:17:55 +00:00
Gabor Juhos
c0c0a60718 swconfig: Fix a bug in use of SWITCH_PORT_FLAG_TAGGED
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
2010-06-08 20:17:03 +00:00
Alexandros C. Couloumbis
ce6b70119c generic-2.6: fix mini_fo 2.6.35 kernel issue
SVN-Revision: 21706
2010-06-08 16:44:42 +00:00
Alexandros C. Couloumbis
7414d7d943 fix a typo on commit r21704
SVN-Revision: 21705
2010-06-08 16:19:34 +00:00
Alexandros C. Couloumbis
7e2b5d177b generic-2.6: generic: add missing config symbols for 2.6.35
SVN-Revision: 21704
2010-06-08 16:13:37 +00:00
Gabor Juhos
9f196d5223 generic: add missing config symbol for 2.6.34
SVN-Revision: 21699
2010-06-07 09:18:18 +00:00
Alexandros C. Couloumbis
4503e77b0d generic-2.6: add kernel 2.6.35 preliminary support (patches)
SVN-Revision: 21696
2010-06-07 05:56:49 +00:00
Alexandros C. Couloumbis
1428b8f9bc refresh kernel patches
SVN-Revision: 21694
2010-06-06 21:16:31 +00:00
Florian Fainelli
ac23dcfe11 do not override kmod-usb-storage-extras Kconfig symbols (#7285)
SVN-Revision: 21688
2010-06-06 19:02:30 +00:00
Gabor Juhos
b730849966 generic: update mips multimachine patch
SVN-Revision: 21681
2010-06-05 18:26:45 +00:00
Gabor Juhos
2dfcdb9465 generic: merge mips multi machine update to generic patches for 2.6.34
SVN-Revision: 21675
2010-06-04 19:09:52 +00:00
Gabor Juhos
35765bfcf8 generic: merge mips multi machine update to generic patches for 2.6.33
SVN-Revision: 21674
2010-06-04 19:09:49 +00:00
Gabor Juhos
383bd396fa generic: merge mips multi machine update to generic patches for 2.6.32
SVN-Revision: 21673
2010-06-04 19:09:46 +00:00
Hauke Mehrtens
6ef6b4e8b3 kernel: add missing config symbols.
Thank you Maddes for your patch

This closes #7375.

SVN-Revision: 21623
2010-05-29 14:32:58 +00:00
Hauke Mehrtens
d9461d438a kernel: add lzma support for arm cpu.
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.

SVN-Revision: 21622
2010-05-29 14:31:56 +00:00
Nicolas Thill
46e2eea1ef target/linux: refresh 2.6.32 patches
SVN-Revision: 21566
2010-05-24 20:35:46 +00:00
Hauke Mehrtens
4f1a51b7d9 kernel: add lzma support for arm cpu.
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.

SVN-Revision: 21552
2010-05-23 17:44:32 +00:00
Hauke Mehrtens
3e4f6af8a5 generic-2.6: refresh patches
SVN-Revision: 21542
2010-05-23 13:17:32 +00:00
Nicolas Thill
359f611957 target/generic-2.6: add missing bits for 2.6.30 ssb update
SVN-Revision: 21507
2010-05-19 17:07:40 +00:00
Lars-Peter Clausen
ba30e23bbc Add checksum for 2.6.34, refresh 2.6.34 patches and update targets from 2.6.34-rcX to 2.6.34
SVN-Revision: 21498
2010-05-17 22:05:07 +00:00
Florian Fainelli
bef594108f add missing ifxmips crypto config symbols, spotted by buildbot
SVN-Revision: 21483
2010-05-17 09:28:44 +00:00
Florian Fainelli
72e6e69855 do not export find_task_by_vpid twice on 2.6.30
SVN-Revision: 21456
2010-05-15 19:14:50 +00:00
Hauke Mehrtens
cfec944f42 ssb: activate CONFIG_SSB_BLOCKIO in the kernel and not in compat-wireless.
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

SVN-Revision: 21449
2010-05-15 11:04:53 +00:00
Lars-Peter Clausen
37a8f3522f Move CONFIG_LZMA_{DE,}COMPRESS to generic config
It is selected by CONFIG_JFFS2_LZMA which is set in the generic config.

SVN-Revision: 21437
2010-05-12 23:04:18 +00:00
Lars-Peter Clausen
48ec7efd65 gpio_buttons: include slab.h
Fixes build with 2.6.34

SVN-Revision: 21436
2010-05-12 22:50:26 +00:00
Hauke Mehrtens
51f6c2ccf4 kernel: add missing symbol
SVN-Revision: 21429
2010-05-12 20:15:51 +00:00
Lars-Peter Clausen
35a7db1e92 Add missing symbols to generic 2.6.34 config
SVN-Revision: 21428
2010-05-12 19:39:04 +00:00
Florian Fainelli
4eecca22d4 refresh 2.6.32 patches
SVN-Revision: 21411
2010-05-09 18:13:49 +00:00
Florian Fainelli
d3092630a8 make etrax samsung flash patch generic (#6552)
SVN-Revision: 21408
2010-05-09 09:25:41 +00:00
Florian Fainelli
4510d8838b fix build error on hifnHIPP spotted by buildbot
SVN-Revision: 21373
2010-05-05 09:03:59 +00:00
Jo-Philipp Wich
32e7340bf2 update OCF framework to version 20100325
SVN-Revision: 21356
2010-05-04 20:59:19 +00:00
Jo-Philipp Wich
d7048c2300 remove a bogus byteswap in the hifn_795x driver, should fix support for the VPN1411 crypto accelerator
SVN-Revision: 21344
2010-05-03 20:24:49 +00:00
Florian Fainelli
31548bfe2b use AMD standard command-set with winbond flash chips (#6966), patch from obinou
SVN-Revision: 21333
2010-05-03 09:03:14 +00:00
Felix Fietkau
3ea657a3e9 kernel: bring ssb in sync with upstream (as of current wireless-testing)
SVN-Revision: 21269
2010-04-30 15:53:08 +00:00
Florian Fainelli
24726a0cdc refresh 2.6.31 patches
SVN-Revision: 21240
2010-04-28 19:59:28 +00:00
Florian Fainelli
d1ed288d6c refresh 2.6.32 patches
SVN-Revision: 21233
2010-04-28 13:55:15 +00:00
Alexandros C. Couloumbis
ee7569f3e5 refresh kernel patches
SVN-Revision: 21217
2010-04-28 09:26:19 +00:00
Gabor Juhos
4be3c3e48c kernel: refresh patches for 2.6.34-rc5 and update md5sum
SVN-Revision: 21082
2010-04-22 07:13:21 +00:00
Gabor Juhos
81062a12ac kernel: refresh patches for 2.6.33.2, and drop md5sum for older 2.6.32 kernels
SVN-Revision: 21081
2010-04-22 07:12:09 +00:00
Gabor Juhos
b303c5e2b9 kernel: add KEY_WPS_BUTTON definition
SVN-Revision: 21073
2010-04-21 19:07:11 +00:00
Hauke Mehrtens
78981f6f3c kernel: refresh patches with 2.6.34-rc4
SVN-Revision: 20999
2010-04-18 18:35:47 +00:00
Hauke Mehrtens
3ed2f88bba kernel: add missing symbols
SVN-Revision: 20995
2010-04-18 18:03:49 +00:00
Hauke Mehrtens
c4079adad8 kernel: fix build with kernel 2.6.34-rc4
SVN-Revision: 20992
2010-04-18 17:14:49 +00:00
Hauke Mehrtens
0af96ede5f kernel: add missing symbols
SVN-Revision: 20991
2010-04-18 17:12:20 +00:00
Gabor Juhos
1e8f91502e kernel: refresh 2.6.32 patches
SVN-Revision: 20952
2010-04-17 09:29:29 +00:00
Gabor Juhos
f7cc3d576c swconfig: Add cpu port index to help output.
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
2010-04-16 19:32:40 +00:00
Alexandros C. Couloumbis
af45b63a85 2.6.34: fix kzalloc error
SVN-Revision: 20881
2010-04-15 16:46:24 +00:00
Alexandros C. Couloumbis
b5cfd7bde5 add lzma/jffs2 patches for 2.6.34
SVN-Revision: 20845
2010-04-13 21:45:03 +00:00
Alexandros C. Couloumbis
668fd62080 don't use lzma/jffs2 on <2.6.33, set lzma/jffs2 as default for >=2.6.33. switch verbose mode on compresor statistics.
SVN-Revision: 20844
2010-04-13 21:36:58 +00:00
Nicolas Thill
e2b57ecf5f define a shared IMG_PREFIX variable used as a basename for image files, it contains board & subtarget infos (if appropriate) allowing subtargets to share the same bin directory without overwriting each other's files
SVN-Revision: 20834
2010-04-12 23:15:56 +00:00
Alexandros C. Couloumbis
c2c88d315f add jffs2/lzma support (not activated by default yet)
SVN-Revision: 20828
2010-04-12 13:14:42 +00:00
Lars-Peter Clausen
d3f097bfde Add missing symbols to 2.6.34 config
SVN-Revision: 20816
2010-04-11 22:30:27 +00:00
Florian Fainelli
fba1a0a074 swconfig: Check vlan/port indexes for validity.
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
2010-04-11 20:51:37 +00:00
Florian Fainelli
2a018eb380 refresh 2.6.33 patches for 2.6.33.2
SVN-Revision: 20803
2010-04-11 18:15:15 +00:00
John Crispin
b4d0b6cbb3 adss 2.6.33 kernel patches, not defult yet as linux-atm breaks on 2.6.33
SVN-Revision: 20789
2010-04-10 20:11:28 +00:00
Gabor Juhos
3491026cbb Generic: Clean up output of AR8216 driver.
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

SVN-Revision: 20773
2010-04-10 11:34:11 +00:00
Florian Fainelli
222390bafc refresh patches
SVN-Revision: 20767
2010-04-09 19:26:57 +00:00
Gabor Juhos
72d4353728 generic: make chip detection more reliable in the AR8216 driver
Fixes broken ethernet on the Planex MZK-W04NU/W300NH boards.

Cc: bacfire@openwrt.org

SVN-Revision: 20753
2010-04-09 08:40:12 +00:00
Florian Fainelli
722e75f066 fix kexec for mips, patch from Adrian Byszuk (#7115)
SVN-Revision: 20745
2010-04-08 07:53:14 +00:00
Jo-Philipp Wich
23bebe33a7 Add support for the ar8316 switch. 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.

SVN-Revision: 20722
2010-04-05 23:03:16 +00:00
Imre Kaloz
d3b9b93dd3 add a subtarget and drivers for the Intel Tolapai SoC
SVN-Revision: 20648
2010-04-01 12:05:27 +00:00
Felix Fietkau
5f89a1f096 netfilter: fix ABI breakage caused by the netfilter match optimization (fixes #5628)
SVN-Revision: 20552
2010-03-28 19:05:59 +00:00
Felix Fietkau
e4a6acf9b8 enable IP175A support in the IP175C PHY driver (based on patch from jh in #6733)
SVN-Revision: 20551
2010-03-28 18:57:42 +00:00
Gabor Juhos
e66a368bd1 kernel: update to 2.6.32.10
SVN-Revision: 20444
2010-03-26 10:45:25 +00:00
Florian Fainelli
8805ead76c add missing CONFIG_CB1400_CORE symbol, spotted by buildbot
SVN-Revision: 20426
2010-03-25 15:27:08 +00:00
Alexandros C. Couloumbis
129d8a88f4 generic-2.6: fix r20386 (thanks nico), update missing symbols on config-2.6.32 too
SVN-Revision: 20388
2010-03-23 15:02:29 +00:00
Alexandros C. Couloumbis
c0ea2a6257 generic-2.6: config-2.6.33 add missing symbols, closes #6913 (thanks maddes)
SVN-Revision: 20386
2010-03-23 12:42:17 +00:00
Hauke Mehrtens
c1f9037135 kernel: Add some missing config symbols
This adds some missing config symbols and opens the menu
behind CONFIG_SND_PCI and CONFIG_ISDN.

SVN-Revision: 20339
2010-03-21 13:57:07 +00:00
Alexandros C. Couloumbis
0fa2deaa28 generic-2.6: sync patches to 2.6.34-rc2
SVN-Revision: 20329
2010-03-21 06:53:08 +00:00
Gabor Juhos
706b6b846f base-files: show boot state on intramfs images
SVN-Revision: 20289
2010-03-18 19:19:21 +00:00
Florian Fainelli
9859330fc3 add missing configuration symbols
SVN-Revision: 20255
2010-03-17 20:21:49 +00:00
Alexandros C. Couloumbis
dc49c59a07 generic-2.6: sync patches to 2.6.33.1
SVN-Revision: 20236
2010-03-16 08:15:47 +00:00
Florian Fainelli
1b39ce11a8 also fix invalid hunks in 2.6.33 patch
SVN-Revision: 20209
2010-03-14 17:21:47 +00:00
Florian Fainelli
558f9342d5 add 2.6.34 support
SVN-Revision: 20208
2010-03-14 17:20:45 +00:00
Florian Fainelli
2e94e94a09 fix invalid hunks in 060-block2mtd_init.patch file
SVN-Revision: 20207
2010-03-14 17:20:40 +00:00
Florian Fainelli
16603d025c export rescan_partitions to prevent linking failures in block2mtd (#6741)
SVN-Revision: 20205
2010-03-14 16:21:33 +00:00
Gabor Juhos
9d9296adb1 kernel: refresh lzo patch for 2.6.33
SVN-Revision: 20199
2010-03-14 13:22:46 +00:00
Florian Fainelli
f93c17cba4 fix the building of the lzo decompressor on some architectures
SVN-Revision: 20157
2010-03-12 14:24:12 +00:00
Nicolas Thill
0c13287c9d remove CONFIG_PCI=y missed from [20136] in generic 2.6.30 config
SVN-Revision: 20156
2010-03-12 11:50:45 +00:00
Felix Fietkau
07e59c7bc7 mips: allow the compiler to optimize memset, memcmp, memcpy for better performance and (in some instances) smaller code
SVN-Revision: 20151
2010-03-11 18:49:01 +00:00
Felix Fietkau
0849a208ce ar71xx: fix oprofile support
SVN-Revision: 20150
2010-03-11 18:48:57 +00:00
Felix Fietkau
2d305bdc23 the mips -ffreestanding patch has been unnecessary for a long time now, remove it
SVN-Revision: 20149
2010-03-11 18:48:50 +00:00
Alexandros C. Couloumbis
d138f99bb2 generic-2.6: add 2.6.34 preliminary support (patches)
SVN-Revision: 20140
2010-03-11 12:24:17 +00:00
Alexandros C. Couloumbis
f6cd918498 generic-2.6: add 2.6.34 preliminary support
SVN-Revision: 20138
2010-03-11 11:55:34 +00:00
Nicolas Thill
e1863691d9 do *not* enable CONFIG_PCI in generic config, but on targets where it makes sense instead (partially revert [18370])
SVN-Revision: 20136
2010-03-11 09:50:11 +00:00
Felix Fietkau
527accf920 ar8216: fix the mtu register definition
SVN-Revision: 20110
2010-03-09 21:43:16 +00:00
Felix Fietkau
513e8c583f Several small fixes for ar8216 driver (patch by Jonas Gorski)
* Create defines for some magic values/masks.

 * Change vlan_id to u16, to allow VIDs > 255.

 * Add a range check to set_pvid as it isn't a VID, but the index
   in the vlan table.

 * Set the max VID to 4094, since 4095 is a reserved value and
   should not be used.

 * In mangle_rx replace the provided VID with the VID of the table
   entry of the port, not the index of the table.

 * In hw_apply, remove a redundant emptyness check (was already
   checked several lines above).

 * In no vlan mode do not set the ingress mode to secure, as there
   are no vlan table entries, but to use the port's destination
   masks. Otherwise the switch won't forward anything.

 * In read_status tell that the phy is up (taken from the rtl8306
   driver).

SVN-Revision: 20083
2010-03-09 14:35:41 +00:00
Travis Kemen
20769a9ade fix missing symbols for kernel 2.6.33, closes #6803 thanks Maddes
SVN-Revision: 20010
2010-03-05 23:10:54 +00:00
Travis Kemen
5a13cba68d fix missing symbols for kernel 2.6.32, closes #6802 thanks Maddes
SVN-Revision: 20009
2010-03-05 22:35:24 +00:00
Hauke Mehrtens
d29c671202 brcm47xx: add CONFIG_CMDLINE again
Fix for r19955
this patch was suggested by tripolar

SVN-Revision: 19967
2010-03-03 20:32:41 +00:00
Gabor Juhos
a41a501858 kernel: fix m25p80 patches for 2.6.33
SVN-Revision: 19961
2010-03-03 09:40:20 +00:00
Gabor Juhos
111ae3e04b kernel: refresh 2.6.33 patches
SVN-Revision: 19959
2010-03-03 09:40:12 +00:00