* [PATCH for-rc] RDMA/qedr: Fix reported firmware version
@ 2019-10-07 21:07 Kamal Heib
2019-10-10 8:46 ` [EXT] " Michal Kalderon
2019-10-18 18:52 ` Doug Ledford
0 siblings, 2 replies; 3+ messages in thread
From: Kamal Heib @ 2019-10-07 21:07 UTC (permalink / raw)
To: linux-rdma
Cc: Doug Ledford, Jason Gunthorpe, Michal Kalderon, Ariel Elior, Kamal Heib
Remove spaces from the reported firmware version string.
Actual value:
$ cat /sys/class/infiniband/qedr0/fw_ver
8. 37. 7. 0
Expected value:
$ cat /sys/class/infiniband/qedr0/fw_ver
8.37.7.0
Fixes: ec72fce401c6 ("qedr: Add support for RoCE HW init")
Signed-off-by: Kamal Heib <kamalheib1@gmail.com>
---
drivers/infiniband/hw/qedr/main.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/infiniband/hw/qedr/main.c b/drivers/infiniband/hw/qedr/main.c
index 5136b835e1ba..dc71b6e16a07 100644
--- a/drivers/infiniband/hw/qedr/main.c
+++ b/drivers/infiniband/hw/qedr/main.c
@@ -76,7 +76,7 @@ static void qedr_get_dev_fw_str(struct ib_device *ibdev, char *str)
struct qedr_dev *qedr = get_qedr_dev(ibdev);
u32 fw_ver = (u32)qedr->attr.fw_ver;
- snprintf(str, IB_FW_VERSION_NAME_MAX, "%d. %d. %d. %d",
+ snprintf(str, IB_FW_VERSION_NAME_MAX, "%d.%d.%d.%d",
(fw_ver >> 24) & 0xFF, (fw_ver >> 16) & 0xFF,
(fw_ver >> 8) & 0xFF, fw_ver & 0xFF);
}
--
2.20.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* RE: [EXT] [PATCH for-rc] RDMA/qedr: Fix reported firmware version
2019-10-07 21:07 [PATCH for-rc] RDMA/qedr: Fix reported firmware version Kamal Heib
@ 2019-10-10 8:46 ` Michal Kalderon
2019-10-18 18:52 ` Doug Ledford
1 sibling, 0 replies; 3+ messages in thread
From: Michal Kalderon @ 2019-10-10 8:46 UTC (permalink / raw)
To: Kamal Heib, linux-rdma; +Cc: Doug Ledford, Jason Gunthorpe, Ariel Elior
> From: Kamal Heib <kamalheib1@gmail.com>
> Sent: Tuesday, October 8, 2019 12:08 AM
>
> External Email
>
> ----------------------------------------------------------------------
> Remove spaces from the reported firmware version string.
> Actual value:
> $ cat /sys/class/infiniband/qedr0/fw_ver
> 8. 37. 7. 0
>
> Expected value:
> $ cat /sys/class/infiniband/qedr0/fw_ver
> 8.37.7.0
>
> Fixes: ec72fce401c6 ("qedr: Add support for RoCE HW init")
> Signed-off-by: Kamal Heib <kamalheib1@gmail.com>
> ---
> drivers/infiniband/hw/qedr/main.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/infiniband/hw/qedr/main.c
> b/drivers/infiniband/hw/qedr/main.c
> index 5136b835e1ba..dc71b6e16a07 100644
> --- a/drivers/infiniband/hw/qedr/main.c
> +++ b/drivers/infiniband/hw/qedr/main.c
> @@ -76,7 +76,7 @@ static void qedr_get_dev_fw_str(struct ib_device
> *ibdev, char *str)
> struct qedr_dev *qedr = get_qedr_dev(ibdev);
> u32 fw_ver = (u32)qedr->attr.fw_ver;
>
> - snprintf(str, IB_FW_VERSION_NAME_MAX, "%d. %d. %d. %d",
> + snprintf(str, IB_FW_VERSION_NAME_MAX, "%d.%d.%d.%d",
> (fw_ver >> 24) & 0xFF, (fw_ver >> 16) & 0xFF,
> (fw_ver >> 8) & 0xFF, fw_ver & 0xFF); }
> --
> 2.20.1
Thanks,
Acked-by: Michal Kalderon <michal.kalderon@marvell.com>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH for-rc] RDMA/qedr: Fix reported firmware version
2019-10-07 21:07 [PATCH for-rc] RDMA/qedr: Fix reported firmware version Kamal Heib
2019-10-10 8:46 ` [EXT] " Michal Kalderon
@ 2019-10-18 18:52 ` Doug Ledford
1 sibling, 0 replies; 3+ messages in thread
From: Doug Ledford @ 2019-10-18 18:52 UTC (permalink / raw)
To: Kamal Heib, linux-rdma; +Cc: Jason Gunthorpe, Michal Kalderon, Ariel Elior
[-- Attachment #1: Type: text/plain, Size: 563 bytes --]
On Tue, 2019-10-08 at 00:07 +0300, Kamal Heib wrote:
> Remove spaces from the reported firmware version string.
> Actual value:
> $ cat /sys/class/infiniband/qedr0/fw_ver
> 8. 37. 7. 0
>
> Expected value:
> $ cat /sys/class/infiniband/qedr0/fw_ver
> 8.37.7.0
>
> Fixes: ec72fce401c6 ("qedr: Add support for RoCE HW init")
> Signed-off-by: Kamal Heib <kamalheib1@gmail.com>
Thanks, applied to for-rc.
--
Doug Ledford <dledford@redhat.com>
GPG KeyID: B826A3330E572FDD
Fingerprint = AE6B 1BDA 122B 23B4 265B 1274 B826 A333 0E57 2FDD
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2019-10-18 18:52 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-07 21:07 [PATCH for-rc] RDMA/qedr: Fix reported firmware version Kamal Heib
2019-10-10 8:46 ` [EXT] " Michal Kalderon
2019-10-18 18:52 ` Doug Ledford
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).