]> git.baikalelectronics.ru Git - kernel.git/commit
bnxt_en: Return -EAGAIN if fw command returns BUSY
authorVasundhara Volam <vasundhara-v.volam@broadcom.com>
Sun, 8 Mar 2020 22:45:53 +0000 (18:45 -0400)
committerDavid S. Miller <davem@davemloft.net>
Mon, 9 Mar 2020 04:54:46 +0000 (21:54 -0700)
commit7f5f4f9d777a77ced190c52cc46c4c3dff3f0e5a
treeafd2f2cb934827f1dfdf34a8b1c325d87cbe97d3
parent4c1d960f0d70a4ae470d45bc9e65efd1130fa0d5
bnxt_en: Return -EAGAIN if fw command returns BUSY

If firmware command returns error code as HWRM_ERR_CODE_BUSY, which
means it cannot handle the command due to a conflicting command
from another function, convert it to -EAGAIN.  If it is an ethtool
operation, this error code will be returned to userspace.

Signed-off-by: Vasundhara Volam <vasundhara-v.volam@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.c