]> git.baikalelectronics.ru Git - kernel.git/commit
bnxt_en: Fix asic.rev in devlink dev info command
authorMichael Chan <michael.chan@broadcom.com>
Sun, 5 Sep 2021 18:10:57 +0000 (14:10 -0400)
committerDavid S. Miller <davem@davemloft.net>
Sun, 5 Sep 2021 19:43:04 +0000 (20:43 +0100)
commit19008695208505017ea709acb8770cb906450248
tree04ef0bca025a33d9199c2839d3c8ee31eb447060
parent481d64d8695dd030a52f628b71d6a3ce481c3c09
bnxt_en: Fix asic.rev in devlink dev info command

The current asic.rev is incomplete and does not include the metal
revision.  Add the metal revision and decode the complete asic
revision into the more common and readable form (A0, B0, etc).

Fixes: d6420d9df1ff ("bnxt_en: Refactor bnxt_dl_info_get().")
Reviewed-by: Edwin Peer <edwin.peer@broadcom.com>
Reviewed-by: Somnath Kotur <somnath.kotur@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