Commit Graph

94 Commits

Author SHA1 Message Date
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
Hauke Mehrtens
c4079adad8 kernel: fix build with kernel 2.6.34-rc4
SVN-Revision: 20992
2010-04-18 17:14:49 +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
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
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
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
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
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
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
Gabor Juhos
f1509eaf8c kernel: add driver for the RTL8366RB switch
Thanks to Andrew Tarabaras.

SVN-Revision: 19837
2010-02-24 13:39:02 +00:00
Gabor Juhos
e251cd15c9 kernel: fix typos in the AR8216 header file
SVN-Revision: 19834
2010-02-24 13:38:48 +00:00
Gabor Juhos
c253898e89 rtl8366_smi: sanitize gpio values to a 0/1 boolean
SVN-Revision: 19402
2010-01-30 15:25:12 +00:00
Gabor Juhos
6bfdc7c998 rtl8366s: reset the chip early, this allows ethernet to work as soon as possible
SVN-Revision: 19355
2010-01-27 21:01:48 +00:00
Gabor Juhos
49c4df5487 rtl8366: make it available on all platforms
SVN-Revision: 19329
2010-01-25 15:13:38 +00:00
Gabor Juhos
21742847bd kernel: change debounce logic in the gpio-buttons driver
* thanks to Nuno Gonçalves

SVN-Revision: 19115
2010-01-13 10:18:24 +00:00
Felix Fietkau
2d61e4c580 deduplicate kernel source files from 2.6.30-2.6.32 by moving them to generic files/
SVN-Revision: 18927
2009-12-25 10:34:21 +00:00
Felix Fietkau
2bff4bf4e5 rtl8306: manage the wan port as a separate phy device with proper link status reading and autonegotiation - the genphy driver does not handle it properly
SVN-Revision: 18709
2009-12-09 03:25:33 +00:00
Felix Fietkau
ddc2e2270b ar71xx: make the rtl8306 switch attach to eth0 instead of eth1 on the wrt160nl, fixes wan port detection (#6309)
SVN-Revision: 18699
2009-12-08 14:06:18 +00:00
Felix Fietkau
df35ee622f fix link status detection in various switch drivers
SVN-Revision: 18698
2009-12-08 14:06:09 +00:00
Felix Fietkau
30e635c55b move the updated version (for 2.6.30+) of ar8216/mvswitch to the generic files directory and remove patches for older kernel versions (no longer in use)
SVN-Revision: 17594
2009-09-16 12:24:46 +00:00
Felix Fietkau
6e28b28c5e add a driver for rtl8306 switches
SVN-Revision: 17248
2009-08-14 00:52:17 +00:00
Felix Fietkau
3e7d58574f ar8216: rename the vlan attribute to enable_vlan to keep it consistent with other drivers
SVN-Revision: 16770
2009-07-11 01:21:01 +00:00
Felix Fietkau
3455f00d7a ar8216: fix transmission of large frames by setting the switch mtu
SVN-Revision: 16629
2009-06-29 21:54:16 +00:00
Felix Fietkau
c1918c778c ar8216: add delay for page switching to work around register setting corruption. use packet mangling to fix up the vlan for incoming packets (workaround for hardware bug, which renders normal 802.1q support unusable)
SVN-Revision: 16442
2009-06-14 03:32:01 +00:00
Felix Fietkau
4e12c9d210 fix a crash in ip175c attribute enumeration
SVN-Revision: 15506
2009-04-30 13:57:22 +00:00
Felix Fietkau
a523450678 Add a driver for Atheros AR8216 switches Thanks to Vertical Communications, Inc. for providing access to the documentation
SVN-Revision: 15482
2009-04-29 13:02:41 +00:00
Felix Fietkau
8ec2ad91ad swconfig: add a generic switch reset call
SVN-Revision: 15470
2009-04-28 19:16:17 +00:00
Felix Fietkau
3fce73ce46 clean up the ip175c driver some more, add support for setting the pvid and fix querying the phy status
SVN-Revision: 15308
2009-04-20 21:26:44 +00:00
Felix Fietkau
f6f55bae7d swconfig: add a generic method for setting the port primary vlan id (used for transparently fixing up pvid for untagged port when setting vlan ports)
SVN-Revision: 15307
2009-04-20 21:26:39 +00:00
Felix Fietkau
4320a28228 add IC+ IP175C driver (based on Patrick Horn's driver, see #4050)
SVN-Revision: 15305
2009-04-20 18:57:55 +00:00
Felix Fietkau
787e9fcf93 swconfig: treat struct switch_attr as constant
SVN-Revision: 15302
2009-04-20 18:57:36 +00:00
Felix Fietkau
cd80e16a80 swconfig: remove old debugging stuff
SVN-Revision: 15301
2009-04-20 18:57:30 +00:00
Andy Boyett
24aedf8281 files/fs/yaffs2: revert changes in r15242 that break patching on 2.6.28
SVN-Revision: 15248
2009-04-18 06:29:23 +00:00
Felix Fietkau
34939cad39 get rid of $Id$ - it has never helped us and it has broken too many patches ;)
SVN-Revision: 15242
2009-04-17 14:09:46 +00:00
Felix Fietkau
1929c7511c mvswitch: re-enable header mode
SVN-Revision: 15186
2009-04-10 11:33:49 +00:00
Felix Fietkau
bfa8064ccd atheros: in later kernels, vlan 0 no longer works as expected, switch to (1,2) instead of (0,1) for lan/wan
SVN-Revision: 14981
2009-03-22 20:19:23 +00:00
Felix Fietkau
f972eb41b5 mvswitch,adm6996: use phy fixups instead of a nonstandard patch for hardware detection
SVN-Revision: 14977
2009-03-22 20:18:36 +00:00
Gabor Juhos
404fa66215 generic-2.6: make MyLoader parser compatible with the old partition tables
SVN-Revision: 14155
2009-01-23 11:54:44 +00:00
Felix Fietkau
50781f3a8b move linux/switch.h to generic files/ instead of the kernel version specific directories
SVN-Revision: 13649
2008-12-15 13:04:15 +00:00
Gabor Juhos
6113df9095 add NP25G and WP543 board id
SVN-Revision: 13316
2008-11-22 19:40:11 +00:00
Gabor Juhos
e1e65079b4 ocf: move all stuff into files, and fix build error on .25
SVN-Revision: 13288
2008-11-19 12:25:39 +00:00
Gabor Juhos
442db57b96 move MyLoader partition parser into generic files, will be used on ar71xx
SVN-Revision: 13256
2008-11-17 10:14:58 +00:00
Gabor Juhos
300d8bea55 move MyLoader stuff into generic files, will be used on adm5120
SVN-Revision: 13254
2008-11-17 09:19:27 +00:00
Felix Fietkau
d1b986bd54 improve routing/nat performance for devices using the marvell 88e6060 switch
SVN-Revision: 13060
2008-10-28 17:54:22 +00:00
Felix Fietkau
5065bb589a remove more redundant files and clone files-2.6.23 for 2.6.24 - fixes rdc build errors
SVN-Revision: 13022
2008-10-22 06:51:06 +00:00
Felix Fietkau
1e570a9288 change the way ./files* and the generic kernel files are applied. ./files now applies to *ALL* kernel versions, and is copied along with ./files-* - this gets rid of quite a bit of redundancy in the extra kernel drivers.
SVN-Revision: 13010
2008-10-18 21:43:30 +00:00
Gabor Juhos
5d46bb5efc make gpio_dev compatible with GPIOLIB & GPIO_SYSFS (closes #4016)
SVN-Revision: 12864
2008-10-05 13:08:12 +00:00
Gabor Juhos
3527e7a649 modules/gpio_dev: move to drivers/char/ on older kernels as well, and create a package for it
SVN-Revision: 12133
2008-08-05 09:52:23 +00:00