]> git.baikalelectronics.ru Git - kernel.git/commit
bnxt_en: Clear DEFRAG flag in firmware message when retry flashing.
authorPavan Chebbi <pavan.chebbi@broadcom.com>
Mon, 11 Jan 2021 09:26:40 +0000 (04:26 -0500)
committerJakub Kicinski <kuba@kernel.org>
Wed, 13 Jan 2021 04:05:35 +0000 (20:05 -0800)
commit701f7c65d7073730a8b1305d09b4efb08748cf13
treed56450d1226eb89b5a0aa1bbcbddcc6a407e177e
parent41ce2b5a47126ddb216895eefd79381cd3bd9fde
bnxt_en: Clear DEFRAG flag in firmware message when retry flashing.

When the FW tells the driver to retry the INSTALL_UPDATE command after
it has cleared the NVM area, the driver is not clearing the previously
used ALLOWED_TO_DEFRAG flag. As a result the FW tries to defrag the NVM
area a second time in a loop and can fail the request.

Fixes: bd6a209464bf ("bnxt_en: Retry installing FW package under NO_SPACE error condition.")
Signed-off-by: Pavan Chebbi <pavan.chebbi@broadcom.com>
Signed-off-by: Michael Chan <michael.chan@broadcom.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c