Commit graph

380 commits

Author SHA1 Message Date
Felix Fietkau
9e7cc83edc ralink: fix ethernet rx buffer size breakage
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 44047
2015-01-18 20:17:41 +00:00
Felix Fietkau
a4460ca5a7 ralink: improve check rx sg function. use check frags instead of function call
Signed-off-by: michael lee <igvtee@gmail.com>

SVN-Revision: 44046
2015-01-18 20:17:28 +00:00
Felix Fietkau
b3ca42ec8f ralink: correct handle hardware rx 2bytes offset
Signed-off-by: michael lee <igvtee@gmail.com>

SVN-Revision: 44045
2015-01-18 20:17:18 +00:00
Felix Fietkau
03ea0cf6f1 ralink: use fe_reset to control all reset
Signed-off-by: michael lee <igvtee@gmail.com>

SVN-Revision: 44044
2015-01-18 20:17:07 +00:00
Felix Fietkau
50588ef192 ralink: improve tx_timeout function
* use default timeout value
* print more debug ring info
* move timeout reset function to workqueue

Signed-off-by: michael lee <igvtee@gmail.com>

SVN-Revision: 44043
2015-01-18 20:16:50 +00:00
Felix Fietkau
a5b578c2d9 ralink: reduce access to uncached tx/rx dma ring buffer
Signed-off-by: michael lee <igvtee@gmail.com>

SVN-Revision: 44041
2015-01-18 20:16:35 +00:00
Felix Fietkau
00db07be58 ramips: fix tx bql related race condition in the ethernet driver
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 43995
2015-01-17 13:13:55 +00:00
Felix Fietkau
acfc6c153b ramips: use a larger number of rx descriptors on mt7621 to work around rx overrun related packet loss
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 43953
2015-01-13 00:34:45 +00:00
Felix Fietkau
05d4b8c79b ramips: remove interrupt coalescing, it is unnecessary with napi polling and could reduce throughput
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 43952
2015-01-13 00:34:38 +00:00
Felix Fietkau
10c2bdbc4f ramips: disable ethernet checksum offloads for mt7621, they are broken
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 43811
2015-01-02 21:53:24 +00:00
Felix Fietkau
51b1f0ca5c ramips: use netif_receive_skb instead of napi_gro_receive when rx csum offload is unavailable
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 43810
2015-01-02 21:53:18 +00:00
John Crispin
e1f6d0dd0a ralink: fix tx vlan offload and hardware status
hardware status and tx vlan offload support on all targets
except rt5350. so i modify the IS_ENABLE condition only for
mt7621.
support mt7621 hardware status reference by SDK. but i don't
have mt7621. if not work just set mt7621 FE_REG_FE_COUNTER_BASE
to 0 to let software count.

Signed-off-by: michael lee <igvtee@gmail.com>

SVN-Revision: 43303
2014-11-19 09:19:57 +00:00
John Crispin
a5f562993e ralink: support netconsole
Signed-off-by: michael lee <igvtee@gmail.com>

SVN-Revision: 43302
2014-11-19 09:19:49 +00:00
John Crispin
9c5dfd9546 ralink: improve tx vlan offload
hardware tx vlan offload only support max 16 vids
now use add/delete vlan interface to update vlan id table
when duplicate vlan id index detect.
disable hardware tx vlan offload support.

Signed-off-by: michael lee <igvtee@gmail.com>

SVN-Revision: 43301
2014-11-19 09:19:43 +00:00
John Crispin
caa29dea2c ralink: update ethernet driver to use new ralink_soc variable
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 43247
2014-11-14 16:52:52 +00:00
John Crispin
bf8bb5b611 ralink: fix the 10mbit bug on mt7621
a missing "val =" caused the AN bit in the phy0 reg to be flushed.

Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 43246
2014-11-14 16:52:47 +00:00
John Crispin
194ca6127e ralink: improve mt7530 support
the SDK does a bit of extra init that we did not do yet when using an external mt7530.

Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 43245
2014-11-14 16:52:42 +00:00
John Crispin
062828aee0 ralink: mt7621 has a different base addr for PVID
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 43243
2014-11-14 16:52:30 +00:00
John Crispin
86e3315ece ralink: add support for mt7621 ethernet
somehow all switch ports still come up as 10mbit.

Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 43237
2014-11-12 14:54:50 +00:00
John Crispin
e399931376 ralink: fix mdio polling of external phys if only 1 phy exists
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 43235
2014-11-11 11:46:09 +00:00
John Crispin
9007e2244f ralink: mt7628 does not actually need this fix for the ethernet driver
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 43206
2014-11-07 10:51:00 +00:00
John Crispin
c32ad22e40 ralink: improve r43200
r43200 tries to detect if the fixup is needed or not. control the behaviour via
OF instead and disable unused ports.

Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 43201
2014-11-06 12:19:53 +00:00
John Crispin
0cc0ba2b3a ralink: only apply ephy1 fixup if the phy is present
this broke e1700 lan2 as the fixup was applied to the phy inside the mt7530.

Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 43200
2014-11-06 11:11:44 +00:00
John Crispin
f8404aaf9e ralink: add mt7628 support to the ethernet driver
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 43196
2014-11-06 09:31:19 +00:00
John Crispin
26504289df ralink: cleanup ethernet Makefile/Kconfig
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 43195
2014-11-06 09:31:09 +00:00
John Crispin
d524fe46fd ralink: move ethernet driver to files/
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 43194
2014-11-06 09:31:03 +00:00
John Crispin
332b94fbd5 ralink: refresh patches
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 39949
2014-03-18 19:21:56 +00:00
John Crispin
a75b692557 ralink: add xhci driver
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 39328
2014-01-19 17:27:13 +00:00
John Crispin
d4db00205d move files to files-3.7
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 36161
2013-04-03 09:58:44 +00:00
Gabor Juhos
3c2ef04a0e ramips: add kernel support for the Upvel UR-326N4G board
[juhosg: add missing symbols to config-3.{7,8}]

Patch from: Дмитрий Лебедев <lebedev@trendnet.ru>
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 35970
2013-03-11 21:02:40 +00:00
Gabor Juhos
50e51e5ecc ramips: indicate support for ALL5003
add ALL5003 to board description in mach-all5002.c
adapt detection in user-space accordingly
(no functional changes)

Signed-off-by: Daniel Golle <dgolle@allnet.de>
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 35851
2013-03-03 12:47:25 +00:00
Gabor Juhos
275db5b4c4 ramips: remove port_power_off field from ehci_platform_data
It is removed in 3.8. Also add a revert patch for 3.7.

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 35799
2013-02-25 21:28:38 +00:00
Gabor Juhos
5e1d6ce077 ramips: remove __dev_{init,exit} annotations
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 35798
2013-02-25 21:28:34 +00:00
Gabor Juhos
d578f3ac38 ramips: rt3883: add kernel support for the Omnima EMB HPM board
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 35466
2013-02-02 17:21:01 +00:00
Gabor Juhos
0a42e38bad ramips: add kernel support for the Edimax BR-6425 board
Signed-off-by: Yuval Adam <yuv.adm@gmail.com>
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 35462
2013-02-02 17:01:47 +00:00
John Crispin
756a7c5451 fix for non-blinking LAN LEDs
https://dev.openwrt.org/ticket/12830

SVN-Revision: 35359
2013-01-28 18:06:31 +00:00
Gabor Juhos
7eff5d2df0 ramips: add kernel support for the Tenda 3G300M
Ralink RT3052F, 4MB flash, 32MB ram, one USB 2.0, two buttons
and seven leds.

Factory image should be used to flash from original firmware.

Signed-off-by: Cezary Jackiewicz <cezary.jackiewicz@gmail.com>
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 35244
2013-01-19 17:05:03 +00:00
John Crispin
f2f9332350 adds support for Edimax BR-6524N
fixes #12754

Signed-off-by: <rq@akl.lt>

SVN-Revision: 35020
2013-01-06 11:11:42 +00:00
John Crispin
569bbe4970 rt5350 switch support fix
RT5350 frame engine need reset frame engine and embedded switch together.

Signed-off-by: Serge Vasilugin <vasilugin@yandex.ru>

SVN-Revision: 34969
2013-01-02 11:28:21 +00:00
Gabor Juhos
fb07876f25 ramips: rt305x: fix garbled name in mach-mzk-w300nh2.c
Signed-off-by: Samir Ibradžić <sibradzic@gmail.com>
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 34934
2012-12-30 08:23:48 +00:00
Gabor Juhos
d6d06aceb0 ramips: rt305x: add kernel support for the Planex MZK-W300NH2 Router
This is a Japanese market router, for details check
http://www.planex.co.jp/product/router/mzk-w300nh2/. It has only 16MB
RAM, but base OpenWRT install worked fine for days without issues.
Even an image with built-in Luci worked, but don't expect smooth
experience, due to the lack of RAM. Wifi was not extensively tested,
but seems it is working. GPIO LEDs & buttons, factory flash image and
switch config are confirmed working. Tested against revision 34882 +
this patch.

[juhosg: move user-space support and image generation changes into
separate patches]

Signed-off-by: Samir Ibradžić <sibradzic@gmail.com>
Patchwork: http://patchwork.openwrt.org/patch/3077/
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 34925
2012-12-29 17:50:35 +00:00
Gabor Juhos
3fcb8bb0dd ramips: rt305x: add kernel support for AirLive AIR3GII
AirLive AIR3GII is Ralink RT5350F based device with
100Mbps switch, USB port, 4MB flash and 32MB ram.

Works: ethernet (LAN & WAN), wps button, led, USB, sysupgrade
Does not work: wifi (chip RT5350), reset button

[   13.390000] phy0 -> rt2800_init_eeprom: Error - Invalid RT chipset 0x5350 detected.
[   13.400000] phy0 -> rt2x00lib_probe_dev: Error - Failed to allocate device.

Other problem: LAN leds is reverse (lights when not cable
connected and vice versa)

[juhosg: move user-space support and image generation changes into
separate patches]

Signed-off-by: Cezary Jackiewicz <cezary.jackiewicz@gmail.com>
Patchwork: http://patchwork.openwrt.org/patch/2913/
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 34922
2012-12-29 17:50:28 +00:00
Gabor Juhos
8105c6badd ramips: unify eeprom file name for the built-in wireless MAC
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 34860
2012-12-22 16:09:03 +00:00
Gabor Juhos
c81b4475c9 ramips: rt3883: fix build error
The cpuport_cfg field has been renamed to port0_cfg.

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 34859
2012-12-22 13:50:47 +00:00
Gabor Juhos
b81667cb23 ramips: convert to use {e,o}hci-platform driver
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 34843
2012-12-22 12:11:08 +00:00
Gabor Juhos
e1b5eeeaa4 ramips: Add USB support for DAP-1350 platform.
It seems to work as intended, but only lightly tested.

Patch-by: Bryan Steele <brynet@gmail.com>
SIgned-off-by: Gabor Juhos <juhsog@openwrt.org>

SVN-Revision: 34811
2012-12-20 19:17:17 +00:00
John Crispin
c2ae0ec02a add support for Hauppauge Broadway
This patch introduces OpenWRT support for the base Hauppauge/PCTV Broadway
platform.  It doesn't deal with the TV tuner or transcoder at this point,
but the core functionality is working (Ethernet, wireless, USB, buttons,
LEDs, etc).

Signed-off-by: Devin Heitmueller <dheitmueller@kernellabs.com>

SVN-Revision: 34595
2012-12-10 14:13:01 +00:00
Gabor Juhos
0ec59e6235 ramips: rt305x: add kernel support for the Asus RT-N13U Wireless-N300 Router
The work has been backported from openwrt-dreambox with
some modifications & code cleanup.

* updated config-3.3
* updated config-3.6
* renamed rt-n13 to rt-n13u
* fixed mach-rt-n13u.c

[juhosg: move user-space support and image generation into separate
patches]

Signed-off-by: Amit Mendapara <mendapara.amit@gmail.com>
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 34405
2012-11-29 17:37:11 +00:00
Gabor Juhos
57b7879a4e ramips: ramips_eth: use Kconfig definition to enable debug
The Kconfig identifier to enable debugging in the driver was different from the
actually used one. Fix that.

Signed-off-by: Paul Fertser <fercerpav@gmail.com>
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 34332
2012-11-25 14:25:54 +00:00
Gabor Juhos
dd092fd10c ramips: set clk_is_20mhz for rt2x00 on RT3352/RT5350
Signed-off-by: Daniel Golle <dgolle@allnet.de>
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 34270
2012-11-20 07:19:10 +00:00