WSL2-Linux-Kernel/drivers/net/phy
Florian Fainelli bf8bfc4336 net: phy: broadcom: Fix brcm_fet_config_init()
A Broadcom AC201 PHY (same entry as 5241) would be flagged by the
Broadcom UniMAC MDIO controller as not completing the turn around
properly since the PHY expects 65 MDC clock cycles to complete a write
cycle, and the MDIO controller was only sending 64 MDC clock cycles as
determined by looking at a scope shot.

This would make the subsequent read fail with the UniMAC MDIO controller
command field having MDIO_READ_FAIL set and we would abort the
brcm_fet_config_init() function and thus not probe the PHY at all.

After issuing a software reset, wait for at least 1ms which is well
above the 1us reset delay advertised by the datasheet and issue a dummy
read to let the PHY turn around the line properly. This read
specifically ignores -EIO which would be returned by MDIO controllers
checking for the line being turned around.

If we have a genuine reaad failure, the next read of the interrupt
status register would pick it up anyway.

Fixes: d7a2ed9248 ("broadcom: Add AC131 phy support")
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Link: https://lore.kernel.org/r/20220324232438.1156812-1-f.fainelli@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2022-03-25 16:59:21 -07:00
..
mscc Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2022-03-17 13:56:58 -07:00
Kconfig net: phy: Kconfig: micrel_phy: fix dependency issue 2022-03-15 12:28:56 +01:00
Makefile
adin.c
amd.c
aquantia.h
aquantia_hwmon.c
aquantia_main.c phy: make phy_set_max_speed() *void* 2022-01-31 11:30:56 +00:00
at803x.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2022-02-03 17:36:16 -08:00
ax88796b.c
bcm-cygnus.c
bcm-phy-lib.c
bcm-phy-lib.h
bcm7xxx.c
bcm63xx.c
bcm87xx.c
bcm54140.c
bcm84881.c
broadcom.c net: phy: broadcom: Fix brcm_fet_config_init() 2022-03-25 16:59:21 -07:00
cicada.c
cortina.c
davicom.c
dp83tc811.c
dp83640.c dp83640: Use generic ptp_msg_is_sync() function 2022-03-07 11:31:34 +00:00
dp83640_reg.h
dp83822.c net: phy: DP83822: clear MISR2 register to disable interrupts 2022-03-10 12:24:40 -08:00
dp83848.c
dp83867.c
dp83869.c
et1011c.c
fixed_phy.c Revert "net: phy: fixed_phy: Fix NULL vs IS_ERR() checking in __fixed_phy_register" 2022-01-03 18:59:16 -08:00
icplus.c
intel-xway.c
linkmode.c
lxt.c
marvell-88x2222.c
marvell.c net: phy: marvell: Fix invalid comparison in the resume and suspend functions 2022-03-14 15:08:37 -07:00
marvell10g.c
mdio-boardinfo.c
mdio-boardinfo.h
mdio_bus.c net: mdio: Demote probed message to debug print 2022-01-03 19:05:39 -08:00
mdio_device.c
mdio_devres.c
mediatek-ge.c net: phy: mediatek: remove PHY mode check on MT7531 2022-02-15 14:21:01 +00:00
meson-gxl.c net: phy: meson-gxl: improve link-up behavior 2022-03-10 14:57:02 -08:00
micrel.c net: phy: micrel: Move netif_rx() outside of IRQ-off section. 2022-03-07 11:40:41 +00:00
microchip.c
microchip_t1.c net: phy: lan87xx: use genphy_read_master_slave in read_status 2022-03-08 13:34:33 +01:00
mii_timestamper.c
motorcomm.c
mxl-gpy.c
national.c
nxp-c45-tja11xx.c net: phy: Use netif_rx(). 2022-03-06 11:05:31 +00:00
nxp-tja11xx.c
phy-c45.c
phy-core.c phy: make phy_set_max_speed() *void* 2022-01-31 11:30:56 +00:00
phy.c
phy_device.c net: phy: exported the genphy_read_master_slave function 2022-03-08 13:34:33 +01:00
phy_led_triggers.c
phylink.c net: phylink: use %pe for printing errors 2022-03-02 22:02:21 -08:00
qsemi.c
realtek.c
rockchip.c
sfp-bus.c net: sfp: add 2500base-X quirk for Lantech SFP module 2022-03-15 11:41:20 +01:00
sfp.c net: sfp: use %pe for printing errors 2022-03-02 22:03:34 -08:00
sfp.h
smsc.c
spi_ks8995.c spi: make remove callback a void function 2022-02-09 13:00:45 +00:00
ste10Xp.c
swphy.c
swphy.h
teranetics.c
uPD60620.c
vitesse.c
xilinx_gmii2rgmii.c