提交 827fe0df 编写于 作者: S shenjian 提交者: Xie XiuQi

net: hns3: remove redundant fixup callback

driver inclusion
category: bugfix
bugzilla: NA
CVE: NA

It's unnecessary to register a fixup callback to set dev_flags before
connecting phy, and unregister it when disconnecting it. We just
set dev_flags directly before connecting phy.
Signed-off-by: Nshenjian (K) <shenjian15@huawei.com>
Reviewed-by: Nlipeng <lipeng321@huawei.com>
Reviewed-by: NHanjun Guo <guohanjun@huawei.com>
Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
上级 0d42e026
......@@ -193,6 +193,10 @@ int hclge_mac_connect_phy(struct hnae3_handle *handle)
if (!phydev)
return 0;
#ifdef MARVELL_PHY_M1510_HNS3_LEDS
phydev->dev_flags |= MARVELL_PHY_M1510_HNS3_LEDS;
#endif
#ifdef HAS_LINK_MODE_OPS
linkmode_clear_bit(ETHTOOL_LINK_MODE_FIBRE_BIT, phydev->supported);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册