net/bnxt: fix device readiness check
authorKalesh AP <kalesh-anakkur.purayil@broadcom.com>
Thu, 4 Mar 2021 09:07:27 +0000 (14:37 +0530)
committerAjit Khaparde <ajit.khaparde@broadcom.com>
Fri, 12 Mar 2021 06:13:27 +0000 (07:13 +0100)
commit3972281f47b2cc0cf844698885f0e6b4228c0975
tree2ce756b77e0d560ac36c62bb8060c582383c4f7c
parent4fb6ab3f866d64e72d4bfd1a15ce5127f8fb0043
net/bnxt: fix device readiness check

Fix HWRM_VER_GET command to handle DEV_NOT_RDY state.

Driver should fail probe if the device is not ready.
Conversely, the HWRM_VER_GET poll after reset can safely
retry until the existing timeout is exceeded.

Fixes: 804e746c7b73 ("net/bnxt: add hardware resource manager init code")
Cc: stable@dpdk.org
Signed-off-by: Kalesh AP <kalesh-anakkur.purayil@broadcom.com>
Reviewed-by: Somnath Kotur <somnath.kotur@broadcom.com>
Reviewed-by: Randy Schacher <stuart.schacher@broadcom.com>
Reviewed-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
drivers/net/bnxt/bnxt_hwrm.c