Skip to content
Commit cb4d1d62 authored by Kshitij Soni's avatar Kshitij Soni Committed by David S. Miller
Browse files

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: default avatarKshitij Soni <kshitij.soni@broadcom.com>
Signed-off-by: default avatarMichael Chan <michael.chan@broadcom.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent bac9a7e0
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment