diff options
author | Michal Kalderon <michal.kalderon@marvell.com> | 2019-07-25 13:59:55 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-07-26 14:05:41 -0700 |
commit | 81af04b432fdfabcdbd2c06be2ee647e3ca41a22 (patch) | |
tree | 81d2f955eca766a9b570dc89fb9e3305187cf787 /drivers | |
parent | 9a07406b00cdc6ec689dc142540739575c717f3c (diff) | |
download | linux-81af04b432fdfabcdbd2c06be2ee647e3ca41a22.tar.bz2 |
qed: RDMA - Fix the hw_ver returned in device attributes
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/ethernet/qlogic/qed/qed_rdma.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/qlogic/qed/qed_rdma.c b/drivers/net/ethernet/qlogic/qed/qed_rdma.c index 17c64e43d6c3..158ac0738911 100644 --- a/drivers/net/ethernet/qlogic/qed/qed_rdma.c +++ b/drivers/net/ethernet/qlogic/qed/qed_rdma.c @@ -442,7 +442,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); |