openwrtv3/target/linux/lantiq
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
..
ase lantiq: add Amazon-SE subtarget 2017-06-03 21:14:07 +02:00
base-files lantiq: board.d: use auto xfer_mode as default 2017-08-06 09:22:03 +02:00
dts lantiq: fix typo in EASY80920.dtsi 2017-07-07 07:18:14 +02:00
falcon build: remove mips16 feature flag from target makefiles 2017-01-24 13:15:01 +01:00
files/firmware/lantiq move GPHY FW blobs to non versioned folder 2013-03-14 18:42:21 +00:00
image lantiq: ACMP252: clean up device modules 2017-08-29 02:21:09 +02:00
patches-4.9 lantiq: fix xrx200 switch carrier state 2017-09-08 21:48:48 +02:00
xrx200 lantiq: add support for kernel 4.9 2017-02-11 23:44:13 +01:00
xway build: remove mips16 feature flag from target makefiles 2017-01-24 13:15:01 +01:00
xway_legacy build: remove mips16 feature flag from target makefiles 2017-01-24 13:15:01 +01:00
config-4.9 kernel: cleanup CONFIG_SCHED_HRTICK 2017-06-29 04:46:59 +02:00
Makefile lantiq: switch to kernel 4.9 2017-09-05 08:43:39 +02:00
modules.mk fix i2c-lantiq module 2012-12-16 10:03:18 +00:00