linux-kernelorg-stable/drivers/net/mdio
Dylan Hung 9dbe33cf37 mdio: aspeed: Fix "Link is Down" issue
The issue happened randomly in runtime.  The message "Link is Down" is
popped but soon it recovered to "Link is Up".

The "Link is Down" results from the incorrect read data for reading the
PHY register via MDIO bus.  The correct sequence for reading the data
shall be:
1. fire the command
2. wait for command done (this step was missing)
3. wait for data idle
4. read data from data register

Cc: stable@vger.kernel.org
Fixes: f160e99462 ("net: phy: Add mdio-aspeed")
Reviewed-by: Joel Stanley <joel@jms.id.au>
Signed-off-by: Dylan Hung <dylan_hung@aspeedtech.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Reviewed-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Link: https://lore.kernel.org/r/20211125024432.15809-1-dylan_hung@aspeedtech.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2021-11-25 07:44:42 -08:00
..
Kconfig
Makefile
acpi_mdio.c
fwnode_mdio.c
mdio-aspeed.c mdio: aspeed: Fix "Link is Down" issue 2021-11-25 07:44:42 -08:00
mdio-bcm-iproc.c
mdio-bcm-unimac.c
mdio-bitbang.c
mdio-cavium.c
mdio-cavium.h
mdio-gpio.c
mdio-hisi-femac.c
mdio-i2c.c
mdio-ipq4019.c net: mdio-ipq4019: Fix the error for an optional regs resource 2021-09-28 17:28:54 -07:00
mdio-ipq8064.c
mdio-moxart.c
mdio-mscc-miim.c net: mdio: mscc-miim: Fix the mdio controller 2021-09-28 13:28:46 +01:00
mdio-mux-bcm-iproc.c
mdio-mux-bcm6368.c
mdio-mux-gpio.c
mdio-mux-meson-g12a.c
mdio-mux-mmioreg.c
mdio-mux-multiplexer.c
mdio-mux.c net: mdio-mux: Handle -EPROBE_DEFER correctly 2021-08-18 10:48:52 +01:00
mdio-mvusb.c
mdio-octeon.c
mdio-sun4i.c
mdio-thunder.c
mdio-xgene.c
of_mdio.c