]> 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)
commitd643d761f41559e0134e17236e642bb3b8d920c5
treed56450d1226eb89b5a0aa1bbcbddcc6a407e177e
parent0a04abb859990b7fd1efe505c784b853511a6f44
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: 1c8c94c78fea ("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