net: hns3: add phy_attached_info() to the hns3 driver
authorYonglong Liu <liuyonglong@huawei.com>
Fri, 16 Aug 2019 08:09:42 +0000 (16:09 +0800)
committerDavid S. Miller <davem@davemloft.net>
Sun, 18 Aug 2019 19:59:13 +0000 (12:59 -0700)
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>
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mdio.c

index abb1b438564e9c277ed978b48366e7a0e519b802..dc4dfd4602abaf2c6019e4a71e64d96fe3d0bedb 100644 (file)
@@ -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;
 }