* [PATCH] qed: RDMA - Fix the hw_ver returned in device attributes
@ 2019-07-25 10:59 Michal Kalderon
2019-07-26 21:05 ` David Miller
0 siblings, 1 reply; 2+ messages in thread
From: Michal Kalderon @ 2019-07-25 10:59 UTC (permalink / raw)
To: michal.kalderon, ariel.elior, davem; +Cc: netdev
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>
---
drivers/net/ethernet/qlogic/qed/qed_rdma.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/ethernet/qlogic/qed/qed_rdma.c b/drivers/net/ethernet/qlogic/qed/qed_rdma.c
index f900fde448db..7110cae384ee 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);
--
2.14.5
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] qed: RDMA - Fix the hw_ver returned in device attributes
2019-07-25 10:59 [PATCH] qed: RDMA - Fix the hw_ver returned in device attributes Michal Kalderon
@ 2019-07-26 21:05 ` David Miller
0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2019-07-26 21:05 UTC (permalink / raw)
To: michal.kalderon; +Cc: ariel.elior, netdev
From: Michal Kalderon <michal.kalderon@marvell.com>
Date: Thu, 25 Jul 2019 13:59:55 +0300
> 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>
Applied.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2019-07-26 21:05 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-07-25 10:59 [PATCH] qed: RDMA - Fix the hw_ver returned in device attributes Michal Kalderon
2019-07-26 21:05 ` David Miller
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.