Gabor Juhos
169d68c98c
ramips: rt305x: add dwc_otg driver
...
Based on a patch by Layne Edwards <ledwards@astrumtech.net>
SVN-Revision: 27997
13 years ago
Gabor Juhos
1ebcf03789
ramips: allow to specify port layout for the switch of the RT305x/RT3350
...
Based on a patch by Roman Yeryomin <roman@advem.lv>
SVN-Revision: 27990
13 years ago
Gabor Juhos
57122e7ccc
ramips: add SPI controller driver
...
Based on a patch by Sergiy <piratfm@gmail.com>
SVN-Revision: 27809
13 years ago
Gabor Juhos
381d7f05af
ramips: fix a section mismatch warning
...
SVN-Revision: 27382
14 years ago
Gabor Juhos
16366feafb
ramips: add watchdog driver
...
SVN-Revision: 25126
14 years ago
Gabor Juhos
b99a637795
ramips: ramips_esw: fix typos
...
Patch from #8577 .
SVN-Revision: 24898
14 years ago
Gabor Juhos
502d21dc2a
ramips: ramips_esw: add more definitions
...
SVN-Revision: 24340
14 years ago
Gabor Juhos
bf58ef7c6d
ramips: ramips_esw: add helper function to set pvid
...
SVN-Revision: 24339
14 years ago
Gabor Juhos
692d379b50
ramips: ramips_esw: add helper function to set vlan members
...
SVN-Revision: 24338
14 years ago
Gabor Juhos
f7c3f91074
ramips: ramips_esw: add helper function to set VLAN id
...
SVN-Revision: 24337
14 years ago
Gabor Juhos
0d2ad7a816
ramips: ramips_esw: introduce rt305x_esw_rmw{,_raw} function
...
SVN-Revision: 24336
14 years ago
Gabor Juhos
7b878dde4b
ramips: ramips_esw: use rt305x_esw prefix in function names
...
SVN-Revision: 24335
14 years ago
Gabor Juhos
0fcedc7bda
ramips: ramips_esw: coding style cleanup
...
SVN-Revision: 24334
14 years ago
Gabor Juhos
48e6a31812
ramips: ramips_esw: add defines for switch register offsets
...
SVN-Revision: 24333
14 years ago
Gabor Juhos
74c13f06df
ramips: ramips_esw: don't touch GPIO_PURPOSE register
...
It must have been set by the board initialization code.
SVN-Revision: 24332
14 years ago
Gabor Juhos
3b9a6adc7d
ramips: ramips_esw: convert it to be a platform driver
...
SVN-Revision: 24331
14 years ago
Gabor Juhos
889729df01
ramips: ramips_esw: move hardware initialization into a separate function
...
SVN-Revision: 24330
14 years ago
Gabor Juhos
8957f39064
ramips: ramips_esw: use a private structure for the functions
...
SVN-Revision: 24329
14 years ago
Gabor Juhos
64b16b9f34
ramips: Use NET_IP_ALIGN instead of hardcoding 2
...
Signed-off-by: Helmut Schaa <helmut.schaa@googlemail.com>
SVN-Revision: 24124
14 years ago
Gabor Juhos
624cfc5c91
ramips: DMA map the correct RX skb size
...
The skb_reserve call prior to DMA mapping the RX skb reduced the skb
data len by 2. To not allow DMA to write behind the skb we should pass
the correct skb data len to the device.
Signed-off-by: Helmut Schaa <helmut.schaa@googlemail.com>
SVN-Revision: 24123
14 years ago
Gabor Juhos
f833e399f2
ramips: Don't trigger BUG_ON due to skb allocation failure
...
Instead just drop the rx'ed frame silently and reuse the already
available buffer.
Signed-off-by: Helmut Schaa <helmut.schaa@googlemail.com>
SVN-Revision: 24122
14 years ago
Gabor Juhos
c6e4124855
ramips: Remove unnecessary skb_put
...
Signed-off-by: Helmut Schaa <helmut.schaa@googlemail.com>
SVN-Revision: 24121
14 years ago
Gabor Juhos
69355ee10e
ramips: Allow ethernet interface to be taken down and up again
...
Taking the ramips ethernet interface down and up again resulted in the
driver not receiving any frames anymore. Fix this by correctly disabling
interrupts in the hw on ifdown.
Signed-off-by: Helmut Schaa <helmut.schaa@googlemail.com>
SVN-Revision: 23243
14 years ago
Gabor Juhos
0d8c036e56
ramips: add mdio_cfg configuration for the ethernet driver
...
SVN-Revision: 22211
15 years ago
Gabor Juhos
d14e9e706e
ramips: Fix bridging in ramips ethernet driver
...
Bridging between the ramips ethernet driver and rt2800pci was somewhat
broken. Frames received by the ethernet driver which were passed to the
wifi driver for transmission were sometimes corrupted or sent out with
huge delays.
The reason for this is the missing assignment of skb->tail in the ramips
ethernet driver's rx path resulting in skb->tail pointing to skb->data.
Since skb->tail is used by mac80211 it writes into skb->data which messes
up the frames content.
Fix this by using skb_put to correctly set skb->len and skb->tail.
Signed-off-by: Helmut Schaa <helmut.schaa@googlemail.com>
SVN-Revision: 22172
15 years ago
Gabor Juhos
4267623e2e
ramips_eth: cleanup mac_address changing
...
SVN-Revision: 19464
15 years ago
Gabor Juhos
b16aaf5fac
ramips_eth: update register offsets
...
SVN-Revision: 19463
15 years ago
Gabor Juhos
72b08b729a
ramips_eth: pass sys_clk via platform_data
...
SVN-Revision: 19462
15 years ago
Gabor Juhos
9ab88ce62d
ramips_eth: add helper functions to {ed,dis}able interrupts
...
SVN-Revision: 19446
15 years ago
Gabor Juhos
224edd2575
ramips_eth: remove unnecessary typecasts
...
SVN-Revision: 19445
15 years ago
Gabor Juhos
8aceaf96be
ramips_eth: simplify tx_next computation
...
SVN-Revision: 19444
15 years ago
Gabor Juhos
21b06bd2c0
ramips_eth: simplify tx descriptor initialization
...
SVN-Revision: 19443
15 years ago
Gabor Juhos
d0fb66e3a4
ramips_eth: pass 'raeth_priv' struct directly to dma specific functions
...
SVN-Revision: 19442
15 years ago
Gabor Juhos
f0be6ab20c
ramips_eth: convert to use netdev_ops
...
SVN-Revision: 19440
15 years ago
Gabor Juhos
d37975f6b2
ramips_eth: fix invalid register writes
...
SVN-Revision: 19417
15 years ago
Gabor Juhos
43e1dd85c2
ramips_eth: move memset call out from the loop
...
SVN-Revision: 19416
15 years ago
Gabor Juhos
ea4ce3b6fd
ramips_eth: header file cleanup
...
SVN-Revision: 19415
15 years ago
Gabor Juhos
67cd819da6
ramips_eth: coding style cleanup
...
SVN-Revision: 19414
15 years ago
John Crispin
9364f83dbc
missing header file changes, and fix mtu value
...
SVN-Revision: 18220
15 years ago
John Crispin
ff5deeef08
fixes rx path for eth, spinlock it, increases buffer size, board now survives ping -f
...
SVN-Revision: 18212
15 years ago
John Crispin
135111a05b
hopefully fixes dma issues seen on ethernet driver when under high load
...
SVN-Revision: 18203
15 years ago
Gabor Juhos
bc59e3da51
ramips: move 'arch/mips/include/asm/mach-ralink/eth.h' to 'drivers/net/ramips_eth.h'
...
SVN-Revision: 18176
15 years ago
Gabor Juhos
c170980c4f
ramips: move ramips_eth_platform_data into a separate file
...
SVN-Revision: 18174
15 years ago
Gabor Juhos
b98fa096a6
ramips: request_irq prior to dma allocation, and handle the case if it fails
...
SVN-Revision: 18173
15 years ago
Gabor Juhos
08f77d2e7e
ramips: add error handling to ramips_alloc_dma
...
SVN-Revision: 18172
15 years ago
Gabor Juhos
941c1dae2c
ramips: free allocated skbs in ramips_cleanup_dma
...
SVN-Revision: 18171
15 years ago
Gabor Juhos
82cc25d5f0
ramips: add ramips_setup_dma helper to the ethernet driver
...
SVN-Revision: 18170
15 years ago
Gabor Juhos
f69b042df9
ramips: add ramips_cleanup_dma helper
...
SVN-Revision: 18169
15 years ago
Gabor Juhos
defb7c0059
ramips: remove unnecessary includes in the ethernet driver
...
SVN-Revision: 18168
15 years ago
Gabor Juhos
36cb733d4f
ramips: fix dma api usage in the ethernet driver
...
SVN-Revision: 18167
15 years ago