[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20200111094939.030296312@linuxfoundation.org>
Date: Sat, 11 Jan 2020 10:51:03 +0100
From: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
To: linux-kernel@...r.kernel.org
Cc: Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
stable@...r.kernel.org, Heiko Stuebner <heiko@...ech.de>,
"kernelci.org bot" <bot@...nelci.org>,
Jose Abreu <Jose.Abreu@...opsys.com>,
Sriram Dash <Sriram.dash@...sung.com>,
Patrice Chotard <patrice.chotard@...com>,
Neil Armstrong <narmstrong@...libre.com>,
Florian Fainelli <f.fainelli@...il.com>,
"David S. Miller" <davem@...emloft.net>
Subject: [PATCH 5.4 144/165] net: stmmac: Fixed link does not need MDIO Bus
From: Jose Abreu <Jose.Abreu@...opsys.com>
[ Upstream commit da29f2d84bd10234df570b7f07cbd0166e738230 ]
When using fixed link we don't need the MDIO bus support.
Reported-by: Heiko Stuebner <heiko@...ech.de>
Reported-by: kernelci.org bot <bot@...nelci.org>
Fixes: d3e014ec7d5e ("net: stmmac: platform: Fix MDIO init for platforms without PHY")
Signed-off-by: Jose Abreu <Jose.Abreu@...opsys.com>
Acked-by: Sriram Dash <Sriram.dash@...sung.com>
Tested-by: Patrice Chotard <patrice.chotard@...com>
Tested-by: Heiko Stuebner <heiko@...ech.de>
Acked-by: Neil Armstrong <narmstrong@...libre.com>
Reviewed-by: Florian Fainelli <f.fainelli@...il.com>
Tested-by: Florian Fainelli <f.fainelli@...il> # Lamobo R1 (fixed-link + MDIO sub node for roboswitch).
Signed-off-by: David S. Miller <davem@...emloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
---
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" },
{},
Powered by blists - more mailing lists