linux-uconsole/drivers/net/phy
Russell King f4f8b2ec1e net: phy: initialise phydev speed and duplex sanely
[ Upstream commit a5d66f8100 ]

When a phydev is created, the speed and duplex are set to zero and
-1 respectively, rather than using the predefined SPEED_UNKNOWN and
DUPLEX_UNKNOWN constants.

There is a window at initialisation time where we may report link
down using the 0/-1 values.  Tidy this up and use the predefined
constants, so debug doesn't complain with:

"Unsupported (update phy-core.c)/Unsupported (update phy-core.c)"

when the speed and duplex settings are printed.

Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2019-12-31 16:36:15 +01:00
..
amd.c
aquantia.c
at803x.c
ax88796b.c net: phy: rename Asix Electronics PHY driver 2019-07-14 08:11:08 +02:00
bcm-cygnus.c net: phy: broadcom: Fix bcm_write_exp() 2018-05-23 15:27:01 -04:00
bcm-phy-lib.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2018-05-26 19:46:15 -04:00
bcm-phy-lib.h net: phy: broadcom: Fix bcm_write_exp() 2018-05-23 15:27:01 -04:00
bcm7xxx.c net: phy: bcm7xxx: define soft_reset for 40nm EPHY 2019-11-10 11:27:52 +01:00
bcm63xx.c
bcm87xx.c
broadcom.c net: phy: broadcom: Enable 125 MHz clock on LED4 pin for BCM54612E by default. 2018-06-05 09:43:09 -04:00
cicada.c
cortina.c
davicom.c
dp83tc811.c net: phy: DP83TC811: Fix SGMII enable/disable 2018-07-03 11:38:07 +09:00
dp83640.c net: dp83640: expire old TX-skb 2019-02-12 19:47:21 +01:00
dp83640_reg.h
dp83822.c
dp83848.c net: phy: dp83822: use BMCR_ANENABLE instead of BMSR_ANEGCAPABLE for DP83620 2018-06-10 12:38:03 -07:00
dp83867.c net: phy: dp83867: enable robust auto-mdix 2019-12-31 16:35:27 +01:00
et1011c.c
fixed_phy.c net: phy: fixed-phy: Make the error path simpler 2018-06-24 16:41:58 +09:00
icplus.c
intel-xway.c
Kconfig net: phy: rename Asix Electronics PHY driver 2019-07-14 08:11:08 +02:00
lxt.c
Makefile net: phy: rename Asix Electronics PHY driver 2019-07-14 08:11:08 +02:00
marvell.c net: phy: marvell: Fix buffer overrun with stats counters 2019-05-05 14:42:38 +02:00
marvell10g.c net: phy: marvell10g: report if the PHY fails to boot firmware 2019-06-04 08:02:32 +02:00
mdio-bcm-iproc.c
mdio-bcm-unimac.c net: phy: mdio-bcm-unimac: mark PM functions as __maybe_unused 2019-11-20 18:47:53 +01:00
mdio-bitbang.c
mdio-boardinfo.c
mdio-boardinfo.h
mdio-cavium.c
mdio-cavium.h
mdio-gpio.c net: phy: mdio-gpio: Fix working over slow can_sleep GPIOs 2018-11-23 08:17:06 +01:00
mdio-hisi-femac.c
mdio-i2c.c
mdio-i2c.h
mdio-moxart.c
mdio-mscc-miim.c
mdio-mux-bcm-iproc.c net: phy: Add pm support to Broadcom iProc mdio mux driver 2018-08-02 14:36:49 -07:00
mdio-mux-gpio.c mdio-mux-gpio: Remove VLA usage 2018-06-26 23:24:07 +09:00
mdio-mux-mmioreg.c
mdio-mux.c
mdio-octeon.c
mdio-sun4i.c
mdio-thunder.c
mdio-xgene.c
mdio-xgene.h
mdio_bus.c mdio_bus: Fix use-after-free on device_register fails 2019-03-19 13:12:40 +01:00
mdio_device.c
meson-gxl.c net: phy: meson-gxl: fix interrupt support 2019-04-03 06:26:17 +02:00
micrel.c net: phy: Micrel KSZ8061: link failure after cable connect 2019-03-10 07:17:18 +01:00
microchip.c
microchip_t1.c
mscc.c net: phy: mscc: read 'vsc8531, edge-slowdown' as an u32 2019-11-20 18:45:53 +01:00
national.c net/phy: fix DP83865 10 Mbps HDX loopback disable function 2019-10-05 13:09:27 +02:00
phy-c45.c net: phy: consider latched link-down status in polling mode 2019-04-05 22:33:10 +02:00
phy-core.c
phy.c net: phy: add helper phy_polling_mode 2018-07-25 13:41:22 -07:00
phy_device.c net: phy: initialise phydev speed and duplex sanely 2019-12-31 16:36:15 +01:00
phy_led_triggers.c net: phy: phy_led_triggers: Fix a possible null-pointer dereference in phy_led_trigger_change_speed() 2019-08-29 08:28:36 +02:00
phylink.c net: phylink: Fix flow control resolution 2019-09-19 09:09:30 +02:00
qsemi.c
realtek.c net: phy: realtek: fix RTL8201F sysfs name 2018-11-23 08:17:06 +01:00
rockchip.c
sfp-bus.c net: sfp: do not probe SFP module before we're attached 2019-02-27 10:08:58 +01:00
sfp.c net: phy: sfp: hwmon: Fix scaling of RX power 2019-07-28 08:29:24 +02:00
sfp.h net: sfp: do not probe SFP module before we're attached 2019-02-27 10:08:58 +01:00
smsc.c
spi_ks8995.c spi: Micrel eth switch: declare missing of table 2019-05-16 19:41:25 +02:00
ste10Xp.c
swphy.c
swphy.h
teranetics.c
uPD60620.c
vitesse.c net: phy: vitesse: Add support for VSC73xx 2018-07-04 11:30:02 +09:00
xilinx_gmii2rgmii.c net: phy: xgmiitorgmii: Support generic PHY status read 2019-02-23 09:07:25 +01:00