RDMA/bnxt_re: Add support for query firmware version
authorSelvin Xavier <selvin.xavier@broadcom.com>
Thu, 11 Jan 2018 16:52:08 +0000 (11:52 -0500)
committerDoug Ledford <dledford@redhat.com>
Wed, 17 Jan 2018 14:56:17 +0000 (09:56 -0500)
commit2fc68543f2ab8dbee1048bb2275b065eef90e19d
tree8dc73a64a260302af33ef4685fcf9bcec52e945c
parentccd9d0d3dffcd783a1a626337146b79f4c4ee53d
RDMA/bnxt_re: Add support for query firmware version

The device now reports firmware version thus, removing
the hard coded values of the FW version string and
redundant fw_rev hook from sysfs. Adding code to query
firmware version from underlying device and report it
through the kernel verb to get firmware version string.

Signed-off-by: Selvin Xavier <selvin.xavier@broadcom.com>
Signed-off-by: Devesh Sharma <devesh.sharma@broadcom.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/bnxt_re/ib_verbs.c
drivers/infiniband/hw/bnxt_re/ib_verbs.h
drivers/infiniband/hw/bnxt_re/main.c
drivers/infiniband/hw/bnxt_re/qplib_rcfw.c
drivers/infiniband/hw/bnxt_re/qplib_sp.c
drivers/infiniband/hw/bnxt_re/qplib_sp.h