From 8d000e0cc66d965bf1af469659ee8de949f85dee Mon Sep 17 00:00:00 2001 From: Yonglong Liu Date: Tue, 6 Aug 2019 09:37:07 +0800 Subject: [PATCH] net: hns: add phy_attached_info() to the hns driver driver inclusion category: bugfix bugzilla: NA CVE: NA This patch add the call to phy_attached_info() to the hns driver to identify which exact PHY drivers and models is in use. Feature or Bugfix:Bugfix Signed-off-by: Yonglong Liu Reviewed-by: linyunsheng Reviewed-by: Yang Yingliang Signed-off-by: Yang Yingliang --- drivers/net/ethernet/hisilicon/hns/hns_enet.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/ethernet/hisilicon/hns/hns_enet.c b/drivers/net/ethernet/hisilicon/hns/hns_enet.c index af053bc01d40..b9047bcb2aca 100644 --- a/drivers/net/ethernet/hisilicon/hns/hns_enet.c +++ b/drivers/net/ethernet/hisilicon/hns/hns_enet.c @@ -1204,6 +1204,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; } -- GitLab