bnxt_en: Fix handling FRAG_ERR when NVM_INSTALL_UPDATE cmd fails
authorVasundhara Volam <vasundhara-v.volam@broadcom.com>
Sat, 17 Aug 2019 21:04:49 +0000 (17:04 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 27 Jan 2020 13:51:05 +0000 (14:51 +0100)
commit9b259f1ed0489e23d33868437666140d48f561c4
tree2e6c91f5165ff28ca7f77b59bb558a23ae74d583
parentc636fdf43c3b5b9120778205672e596af7288ef1
bnxt_en: Fix handling FRAG_ERR when NVM_INSTALL_UPDATE cmd fails

[ Upstream commit dd2ebf3404c7c295014bc025dea23960960ceb1a ]

If FW returns FRAG_ERR in response error code, driver is resending the
command only when HWRM command returns success. Fix the code to resend
NVM_INSTALL_UPDATE command with DEFRAG install flags, if FW returns
FRAG_ERR in its response error code.

Fixes: cb4d1d626145 ("bnxt_en: Retry failed NVM_INSTALL_UPDATE with defragmentation flag enabled.")
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_ethtool.c