RDMA/bnxt_re: Avoid the command wait if firmware is inactive
authorKashyap Desai <kashyap.desai@broadcom.com>
Fri, 9 Jun 2023 11:01:43 +0000 (04:01 -0700)
committerLeon Romanovsky <leon@kernel.org>
Mon, 12 Jun 2023 07:10:16 +0000 (10:10 +0300)
commit3022cc15119733cebaef05feddb5d87b9e401c0e
tree310a7cbdf5f80f28e7f4671597eba0e869dab393
parent8cf1d12ad56beb73d2439ccf334b7148e71de58e
RDMA/bnxt_re: Avoid the command wait if firmware is inactive

Add a check to avoid waiting if driver already detects a
FW timeout. Return success for resource destroy in case
the device is detached. Add helper function to map timeout
error code to success.

Signed-off-by: Kashyap Desai <kashyap.desai@broadcom.com>
Signed-off-by: Selvin Xavier <selvin.xavier@broadcom.com>
Link: https://lore.kernel.org/r/1686308514-11996-7-git-send-email-selvin.xavier@broadcom.com
Signed-off-by: Leon Romanovsky <leon@kernel.org>
drivers/infiniband/hw/bnxt_re/qplib_rcfw.c