aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ar71xx/files/drivers/net/ethernet/atheros/ag71xx/ag71xx_ar7240.c
Commit message (Collapse)AuthorAgeFilesLines
* ag71xx: add support for port mirroringMilan Krstić2017-07-211-0/+153
| | | | | | | This exposes hardware port mirroring in ag71xx driver (e.g. TL-WR841ND) via swconfig API. Signed-off-by: Milan Krstić <milan.krstic@gmail.com>
* ar71xx/ag71xx_ar7240_get_port_link: fix off-by-one check on argument `port`Alexander Couzens2017-06-111-2/+2
| | | | | Found-by: Coverity Scan #1329901 Signed-off-by: Alexander Couzens <lynxis@fe80.eu>
* treewide: replace nbd@openwrt.org with nbd@nbd.nameFelix Fietkau2016-06-071-1/+1
| | | | Signed-off-by: Felix Fietkau <nbd@nbd.name>
* ag71xx: replace delay with sleep callsJohn Crispin2014-12-071-2/+2
| | | | | | | | | | | | I don't see that we're in an atomic context so there's no need to busy-wait. Therefore replace the delay with sleep calls. See also Documentation/timers/timers-howto.txt. It states: "In general, use of mdelay is discouraged and code should be refactored to allow for the use of msleep." Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com> SVN-Revision: 43539
* ag71xx: replace fixed PHY reset wait time in ar7240sw_setupJohn Crispin2014-12-071-1/+28
| | | | | | | | | Replace the fixed wait time of 1s with polling for BMCR_RESET to be cleared on all PHYs. Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com> SVN-Revision: 43538
* ar71xx: ag71xx: fix max frame length setup of the built-in switchesGabor Juhos2013-12-201-5/+12
| | | | | | | | | | | | | The currently used bitmask of the maximum frame length field is wrong for both models. On AR724x/AR933x the largest frame size is 2047 bytes, on the AR934x it is 16383 bytes. Make the MTU setup code model specific, and use the correct bitmask for both models. Also change the value to the maximum. Signed-off-by: Gabor Juhos <juhosg@openwrt.org> SVN-Revision: 39148
* ar71xx: ag71xx: use mdio bus name in ar7240_probe messagesGabor Juhos2013-12-171-4/+4
| | | | | | | | | | | | | | | The ar7240_probe function uses the network device name in the kernel log messages, however the name is not yet initialized when the ar7240_probe function is called. Use the mdio bus name in the messages to avoid ugly log lines like the following one: eth%d: Found an AR7240/AR9330 built-in switch Reported-by: Ronald Wahl <ronald.wahl@raritan.com> Signed-off-by: Gabor Juhos <juhosg@openwrt.org> SVN-Revision: 39116
* ar71xx: remove __dev{init,exit} annotations from kernel filesGabor Juhos2013-02-191-1/+1
| | | | | | Signed-off-by: Gabor Juhos <juhosg@openwrt.org> SVN-Revision: 35687
* ar71xx: allow unknown multicast frames to pass to the CPU on AR934xFelix Fietkau2013-02-111-2/+4
| | | | SVN-Revision: 35564
* ar71xx: allow to disable link polling on unused PHYsGabor Juhos2012-04-291-4/+11
| | | | SVN-Revision: 31533
* ar71xx: enable MIB counters in the built-in switch of the AR934xGabor Juhos2012-04-251-2/+11
| | | | SVN-Revision: 31476
* ar71xx: ag71xx: fix ARP frame reception on AR934x switch portsGabor Juhos2012-03-131-11/+35
| | | | SVN-Revision: 30926
* ar71xx: ag71xx: start aneg on switch PHYs after resetGabor Juhos2012-03-131-0/+10
| | | | SVN-Revision: 30925
* ar71xx: ag71xx: poll PHY status of all available switch portsGabor Juhos2012-03-131-1/+2
| | | | SVN-Revision: 30924
* ar71xx: ag71xx: allow to use port 5 of the AR934x built-in switchGabor Juhos2012-03-131-2/+6
| | | | SVN-Revision: 30923
* ar71xx: ag71xx: fix get_port_link callbackGabor Juhos2012-03-071-2/+8
| | | | SVN-Revision: 30841
* ar71xx: ag71xx: use the generic get_port_link implementationGabor Juhos2012-03-071-66/+0
| | | | SVN-Revision: 30840
* ar71xx: ag71xx: keep VLAN tags if VLAN is not enabledGabor Juhos2012-03-011-4/+8
| | | | SVN-Revision: 30768
* ar71xx: merge files-3.2 to filesGabor Juhos2012-02-101-0/+1194
SVN-Revision: 30405