Commit 9a6f8237 authored by Jian Shen's avatar Jian Shen Committed by Yang Yingliang
Browse files

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: 22f48e24 ("net: hns3: add autoneg and change speed support for fibre port")

Signed-off-by: default avatarJian Shen <shenjian15@huawei.com>
Reviewed-by: default avatarPeng Li <lipeng321@huawei.com>
Reviewed-by: default avatarZhong Zhaohui <zhongzhaohui@huawei.com>
Signed-off-by: default avatarYang Yingliang <yangyingliang@huawei.com>
parent 0a616c6a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment