[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20200708173435.16256-3-calvin.johnson@oss.nxp.com>
Date: Wed, 8 Jul 2020 23:04:32 +0530
From: Calvin Johnson <calvin.johnson@....nxp.com>
To: Jeremy Linton <jeremy.linton@....com>,
Russell King - ARM Linux admin <linux@...linux.org.uk>,
Jon <jon@...id-run.com>,
Cristi Sovaiala <cristian.sovaiala@....com>,
Ioana Ciornei <ioana.ciornei@....com>,
Andrew Lunn <andrew@...n.ch>,
Andy Shevchenko <andy.shevchenko@...il.com>,
Florian Fainelli <f.fainelli@...il.com>,
Madalin Bucur <madalin.bucur@....nxp.com>
Cc: linux.cj@...il.com, linux-acpi@...r.kernel.org,
netdev@...r.kernel.org, Calvin Johnson <calvin.johnson@....nxp.com>
Subject: [net-next PATCH v3 2/5] net/fsl: store mdiobus fwnode
Store fwnode for mdiobus in the bus structure so that it can
later be retrieved and used whenever mdiobus fwnode information
is required.
Signed-off-by: Calvin Johnson <calvin.johnson@....nxp.com>
---
Changes in v3: None
Changes in v2: None
drivers/net/ethernet/freescale/xgmac_mdio.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/net/ethernet/freescale/xgmac_mdio.c b/drivers/net/ethernet/freescale/xgmac_mdio.c
index 98be51d8b08c..8189c86d5a44 100644
--- a/drivers/net/ethernet/freescale/xgmac_mdio.c
+++ b/drivers/net/ethernet/freescale/xgmac_mdio.c
@@ -269,6 +269,8 @@ static int xgmac_mdio_probe(struct platform_device *pdev)
bus->write = xgmac_mdio_write;
bus->parent = &pdev->dev;
bus->probe_capabilities = MDIOBUS_C22_C45;
+ if (pdev->dev.fwnode)
+ bus->dev.fwnode = pdev->dev.fwnode;
snprintf(bus->id, MII_BUS_ID_SIZE, "%pa", &res->start);
/* Set the PHY base address */
--
2.17.1
Powered by blists - more mailing lists