summaryrefslogtreecommitdiffstats
path: root/target/linux/ar71xx/files/drivers
Commit message (Collapse)AuthorAgeFilesLines
* ag71xx: remove rx alignment code for small packets, it seems to break ipv6 ↵nbd2010-04-261-24/+0
| | | | | | for some reason (fixes #7236) git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21166 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ar71xx: fix up alignment handlingnbd2010-04-152-26/+41
| | | | | | | | | | | - 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 git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20892 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ar71xx: ag71xx: avoid unalinged accesses when using the phy specific receive ↵juhosg2010-04-092-1/+8
| | | | | | | | | functions Cc: backfire@openwrt.org git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20751 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ar71xx: ag71xx: call the phy driver's netif_receive_skb()juhosg2010-04-092-3/+7
| | | | | | | | | | | | | 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 git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20750 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ar71xx: fix broken LAN ports on the boards with AR8216 switch (closes #7024)juhosg2010-04-033-8/+12
| | | | | | | * cc: backfire@openwrt.org git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20673 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ar71xx: update image generation and trx header parsing for the WRT160NLjuhosg2010-03-271-6/+1
| | | | | | | | * patch by Bernhard Loos * note: trailing whitespaces has been removed git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20525 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ar71xx: ag71xx: copy received packet to avoid unaligned access in the IP stackjuhosg2010-03-271-0/+19
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20506 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ar71xx: ag71xx: introduce ag71xx_has_ar8216() helperjuhosg2010-03-273-16/+17
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20505 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ar71xx: ag71xx: reorganize ag71xx_rx_packet functionjuhosg2010-03-271-6/+7
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20504 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ar71xx: ag71xx: Add netpoll supportjuhosg2010-03-271-0/+17
| | | | | | | | | | | | 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> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20503 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [ar71xx] wrt400n: lan ports don't need the ar8216 workaroundagb2010-03-261-1/+1
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20491 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ar71xx: change PHY select logic, and update phy_masksjuhosg2010-03-212-45/+31
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20358 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ar71xx: ag71xx: fix MAC address setupjuhosg2010-03-092-4/+4
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20092 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ar71xx: add NAND driver for the RB750juhosg2010-03-081-0/+360
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20054 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ar71xx: add LED driver for the RB750juhosg2010-03-081-0/+140
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20051 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ar71xx: ag71xx: move calling ag71xx_phy_stop out from spinlockjuhosg2010-03-051-3/+3
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20004 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ar71xx: ag71xx: move link update functionjuhosg2010-03-053-104/+105
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20003 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ar71xx: ag71xx: don't use dev->trans_startjuhosg2010-03-052-3/+1
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20002 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ar71xx: ag71xx: use dma_unmap_single to unmap framesjuhosg2010-03-052-5/+14
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20001 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ar71xx: ag71xx: use correct device pointer for dma_map_singlejuhosg2010-03-022-4/+6
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19951 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ar71xx: ag71xx: don't use virt_to_physjuhosg2010-03-022-14/+17
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19950 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ar71xx: ag71xx: simplify register access functionsjuhosg2010-03-021-44/+24
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19949 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ar71xx: ag71xx: use NETDEV_TX_OKjuhosg2010-03-022-4/+5
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19948 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ar71xx: enable TX/RX flow control on the AR7240juhosg2010-02-241-1/+6
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19832 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ar71xx: add missing fields to the ar71xx-ehci driverjuhosg2010-02-061-1/+7
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19534 3c298f89-4303-0410-b956-a3cf2f4a3e73
* rtl8366: make it available on all platformsjuhosg2010-01-253-2048/+0
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19329 3c298f89-4303-0410-b956-a3cf2f4a3e73
* rtl8366s: simplify mib counters handlingjuhosg2010-01-251-58/+48
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19326 3c298f89-4303-0410-b956-a3cf2f4a3e73
* rtl8366_smi: move RTL8366S driver into a separate filejuhosg2010-01-223-1713/+1756
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19279 3c298f89-4303-0410-b956-a3cf2f4a3e73
* rtl8366_smi: rename rtl8366s specific functions and definitionsjuhosg2010-01-221-175/+173
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19278 3c298f89-4303-0410-b956-a3cf2f4a3e73
* rtl8366_smi: move chip specific stuff into its own structjuhosg2010-01-221-192/+224
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19277 3c298f89-4303-0410-b956-a3cf2f4a3e73
* rtl8366_smi: separate gpio initializationjuhosg2010-01-221-25/+46
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19276 3c298f89-4303-0410-b956-a3cf2f4a3e73
* rtl8366_smi: store GPIO numbers directly in the rtl8366_smi structjuhosg2010-01-221-22/+21
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19275 3c298f89-4303-0410-b956-a3cf2f4a3e73
* rtl8366_smi: store device pointer instead of plaform_devicejuhosg2010-01-221-19/+19
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19274 3c298f89-4303-0410-b956-a3cf2f4a3e73
* rtl8366_smi: rename switch attribute handlersjuhosg2010-01-211-59/+59
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19254 3c298f89-4303-0410-b956-a3cf2f4a3e73
* rtl8366_smi: simplify rtl8366_attr_get_port_link functionjuhosg2010-01-201-52/+33
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19250 3c298f89-4303-0410-b956-a3cf2f4a3e73
* rtl8366_smi: make rtl8366_phy_config_{aneg,init} staticjuhosg2010-01-201-2/+2
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19249 3c298f89-4303-0410-b956-a3cf2f4a3e73
* rtl8366_smi: simplify rtl8366_{get,set}_port_vlan_index functionsjuhosg2010-01-201-39/+21
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19248 3c298f89-4303-0410-b956-a3cf2f4a3e73
* rtl8366_smi: minor code optimalizationsjuhosg2010-01-201-8/+7
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19247 3c298f89-4303-0410-b956-a3cf2f4a3e73
* rtl8366_smi: coding style cleanupjuhosg2010-01-201-102/+119
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19246 3c298f89-4303-0410-b956-a3cf2f4a3e73
* rtl8366_smi: add Kconfig option for the debugfs stuffjuhosg2010-01-201-7/+5
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19243 3c298f89-4303-0410-b956-a3cf2f4a3e73
* rtl8366_smi: fix error checking in rtl8366s_set_vlan_4k_entryjuhosg2010-01-201-5/+5
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19242 3c298f89-4303-0410-b956-a3cf2f4a3e73
* rtl8366_smi: fix parameter checking in rtl8366_attr_get_vlan_infojuhosg2010-01-201-1/+1
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19241 3c298f89-4303-0410-b956-a3cf2f4a3e73
* rtl8366_smi: fix return codes in rtl8366s_reset_vlanjuhosg2010-01-201-7/+11
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19240 3c298f89-4303-0410-b956-a3cf2f4a3e73
* rtl8366_smi: move variable initialization out from the loopjuhosg2010-01-201-5/+5
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19239 3c298f89-4303-0410-b956-a3cf2f4a3e73
* rtl8366_smi: fix port->flags calculation in rtl8366_get_portsjuhosg2010-01-201-1/+2
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19237 3c298f89-4303-0410-b956-a3cf2f4a3e73
* rtl8366_smi: use inline function instead of a macro on top of container_ofjuhosg2010-01-181-17/+20
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19215 3c298f89-4303-0410-b956-a3cf2f4a3e73
* rtl8366_smi: reset the vlan table when resetting the switch and use vlan ↵nbd2010-01-181-84/+48
| | | | | | get/set ports for vlan member lists git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19206 3c298f89-4303-0410-b956-a3cf2f4a3e73
* rtl8366_smi: fix excessive stack usage and buffer handling bugsnbd2010-01-181-50/+52
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19205 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ar71xx: fix return statement in the rtl8366 drivernbd2010-01-171-1/+1
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19204 3c298f89-4303-0410-b956-a3cf2f4a3e73
* rtl8366_smi: register the switch directly from the probe routinejuhosg2010-01-171-21/+36
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19202 3c298f89-4303-0410-b956-a3cf2f4a3e73