]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
net: hns: add phy_attached_info() to the hns driver
authorYonglong Liu <liuyonglong@huawei.com>
Sat, 17 Aug 2019 02:21:17 +0000 (10:21 +0800)
committerDavid S. Miller <davem@davemloft.net>
Sun, 18 Aug 2019 21:21:59 +0000 (14:21 -0700)
This patch adds the call to phy_attached_info() to the hns driver
to identify which exact PHY drivers is in use.

Suggested-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: Yonglong Liu <liuyonglong@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns/hns_enet.c

index 1545536ef76914d0634dfc0c9863d680b3bfcb5b..a48396dd4ebb2f7c08029eab99d20f3a386fe7a0 100644 (file)
@@ -1182,6 +1182,8 @@ int hns_nic_init_phy(struct net_device *ndev, struct hnae_handle *h)
        if (unlikely(ret))
                return -ENODEV;
 
+       phy_attached_info(phy_dev);
+
        return 0;
 }