Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Yonglong Liu and committed by
David S. Miller
20e79a0a 296c9120

+2
+2
drivers/net/ethernet/hisilicon/hns/hns_enet.c
··· 1182 1182 if (unlikely(ret)) 1183 1183 return -ENODEV; 1184 1184 1185 + phy_attached_info(phy_dev); 1186 + 1185 1187 return 0; 1186 1188 } 1187 1189