net: hns3: skip mac speed and duplex modification checking for fibre port support autoneg
driver inclusion
category: bugfix
bugzilla: NA
CVE: NA
For some boards the fibre port supports autoneg, and the firmware
handles the autoneg speed and user speed separately.
step 1: user disables autoneg, and set the mac speed A, the driver
will update the mac speed to A.
step 2: user enables autoneg, and the negotiated speed is B, the
driver will update the mac speed to B.
step 3: user disable the autoneg, and set the mac speed B, the
driver will discard the set mac speed B command, because the speed
is not changed by step 2. But for firmware, it will change the mac
speed to A by step 1 when received disable autoneg command.
In this case, the port can't link up.
This patch fixes it by skip mac speed and duplex modification
checking for fibre port support autoneg.
Fixes: 22f48e24a23d ("net: hns3: add autoneg and change speed support for fibre port")
Signed-off-by: NJian Shen <shenjian15@huawei.com>
Reviewed-by: NPeng Li <lipeng321@huawei.com>
Reviewed-by: NZhong Zhaohui <zhongzhaohui@huawei.com>
Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
Showing
想要评论请 注册 或 登录