]> www.infradead.org Git - users/jedix/linux-maple.git/commit
bnxt_en: Retry failed NVM_INSTALL_UPDATE with defragmentation flag.
authorKshitij Soni <kshitij.soni@broadcom.com>
Mon, 13 Feb 2017 00:18:11 +0000 (19:18 -0500)
committerChuck Anderson <chuck.anderson@oracle.com>
Mon, 6 Mar 2017 21:35:36 +0000 (13:35 -0800)
commit03bae0ad78d546ad0313812e81828a338fbcd8cb
tree5149f9995638a39c36cce37ddc293b2358f63148
parent176cab91c93e176f5cc54d5656dadf42366defaf
bnxt_en: Retry failed NVM_INSTALL_UPDATE with defragmentation flag.

Orabug: 25645429

If the HWRM_NVM_INSTALL_UPDATE command fails with the error code
NVM_INSTALL_UPDATE_CMD_ERR_CODE_FRAG_ERR, retry the command with
a new flag to allow defragmentation.  Since we are checking the
response for error code, we also need to take the mutex until
we finish reading the response.

Signed-off-by: Kshitij Soni <kshitij.soni@broadcom.com>
Signed-off-by: Michael Chan <michael.chan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
(cherry picked from commit cb4d1d6261453677feb54e7a09c23fc7648dd6bc)
Signed-off-by: Brian Maly <brian.maly@oracle.com>
drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c