diff options
author | Edwin Peer <edwin.peer@broadcom.com> | 2021-08-29 10:35:04 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-08-30 11:35:04 +0300 |
commit | bbf33d1d9805fc3a59ded637ab6555fb20edb5d2 (patch) | |
tree | eaba40b9de98d290768b089fe849056760543d8d /tools | |
parent | 3c10ed497fa87780a9ee8c31092373e5f1e20f64 (diff) | |
download | linux-bbf33d1d9805fc3a59ded637ab6555fb20edb5d2.tar.xz |
bnxt_en: update all firmware calls to use the new APIs
The conversion follows this general pattern for most of the calls:
1. The input message is changed from a stack variable initialized
using bnxt_hwrm_cmd_hdr_init() to a pointer allocated and intialized
using hwrm_req_init().
2. If we don't need to read the firmware response, the hwrm_send_message()
call is replaced with hwrm_req_send().
3. If we need to read the firmware response, the mutex lock is replaced
by hwrm_req_hold() to hold the response. When the response is read, the
mutex unlock is replaced by hwrm_req_drop().
If additional DMA buffers are needed for firmware response data, the
hwrm_req_dma_slice() is used instead of calling dma_alloc_coherent().
Some minor refactoring is also done while doing these conversions.
v2: Fix unintialized variable warnings in __bnxt_hwrm_get_tx_rings()
and bnxt_approve_mac()
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>
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions