]> git.baikalelectronics.ru Git - kernel.git/commit
bnxt_en: fix read of stored FW_PSID version on P5 devices
authorEdwin Peer <edwin.peer@broadcom.com>
Sun, 5 Sep 2021 18:10:56 +0000 (14:10 -0400)
committerDavid S. Miller <davem@davemloft.net>
Sun, 5 Sep 2021 19:43:03 +0000 (20:43 +0100)
commit481d64d8695dd030a52f628b71d6a3ce481c3c09
tree2ed3a972bc1ce0052c08f1761dd30b95c0f51341
parent438b859b755bb3b207d7c80ea8f97e0c19068f99
bnxt_en: fix read of stored FW_PSID version on P5 devices

P5 devices store NVM arrays using a different internal representation.
This implementation detail permeates into the HWRM API, requiring the
caller to explicitly index the array elements in HWRM_NVM_GET_VARIABLE
on these devices. Conversely, older devices do not support the indexed
mode of operation and require reading the raw NVM content.

Fixes: 91ab466fec8d ("bnxt_en: Fix devlink info's stored fw.psid version format.")
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_devlink.c
drivers/net/ethernet/broadcom/bnxt/bnxt_devlink.h