OSDN Git Service

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)
commit687487751814a493fba953efb9b1542b2f90614c
treed56450d1226eb89b5a0aa1bbcbddcc6a407e177e
parent869c4d5eb1e6fbda66aa790c48bdb946d71494a0
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: 1432c3f6a6ca ("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