summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2023-03-31 11:23:41 +0300
committerDavid S. Miller <davem@davemloft.net>2023-03-31 11:23:41 +0300
commit279d8ff5ec00b06a5dc9b90f3d00a5a5253aa95d (patch)
tree7e35d1b3b7ed09e85953fb360187a5001df190a7 /include/linux
parent44d807320000db0d0013372ad39b53e12d52f758 (diff)
parent6fc21a6ed5953b1dd3a41ce7be1ea57f5ef8c081 (diff)
downloadlinux-279d8ff5ec00b06a5dc9b90f3d00a5a5253aa95d.tar.xz
Merge branch 'phy-handle-fixes'
Michael Sit Wei Hong says: ==================== Fix PHY handle no longer parsing After the fixed link support was introduced, it is observed that PHY no longer attach to the MAC properly. So we introduce a helper function to determine if the MAC should expect to connect to a PHY and proceed accordingly. ==================== Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/phylink.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/phylink.h b/include/linux/phylink.h
index c492c26202b5..637698ed5cb6 100644
--- a/include/linux/phylink.h
+++ b/include/linux/phylink.h
@@ -574,6 +574,7 @@ struct phylink *phylink_create(struct phylink_config *, struct fwnode_handle *,
phy_interface_t iface,
const struct phylink_mac_ops *mac_ops);
void phylink_destroy(struct phylink *);
+bool phylink_expects_phy(struct phylink *pl);
int phylink_connect_phy(struct phylink *, struct phy_device *);
int phylink_of_phy_connect(struct phylink *, struct device_node *, u32 flags);