mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-04 18:19:28 +09:00
qed: RDMA - Fix the hw_ver returned in device attributes
[ Upstream commit 81af04b432 ]
The hw_ver field was initialized to zero. Return the chip revision.
This is relevant for rdma driver.
Signed-off-by: Michal Kalderon <michal.kalderon@marvell.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
ccaf6f8477
commit
9fe87b7fbc
@@ -398,7 +398,7 @@ static void qed_rdma_init_devinfo(struct qed_hwfn *p_hwfn,
|
||||
/* Vendor specific information */
|
||||
dev->vendor_id = cdev->vendor_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) |
|
||||
(FW_REVISION_VERSION << 8) | (FW_ENGINEERING_VERSION);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user