Skip to content

Commit 2a4776e

Browse files
321lipengdavem330
authored andcommitted
net: hns3: Fixes initialization of phy address from firmware
Default phy address of every port is 0. Therefore, phy address for each port need to be fetched from firmware and device initialized with fetched non-default phy address. Fixes: 6427264ef330 ("net: hns3: Add HNS3 Acceleration Engine & Compatibility Layer Support") Signed-off-by: Lipeng <lipeng321@huawei.com> Signed-off-by: Salil Mehta <salil.mehta@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 930651a commit 2a4776e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1066,6 +1066,7 @@ static int hclge_configure(struct hclge_dev *hdev)
10661066
for (i = 0; i < ETH_ALEN; i++)
10671067
hdev->hw.mac.mac_addr[i] = cfg.mac_addr[i];
10681068
hdev->hw.mac.media_type = cfg.media_type;
1069+
hdev->hw.mac.phy_addr = cfg.phy_addr;
10691070
hdev->num_desc = cfg.tqp_desc_num;
10701071
hdev->tm_info.num_pg = 1;
10711072
hdev->tm_info.num_tc = cfg.tc_num;

0 commit comments

Comments
 (0)