Re: [PATCH net-next] net: hns: add phy_attached_info() to the hns driver

2019-08-18 Thread David Miller
From: Yonglong Liu 
Date: Sat, 17 Aug 2019 10:21:17 +0800

> 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 
> Signed-off-by: Yonglong Liu 

Applied.


[PATCH net-next] net: hns: add phy_attached_info() to the hns driver

2019-08-16 Thread Yonglong Liu
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 
Signed-off-by: Yonglong Liu 
---
 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 1545536..a48396d 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;
 }
 
-- 
2.8.1