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)
commitbeb55fcf950f5454715df05234bb2b2914bc97ac
tree2ed3a972bc1ce0052c08f1761dd30b95c0f51341
parent1656db67233e4259281d2ac35b25f712edbbc20b
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: db28b6c77f40 ("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