diff options
author | Yonglong Liu <liuyonglong@huawei.com> | 2019-08-17 10:21:17 +0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-08-18 14:21:59 -0700 |
commit | 20e79a0a2cfd15b6cfb18119f2e108396be56716 (patch) | |
tree | 940cfedc05fb1b550fba3e7a3fa12952e630b377 | |
parent | 296c9120752bab93151bd7220896dd302683a91c (diff) |
net: hns: add phy_attached_info() to the hns driver
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>
-rw-r--r-- | drivers/net/ethernet/hisilicon/hns/hns_enet.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/ethernet/hisilicon/hns/hns_enet.c b/drivers/net/ethernet/hisilicon/hns/hns_enet.c index 1545536ef769..a48396dd4ebb 100644 --- a/drivers/net/ethernet/hisilicon/hns/hns_enet.c +++ b/drivers/net/ethernet/hisilicon/hns/hns_enet.c @@ -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; } |