linux/drivers/net/phy
Klaus Kudielka f5617a21c7 net: phylink: initialize carrier state at creation
commit 02d5fdbf4f 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: 089381b27a ("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>
2023-11-28 17:07:18 +00:00
..
mscc net: phy: mscc: macsec: reject PN update requests 2023-10-19 23:08:53 +02:00
adin.c
adin1100.c
amd.c
aquantia_hwmon.c
aquantia_main.c
aquantia.h
at803x.c net: phy: at803x: fix the wol setting functions 2023-08-23 17:52:18 +02:00
ax88796b.c
bcm-cygnus.c
bcm-phy-lib.c
bcm-phy-lib.h net: phy: bcm7xx: Correct read from expansion register 2023-05-24 17:32:31 +01:00
bcm-phy-ptp.c
bcm7xxx.c net: phy: bcm7xxx: Add missing 16nm EPHY statistics 2023-10-25 12:03:08 +02:00
bcm63xx.c
bcm87xx.c
bcm54140.c
bcm84881.c
broadcom.c net: phy: broadcom: stub c45 read/write for 54810 2023-08-23 17:52:34 +02:00
cicada.c
cortina.c
davicom.c
dp83tc811.c
dp83td510.c net: phy: dp83td510: fix kernel stall during netboot in DP83TD510E PHY driver 2023-07-23 13:49:32 +02:00
dp83640_reg.h
dp83640.c
dp83822.c
dp83848.c
dp83867.c Revert "net: phy: dp83867: perform soft reset and retain established link" 2023-06-28 11:12:33 +02:00
dp83869.c net: phy: dp83869: fix default value for tx-/rx-internal-delay 2023-04-06 12:10:53 +02:00
et1011c.c
fixed_phy.c
icplus.c
intel-xway.c
Kconfig
linkmode.c
lxt.c
Makefile
marvell-88x2222.c
marvell.c
marvell10g.c net: phy: marvell10g: fix 88x3310 power up 2023-08-03 10:23:58 +02:00
mdio_bus.c
mdio_device.c
mdio_devres.c net: mdio: fix owner field for mdio buses registered using device-tree 2023-03-30 12:49:05 +02:00
mdio-boardinfo.c
mdio-boardinfo.h
mediatek-ge.c
meson-gxl.c net: phy: meson-gxl: use MMD access dummy stubs for GXL, internal PHY 2023-02-14 19:11:44 +01:00
micrel.c
microchip_t1.c
microchip.c net: lan78xx: fix accessing the LAN7800's internal phy specific registers from the MAC driver 2023-03-17 08:50:24 +01:00
mii_timestamper.c
motorcomm.c
mxl-gpy.c
national.c
nxp-c45-tja11xx.c net: phy: nxp-c45-tja11xx: fix unsigned long multiplication overflow 2023-04-20 12:35:13 +02:00
nxp-tja11xx.c
phy_device.c net: phy: fix IRQ-based wake-on-lan over hibernate / power off 2023-08-23 17:52:33 +02:00
phy_led_triggers.c
phy-c45.c
phy-core.c
phy.c net: phy: Ensure state transitions are processed from phy_stop() 2023-03-30 12:49:04 +02:00
phylink.c net: phylink: initialize carrier state at creation 2023-11-28 17:07:18 +00:00
qsemi.c
realtek.c
rockchip.c
sfp-bus.c net: sfp: handle 100G/25G active optical cables in sfp_parse_support 2023-09-13 09:42:25 +02:00
sfp.c net: sfp: fix state loss when updating state_hw_mask 2023-06-14 11:15:15 +02:00
sfp.h
smsc.c net: phy: smsc: bail out in lan87xx_read_status if genphy_read_status fails 2023-03-22 13:33:46 +01:00
spi_ks8995.c
ste10Xp.c
swphy.c
swphy.h
teranetics.c
uPD60620.c
vitesse.c
xilinx_gmii2rgmii.c