openwrtv4/target
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
..
imagebuilder imagebuilder: don't rewrite package list output 2017-06-17 01:24:43 +02:00
linux lantiq: fix xrx200 switch carrier state 2017-09-08 21:48:48 +02:00
sdk build: get rid of host.mk 2017-02-26 13:31:44 +01:00
toolchain build: get rid of host.mk 2017-02-26 13:31:44 +01:00
Config.in kernel: allow selecting RTC drivers on targets without explicit RTC support 2017-05-02 14:33:58 +02:00
Makefile build: make <subdir>/install opt-in, use it for target/ only 2017-02-09 13:51:35 +01:00