Skip to content

Commit 75b247b

Browse files
IronShendavem330
authored andcommitted
net: hns3: fix incorrect capability bit display for copper port
Currently, the FEC capability bit is default set for device version V2. It's incorrect for the copper port. Eventhough it doesn't make the nic work abnormal, but the capability information display in debugfs may confuse user. So clear it when driver get the port type inforamtion. Fixes: 433ccce ("net: hns3: use FEC capability queried from firmware") Signed-off-by: Jian Shen <shenjian15@huawei.com> Signed-off-by: Jijie Shao <shaojijie@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent ac92c0a commit 75b247b

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11663,6 +11663,7 @@ static int hclge_init_ae_dev(struct hnae3_ae_dev *ae_dev)
1166311663
goto err_msi_irq_uninit;
1166411664

1166511665
if (hdev->hw.mac.media_type == HNAE3_MEDIA_TYPE_COPPER) {
11666+
clear_bit(HNAE3_DEV_SUPPORT_FEC_B, ae_dev->caps);
1166611667
if (hnae3_dev_phy_imp_supported(hdev))
1166711668
ret = hclge_update_tp_port_info(hdev);
1166811669
else

0 commit comments

Comments
 (0)