git.openpandora.org
/
pandora-u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fd59102
)
net: ave: Switch to new U-Boot PHY API
author
Marek Vasut
<marek.vasut+renesas@mailbox.org>
Tue, 30 May 2023 22:51:20 +0000
(
00:51
+0200)
committer
Marek Vasut
<marek.vasut+renesas@mailbox.org>
Sat, 10 Jun 2023 11:34:05 +0000
(13:34 +0200)
Use new U-Boot phy_connect() API which also supports fixed PHYs.
Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
Reviewed-by: Ramon Fried <rfried.dev@gmail.com>
drivers/net/sni_ave.c
patch
|
blob
|
history
diff --git
a/drivers/net/sni_ave.c
b/drivers/net/sni_ave.c
index
014b070
..
f5a0d80
100644
(file)
--- a/
drivers/net/sni_ave.c
+++ b/
drivers/net/sni_ave.c
@@
-391,14
+391,12
@@
static int ave_mdiobus_init(struct ave_private *priv, const char *name)
static int ave_phy_init(struct ave_private *priv, void *dev)
{
struct phy_device *phydev;
- int
mask = GENMASK(31, 0),
ret;
+ int ret;
- phydev = phy_
find_by_mask(priv->bus, mask
);
+ phydev = phy_
connect(priv->bus, -1, dev, priv->phy_mode
);
if (!phydev)
return -ENODEV;
- phy_connect_dev(phydev, dev, priv->phy_mode);
-
phydev->supported &= PHY_GBIT_FEATURES;
if (priv->max_speed) {
ret = phy_set_supported(phydev, priv->max_speed);