]> git.baikalelectronics.ru Git - kernel.git/commit
bnxt_en: Refactor the HWRM_VER_GET firmware calls
authorEdwin Peer <edwin.peer@broadcom.com>
Sun, 29 Aug 2021 07:34:57 +0000 (03:34 -0400)
committerDavid S. Miller <davem@davemloft.net>
Mon, 30 Aug 2021 08:35:04 +0000 (09:35 +0100)
commit7b370ad77392455dccd77c121b48bc9f76a14cbe
tree8dcdf8f3e21d413f5b3a1acc7090f623ae236b83
parent6c172d59ad79d3973e393ba49d819ed6f0417202
bnxt_en: Refactor the HWRM_VER_GET firmware calls

Refactor the code so that __bnxt_hwrm_ver_get() does not call
bnxt_hwrm_do_send_msg() directly.  The new APIs will not expose this
internal call.  Add a new bnxt_hwrm_poll() to poll the HWRM_VER_GET
firmware call silently.  The other bnxt_hwrm_ver_get() function will
send the HWRM_VER_GET message directly with error logs enabled.

Signed-off-by: Edwin Peer <edwin.peer@broadcom.com>
Signed-off-by: Michael Chan <michael.chan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnxt/bnxt.c