Openwrt/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
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
files/firmware/lantiq
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
xway
xway_legacy
config-4.9
Makefile lantiq: switch to kernel 4.9 2017-09-05 08:43:39 +02:00
modules.mk