]> git.baikalelectronics.ru Git - kernel.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)
committerDavid S. Miller <davem@davemloft.net>
Mon, 13 Feb 2017 03:18:49 +0000 (22:18 -0500)
commit365877b0ac1e321c0cc6a925987d9e7e27f868e9
treea5ed62e24c779e61eda2755c95ac48ac149d3d10
parentcabf165d5e9a935de13436c144f2792059ff968b
bnxt_en: Retry failed NVM_INSTALL_UPDATE with defragmentation flag.

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>
drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c