bnxt_en: Fix devlink info's stored fw.psid version format.
authorVasundhara Volam <vasundhara-v.volam@broadcom.com>
Thu, 11 Feb 2021 07:24:24 +0000 (02:24 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 4 Mar 2021 10:37:30 +0000 (11:37 +0100)
commitfc94be935868f815a0f76563e5e6320307e475db
tree3bae7d09a5a0d1c790dd751921233038b9a372dd
parentf22cdfcc9df16eccd87a9e4ee7f50b1cf6285bc6
bnxt_en: Fix devlink info's stored fw.psid version format.

[ Upstream commit db28b6c77f4050f62599267a886b61fbd6504633 ]

The running fw.psid version is in decimal format but the stored
fw.psid is in hex format.  This can mislead the user to reset the
NIC to activate the stored version to become the running version.

Fix it to display the stored fw.psid in decimal format.

Fixes: 1388875b3916 ("bnxt_en: Add stored FW version info to devlink info_get cb.")
Signed-off-by: Vasundhara Volam <vasundhara-v.volam@broadcom.com>
Signed-off-by: Michael Chan <michael.chan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/broadcom/bnxt/bnxt_devlink.c