Gabor Juhos
3106aea40b
ar71xx: drivers/ag71xx: remove deprecated usage of IRQF_SAMPLE_RANDOM
...
Signed-off-by: Arnaud Lacombe <lacombar@gmail.com>
SVN-Revision: 23982
14 years ago
Gabor Juhos
30ef7d55fc
ar71xx: use pr_* functions in drivers
...
Signed-off-by: Arnaud Lacombe <lacombar@gmail.com>
SVN-Revision: 23981
14 years ago
Gabor Juhos
f4d5c885e4
ar71xx: return statements does not need parenthesis
...
Signed-off-by: Arnaud Lacombe <lacombar@gmail.com>
SVN-Revision: 23979
14 years ago
Gabor Juhos
e244e1c7cd
ar71xx: fix inline attribute location
...
Signed-off-by: Arnaud Lacombe <lacombar@gmail.com>
SVN-Revision: 23978
14 years ago
Gabor Juhos
acd8ad4de5
ar71xx: wrap long lines
...
(build errors has been fixed - juhosg)
Signed-off-by: Arnaud Lacombe <lacombar@gmail.com>
SVN-Revision: 23977
14 years ago
Gabor Juhos
500fac1735
ar71xx: fix whitespaces nits
...
(build error has been fixed - juhosg)
Signed-off-by: Arnaud Lacombe <lacombar@gmail.com>
SVN-Revision: 23975
14 years ago
Felix Fietkau
6656450c6d
ar71xx: fix more section mismatches
...
SVN-Revision: 23575
14 years ago
Felix Fietkau
8858d90afe
ar71xx: improve 2.6.36 compatibility. also, instead of adding a forward port patch to the 2.6.36 patches, add a backport patch to 2.6.32
...
SVN-Revision: 23574
14 years ago
Felix Fietkau
523fcf0497
ar71xx: add a new driver for the ar7240 switch using swconfig. hooks directly into the ethernet driver, as MAC resets also require switch reinitializations and the switch is part of the cpu core anyway switch only tl-wr741nd (and other devices using this board file, such as tl-wr841nd) over to using this by default, as other devices are still untested fixes #7563
...
SVN-Revision: 22675
14 years ago
Felix Fietkau
a27ea45e76
ar71xx: only reinit the ethernet MAC at .open() on ar724x for now, until we've figured out what part of it causes the issue described in #7563
...
SVN-Revision: 22075
15 years ago
Felix Fietkau
15b209d09f
ag71xx: reset the hardware during open(), this improves recovery from tx timeouts on ar724x considerably
...
SVN-Revision: 22055
15 years ago
Felix Fietkau
89da22d1ea
ag71xx: fix a memory corruption bug that happens if you flood the interface with packets while it's being brought down fixes boot time crashes under load reported by matteo
...
SVN-Revision: 22054
15 years ago
Felix Fietkau
7966004d99
ag71xx: remove rx alignment code for small packets, it seems to break ipv6 for some reason ( fixes #7236 )
...
SVN-Revision: 21166
15 years ago
Felix Fietkau
1c0e751391
ar71xx: fix up alignment handling
...
- on ar724x, rx buffers can be aligned with an offset of 2, which keeps the ip header aligned
- alignment offset is only added if the ar8216 workaround is not active and the phy driver does not advertise its own packet alignment
- ar71xx and ar91xx can not handle rx alignment offsets, however taking a hit on unaligned exceptions seems to have less overhead than re-aligning the data for large packets
- use memmove to re-align small packets, if necessary
tested on ar9132, ar7240 and ar7242 based devices without ar8216 headers
SVN-Revision: 20892
15 years ago
Gabor Juhos
4c29a2c263
ar71xx: ag71xx: avoid unalinged accesses when using the phy specific receive functions
...
Cc: backfire@openwrt.org
SVN-Revision: 20751
15 years ago
Gabor Juhos
4a28844d80
ar71xx: ag71xx: call the phy driver's netif_receive_skb()
...
Ag71xx needs to call the phy's netif_receive_skb() to allow phy drivers
to mangle rx packets. This patch fixes it.
This fixes the header mangling of the AR8216 driver.
Signed-off-by: Jonas Gorski <jonas.gorski+openwrt@gmail.com>
Cc:backfire@openwrt.org
SVN-Revision: 20750
15 years ago
Gabor Juhos
c874513cfa
ar71xx: fix broken LAN ports on the boards with AR8216 switch ( closes #7024 )
...
* cc: backfire@openwrt.org
SVN-Revision: 20673
15 years ago
Gabor Juhos
b7ca043240
ar71xx: ag71xx: copy received packet to avoid unaligned access in the IP stack
...
SVN-Revision: 20506
15 years ago
Gabor Juhos
f9acf8ada1
ar71xx: ag71xx: introduce ag71xx_has_ar8216() helper
...
SVN-Revision: 20505
15 years ago
Gabor Juhos
200db5ebb5
ar71xx: ag71xx: reorganize ag71xx_rx_packet function
...
SVN-Revision: 20504
15 years ago
Gabor Juhos
245775a49f
ar71xx: ag71xx: Add netpoll support
...
This patch adds support for polling interrupts, used by
netconsole and the likes.
Tested on d-link dir-615 C1 using netconsole.
Signed-off-by: Pat Erley <pat-lkml@erley.org>
SVN-Revision: 20503
15 years ago
Andy Boyett
681054333e
wrt400n: lan ports don't need the ar8216 workaround
...
SVN-Revision: 20491
15 years ago
Gabor Juhos
9a1031ce6d
ar71xx: change PHY select logic, and update phy_masks
...
SVN-Revision: 20358
15 years ago
Gabor Juhos
2a818f388a
ar71xx: ag71xx: fix MAC address setup
...
SVN-Revision: 20092
15 years ago
Gabor Juhos
2702ae4e8f
ar71xx: ag71xx: move calling ag71xx_phy_stop out from spinlock
...
SVN-Revision: 20004
15 years ago
Gabor Juhos
a4bccded57
ar71xx: ag71xx: move link update function
...
SVN-Revision: 20003
15 years ago
Gabor Juhos
eacf9a7614
ar71xx: ag71xx: don't use dev->trans_start
...
SVN-Revision: 20002
15 years ago
Gabor Juhos
ba288eeb84
ar71xx: ag71xx: use dma_unmap_single to unmap frames
...
SVN-Revision: 20001
15 years ago
Gabor Juhos
0e4eaea770
ar71xx: ag71xx: use correct device pointer for dma_map_single
...
SVN-Revision: 19951
15 years ago
Gabor Juhos
84823e1477
ar71xx: ag71xx: don't use virt_to_phys
...
SVN-Revision: 19950
15 years ago
Gabor Juhos
4a987d6008
ar71xx: ag71xx: simplify register access functions
...
SVN-Revision: 19949
15 years ago
Gabor Juhos
e157281c5d
ar71xx: ag71xx: use NETDEV_TX_OK
...
SVN-Revision: 19948
15 years ago
Gabor Juhos
1612fd447d
ar71xx: enable TX/RX flow control on the AR7240
...
SVN-Revision: 19832
15 years ago
Gabor Juhos
49c4df5487
rtl8366: make it available on all platforms
...
SVN-Revision: 19329
15 years ago
Gabor Juhos
97b983c8b9
rtl8366s: simplify mib counters handling
...
SVN-Revision: 19326
15 years ago
Gabor Juhos
2b5ba9073f
rtl8366_smi: move RTL8366S driver into a separate file
...
SVN-Revision: 19279
15 years ago
Gabor Juhos
46b0e6643a
rtl8366_smi: rename rtl8366s specific functions and definitions
...
SVN-Revision: 19278
15 years ago
Gabor Juhos
08055fd6d1
rtl8366_smi: move chip specific stuff into its own struct
...
SVN-Revision: 19277
15 years ago
Gabor Juhos
de751af190
rtl8366_smi: separate gpio initialization
...
SVN-Revision: 19276
15 years ago
Gabor Juhos
a1247d2f83
rtl8366_smi: store GPIO numbers directly in the rtl8366_smi struct
...
SVN-Revision: 19275
15 years ago
Gabor Juhos
ab278275ee
rtl8366_smi: store device pointer instead of plaform_device
...
SVN-Revision: 19274
15 years ago
Gabor Juhos
edfa82ab60
rtl8366_smi: rename switch attribute handlers
...
SVN-Revision: 19254
15 years ago
Gabor Juhos
7aefde9f66
rtl8366_smi: simplify rtl8366_attr_get_port_link function
...
SVN-Revision: 19250
15 years ago
Gabor Juhos
83fb9f73e1
rtl8366_smi: make rtl8366_phy_config_{aneg,init} static
...
SVN-Revision: 19249
15 years ago
Gabor Juhos
cad07a09c1
rtl8366_smi: simplify rtl8366_{get,set}_port_vlan_index functions
...
SVN-Revision: 19248
15 years ago
Gabor Juhos
50849c6cff
rtl8366_smi: minor code optimalizations
...
SVN-Revision: 19247
15 years ago
Gabor Juhos
3e6b3ea088
rtl8366_smi: coding style cleanup
...
SVN-Revision: 19246
15 years ago
Gabor Juhos
5e5451a54d
rtl8366_smi: add Kconfig option for the debugfs stuff
...
SVN-Revision: 19243
15 years ago
Gabor Juhos
0d48b043b1
rtl8366_smi: fix error checking in rtl8366s_set_vlan_4k_entry
...
SVN-Revision: 19242
15 years ago
Gabor Juhos
0296b24f80
rtl8366_smi: fix parameter checking in rtl8366_attr_get_vlan_info
...
SVN-Revision: 19241
15 years ago