openwrtv3/target/linux
Mathias Kresin 47be42c347 lantiq: fix xrx200 switch carrier state
In conditions where none of the switch ports is connected during boot,
the priv->port[i].link != priv->port[i].phydev->link condition is false
since both link values are equal (false). The carrier of the switch
netdev is never set to off and the link state reported by ip is UNKNOWN.

Turn the carrier off if none of the switch ports has a link, regardless
whether something has been changed. Add a check for a carrier to
prevent unnecessary calls to netif_carrier_off() if the carrier is
already off.

Based on a patch send by Martin Schiller.

Signed-off-by: Mathias Kresin <dev@kresin.me>
2017-09-08 21:48:48 +02:00
..
adm5120 treewide: populate boardname and model earlier 2017-07-15 23:13:34 +02:00
adm8668 build: fix subtarget descriptions 2016-09-04 13:35:11 +02:00
apm821xx kernel: update kernel 4.9 to version 4.9.40 2017-07-28 22:46:17 +02:00
ar7 ar7: add NULL clock fix send upstream 2017-07-29 09:24:17 +02:00
ar71xx ar71xx: WNDR4300: use the switch LED trigger on the WAN port 2017-09-05 08:43:39 +02:00
arc770 treewide: drop target board_name functions 2017-07-15 23:13:34 +02:00
archs38 treewide: drop target board_name functions 2017-07-15 23:13:34 +02:00
armvirt kernel: cleanup CONFIG_SCHED_HRTICK 2017-06-29 04:46:59 +02:00
at91 treewide: drop target board_name functions 2017-07-15 23:13:34 +02:00
ath25 kernel: cleanup CONFIG_SCHED_HRTICK 2017-06-29 04:46:59 +02:00
au1000 kernel: update kernel 3.18 to version 3.18.43 2016-10-24 20:25:14 +03:00
bcm53xx kernel: update 4.4 to 4.4.86 2017-09-05 08:43:39 +02:00
brcm47xx brcm47xx: fix switch port mapping on Asus RT-N12 and RT-N16 models 2017-07-21 08:09:45 +02:00
brcm63xx kernel: update 4.4 to 4.4.86 2017-09-05 08:43:39 +02:00
brcm2708 brcm2708: bcm2710: do not activate neon-vfpv4 manually 2017-08-26 12:35:44 +02:00
cns3xxx treewide: drop target board_name functions 2017-07-15 23:13:34 +02:00
gemini kernel: use .patch extension for all patches 2017-06-27 06:37:46 +02:00
generic kernel: update 4.4 to 4.4.86 2017-09-05 08:43:39 +02:00
imx6 imx6: add driver for temp/voltage monitoring 2017-08-18 18:47:11 +02:00
ipq806x ipq806x: Archer C2600: fix switch ports numbering 2017-08-24 08:39:12 +02:00
ixp4xx treewide: drop target board_name functions 2017-07-15 23:13:34 +02:00
kirkwood treewide: drop target board_name functions 2017-07-15 23:13:34 +02:00
lantiq lantiq: fix xrx200 switch carrier state 2017-09-08 21:48:48 +02:00
layerscape layerscape: do not add custom CFLAGS. 2017-08-26 12:36:02 +02:00
malta kernel: cleanup CONFIG_SCHED_HRTICK 2017-06-29 04:46:59 +02:00
mcs814x treewide: drop target board_name functions 2017-07-15 23:13:34 +02:00
mediatek mediatek: fix mdio schedule while atomic error 2017-09-07 10:11:45 +02:00
mpc85xx treewide: drop target board_name functions 2017-07-15 23:13:34 +02:00
mvebu kernel: update 4.4 to 4.4.83 2017-08-17 14:31:45 +02:00
mxs treewide: drop target board_name functions 2017-07-15 23:13:34 +02:00
octeon treewide: use only board_name function to get name 2017-07-15 23:13:34 +02:00
omap kernel: cleanup CONFIG_SCHED_HRTICK 2017-06-29 04:46:59 +02:00
omap24xx treewide: use only board_name function to get name 2017-07-15 23:13:34 +02:00
orion treewide: use only board_name function to get name 2017-07-15 23:13:34 +02:00
oxnas kernel: update kernel 4.4 to version 4.4.79 2017-07-28 22:46:26 +02:00
pistachio kernel: update 4.9 to 4.9.44 2017-08-17 12:34:34 +02:00
ppc40x treewide: drop target board_name functions 2017-07-15 23:13:34 +02:00
ppc44x ppc44x: mark as broken 2017-01-10 12:49:34 +01:00
ramips ramips: fix default LED configuration 2017-09-06 08:14:23 +02:00
rb532 kernel: update kernel 4.4 to version 4.4.79 2017-07-28 22:46:26 +02:00
sunxi treewide: drop target board_name functions 2017-07-15 23:13:34 +02:00
uml kernel: update kernel 4.4 to version 4.4.79 2017-07-28 22:46:26 +02:00
x86 x86: Fix xen serial console by removing conflicting PATA driver 2017-07-16 11:31:52 +02:00
xburst xburst: enable high-res timers, refresh kernel config 2017-06-07 18:31:10 +02:00
zynq treewide: use only board_name function to get name 2017-07-15 23:13:34 +02:00
Makefile