[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20221226071425.3895915-2-yoshihiro.shimoda.uh@renesas.com>
Date: Mon, 26 Dec 2022 16:14:23 +0900
From: Yoshihiro Shimoda <yoshihiro.shimoda.uh@...esas.com>
To: linux@...linux.org.uk, andrew@...n.ch, hkallweit1@...il.com,
davem@...emloft.net, edumazet@...gle.com, kuba@...nel.org,
pabeni@...hat.com
Cc: netdev@...r.kernel.org, linux-renesas-soc@...r.kernel.org,
Yoshihiro Shimoda <yoshihiro.shimoda.uh@...esas.com>
Subject: [PATCH net-next 1/3] net: phylink: Set host_interfaces for a non-sfp PHY
Set phy_dev->host_interfaces by pl->link_interface in
phylink_fwnode_phy_connect() for a non-sfp PHY.
Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@...esas.com>
---
drivers/net/phy/phylink.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/net/phy/phylink.c b/drivers/net/phy/phylink.c
index 09cc65c0da93..1958d6cc9ef9 100644
--- a/drivers/net/phy/phylink.c
+++ b/drivers/net/phy/phylink.c
@@ -1809,6 +1809,7 @@ int phylink_fwnode_phy_connect(struct phylink *pl,
pl->link_interface = phy_dev->interface;
pl->link_config.interface = pl->link_interface;
}
+ __set_bit(pl->link_interface, phy_dev->host_interfaces);
ret = phy_attach_direct(pl->netdev, phy_dev, flags,
pl->link_interface);
--
2.25.1
Powered by blists - more mailing lists