From: Yonglong Liu Date: Fri, 16 Aug 2019 08:09:42 +0000 (+0800) Subject: net: hns3: add phy_attached_info() to the hns3 driver X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=1bef61fc7eedf6ac341fd73574c85ae199ca9aae;p=linux.git 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 Reviewed-by: Yunsheng Lin Signed-off-by: Huazhong Tan Signed-off-by: David S. Miller --- diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mdio.c b/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mdio.c index abb1b438564e9..dc4dfd4602aba 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) linkmode_clear_bit(ETHTOOL_LINK_MODE_Asym_Pause_BIT, phydev->advertising); + phy_attached_info(phydev); + return 0; }