diff options
author | Yonglong Liu <liuyonglong@huawei.com> | 2019-08-16 04:09:42 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-08-18 15:59:13 -0400 |
commit | 1bef61fc7eedf6ac341fd73574c85ae199ca9aae (patch) | |
tree | 4f6cafc881315bdae615a397e417013a87acd2ca | |
parent | 20981a1e6b708536493e10ba90016ae28a9f3749 (diff) |
net: hns3: add phy_attached_info() to the hns3 driver
This patch adds the call to phy_attached_info() to the hns3 driver
to identify which exact PHY drivers and models is in use.
Signed-off-by: Yonglong Liu <liuyonglong@huawei.com>
Reviewed-by: Yunsheng Lin <linyunsheng@huawei.com>
Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mdio.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mdio.c b/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mdio.c index abb1b438564e..dc4dfd4602ab 100644 --- a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mdio.c +++ b/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mdio.c | |||
@@ -231,6 +231,8 @@ int hclge_mac_connect_phy(struct hnae3_handle *handle) | |||
231 | linkmode_clear_bit(ETHTOOL_LINK_MODE_Asym_Pause_BIT, | 231 | linkmode_clear_bit(ETHTOOL_LINK_MODE_Asym_Pause_BIT, |
232 | phydev->advertising); | 232 | phydev->advertising); |
233 | 233 | ||
234 | phy_attached_info(phydev); | ||
235 | |||
234 | return 0; | 236 | return 0; |
235 | } | 237 | } |
236 | 238 | ||