This is a note to let you know that I've just added the patch titled net: stmmac: Fixed link does not need MDIO Bus to the 5.4-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The filename of the patch is: net-stmmac-fixed-link-does-not-need-mdio-bus.patch and it can be found in the queue-5.4 subdirectory. If you, or anyone else, feels it should not be added to the stable tree, please let <stable@xxxxxxxxxxxxxxx> know about it. >From foo@baz Sat 11 Jan 2020 09:13:20 AM CET From: Jose Abreu <Jose.Abreu@xxxxxxxxxxxx> Date: Tue, 7 Jan 2020 13:35:42 +0100 Subject: net: stmmac: Fixed link does not need MDIO Bus From: Jose Abreu <Jose.Abreu@xxxxxxxxxxxx> [ Upstream commit da29f2d84bd10234df570b7f07cbd0166e738230 ] When using fixed link we don't need the MDIO bus support. Reported-by: Heiko Stuebner <heiko@xxxxxxxxx> Reported-by: kernelci.org bot <bot@xxxxxxxxxxxx> Fixes: d3e014ec7d5e ("net: stmmac: platform: Fix MDIO init for platforms without PHY") Signed-off-by: Jose Abreu <Jose.Abreu@xxxxxxxxxxxx> Acked-by: Sriram Dash <Sriram.dash@xxxxxxxxxxx> Tested-by: Patrice Chotard <patrice.chotard@xxxxxx> Tested-by: Heiko Stuebner <heiko@xxxxxxxxx> Acked-by: Neil Armstrong <narmstrong@xxxxxxxxxxxx> Reviewed-by: Florian Fainelli <f.fainelli@xxxxxxxxx> Tested-by: Florian Fainelli <f.fainelli@gmail> # Lamobo R1 (fixed-link + MDIO sub node for roboswitch). Signed-off-by: David S. Miller <davem@xxxxxxxxxxxxx> Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx> --- drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c +++ b/drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c @@ -320,7 +320,7 @@ out: static int stmmac_dt_phy(struct plat_stmmacenet_data *plat, struct device_node *np, struct device *dev) { - bool mdio = false; + bool mdio = !of_phy_is_fixed_link(np); static const struct of_device_id need_mdio_ids[] = { { .compatible = "snps,dwc-qos-ethernet-4.10" }, {}, Patches currently in stable-queue which might be from Jose.Abreu@xxxxxxxxxxxx are queue-5.4/net-stmmac-always-arm-tx-timer-at-end-of-transmissio.patch queue-5.4/net-stmmac-determine-earlier-the-size-of-rx-buffer.patch queue-5.4/net-stmmac-rx-buffer-size-must-be-16-byte-aligned.patch queue-5.4/net-stmmac-fixed-link-does-not-need-mdio-bus.patch queue-5.4/net-stmmac-selftests-needs-to-check-the-number-of-mu.patch queue-5.4/net-stmmac-do-not-accept-invalid-mtu-values.patch queue-5.4/net-stmmac-xgmac-clear-previous-rx-buffer-size.patch