提交 dc0dbda1 编写于 作者: M Michal Kalderon 提交者: Xie XiuQi

qed: RDMA - Fix the hw_ver returned in device attributes

[ Upstream commit 81af04b4 ]

The hw_ver field was initialized to zero. Return the chip revision.
This is relevant for rdma driver.
Signed-off-by: NMichal Kalderon <michal.kalderon@marvell.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
Signed-off-by: NSasha Levin <sashal@kernel.org>
Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
上级 86b847a8
...@@ -442,7 +442,7 @@ static void qed_rdma_init_devinfo(struct qed_hwfn *p_hwfn, ...@@ -442,7 +442,7 @@ static void qed_rdma_init_devinfo(struct qed_hwfn *p_hwfn,
/* Vendor specific information */ /* Vendor specific information */
dev->vendor_id = cdev->vendor_id; dev->vendor_id = cdev->vendor_id;
dev->vendor_part_id = cdev->device_id; dev->vendor_part_id = cdev->device_id;
dev->hw_ver = 0; dev->hw_ver = cdev->chip_rev;
dev->fw_ver = (FW_MAJOR_VERSION << 24) | (FW_MINOR_VERSION << 16) | dev->fw_ver = (FW_MAJOR_VERSION << 24) | (FW_MINOR_VERSION << 16) |
(FW_REVISION_VERSION << 8) | (FW_ENGINEERING_VERSION); (FW_REVISION_VERSION << 8) | (FW_ENGINEERING_VERSION);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册