projects
/
oweals
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
762ee52
)
drivers: net: fsl_enetc: set phydev->node
author
Michael Walle
<michael@walle.cc>
Sat, 26 Oct 2019 00:39:11 +0000
(
02:39
+0200)
committer
Priyanka Jain
<priyanka.jain@nxp.com>
Fri, 8 Nov 2019 05:53:01 +0000
(11:23 +0530)
The saved ofnode is used by some PHY drivers to access the device tree
node of the PHY.
Signed-off-by: Michael Walle <michael@walle.cc>
Reviewed-by: Alex Marginean <alexm.osslist@gmail.com>
Reviewed-by: Priyanka Jain <priyanka.jain@nxp.com>
drivers/net/fsl_enetc.c
patch
|
blob
|
history
diff --git
a/drivers/net/fsl_enetc.c
b/drivers/net/fsl_enetc.c
index e7c5062c39ac7998d4cd4a9814e243bdad648ea9..86b80c89410f289596c20a92f5e0a301eacee364 100644
(file)
--- a/
drivers/net/fsl_enetc.c
+++ b/
drivers/net/fsl_enetc.c
@@
-248,6
+248,7
@@
static void enetc_start_phy(struct udevice *dev)
supported = GENMASK(6, 0); /* speeds up to 1G & AN */
phy->advertising = phy->supported & supported;
+ phy->node = phy_node;
phy_config(phy);
phy_startup(phy);
}