kernel_samsung_a53x/drivers/net/phy
Klaus Kudielka 2cbc6f3a42 net: phylink: initialize carrier state at creation
commit 02d5fdbf4f2b8c406f7a4c98fa52aa181a11d733 upstream.

Background: Turris Omnia (Armada 385); eth2 (mvneta) connected to SFP bus;
SFP module is present, but no fiber connected, so definitely no carrier.

After booting, eth2 is down, but netdev LED trigger surprisingly reports
link active. Then, after "ip link set eth2 up", the link indicator goes
away - as I would have expected it from the beginning.

It turns out, that the default carrier state after netdev creation is
"carrier ok". Some ethernet drivers explicitly call netif_carrier_off
during probing, others (like mvneta) don't - which explains the current
behaviour: only when the device is brought up, phylink_start calls
netif_carrier_off.

Fix this for all drivers using phylink, by calling netif_carrier_off in
phylink_create.

Fixes: 089381b27abe ("leds: initial support for Turris Omnia LEDs")
Cc: stable@vger.kernel.org
Suggested-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Klaus Kudielka <klaus.kudielka@gmail.com>
Reviewed-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-11-18 11:43:30 +01:00
..
mscc net: phy: mscc: macsec: reject PN update requests 2024-11-08 11:25:46 +01:00
adin.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
amd.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
aquantia.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
aquantia_hwmon.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
aquantia_main.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
at803x.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ax88796b.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
bcm-cygnus.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
bcm-phy-lib.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
bcm-phy-lib.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
bcm7xxx.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
bcm63xx.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
bcm87xx.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
bcm54140.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
bcm84881.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
broadcom.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
cicada.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
cortina.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
davicom.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dp83tc811.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dp83640.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dp83640_reg.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dp83822.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dp83848.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dp83867.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dp83869.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
et1011c.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
fixed_phy.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
icplus.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
intel-xway.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Kconfig Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
linkmode.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
lxt.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
marvell.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
marvell10g.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mdio-boardinfo.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mdio-boardinfo.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mdio_bus.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mdio_device.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mdio_devres.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
meson-gxl.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
micrel.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
microchip.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
microchip_t1.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mii_timestamper.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
national.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
nxp-tja11xx.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
phy-c45.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
phy-core.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
phy.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
phy_device.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
phy_led_triggers.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
phylink.c net: phylink: initialize carrier state at creation 2024-11-18 11:43:30 +01:00
qsemi.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
realtek.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
rockchip.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sfp-bus.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sfp.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sfp.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
smsc.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
spi_ks8995.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ste10Xp.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
swphy.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
swphy.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
teranetics.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
uPD60620.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
vitesse.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
xilinx_gmii2rgmii.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00