OSDN Git Service

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)
commit3a707bed13b77dd7773867bee156164d730c24e0
treeafd2f2cb934827f1dfdf34a8b1c325d87cbe97d3
parent3d0615911d33b81da64d75031490859b4513a19b
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