nfp: wait for board state before talking to the NSP
[platform/kernel/linux-rpi.git] / drivers / net / ethernet / netronome / nfp / nfp_net_main.c
index 5abb9ba..ff373ac 100644 (file)
 
 #define NFP_PF_CSR_SLICE_SIZE  (32 * 1024)
 
-static int nfp_is_ready(struct nfp_pf *pf)
-{
-       const char *cp;
-       long state;
-       int err;
-
-       cp = nfp_hwinfo_lookup(pf->hwinfo, "board.state");
-       if (!cp)
-               return 0;
-
-       err = kstrtol(cp, 0, &state);
-       if (err < 0)
-               return 0;
-
-       return state == 15;
-}
-
 /**
  * nfp_net_get_mac_addr() - Get the MAC address.
  * @pf:       NFP PF handle
@@ -725,12 +708,6 @@ int nfp_net_pci_probe(struct nfp_pf *pf)
 
        INIT_WORK(&pf->port_refresh_work, nfp_net_refresh_vnics);
 
-       /* Verify that the board has completed initialization */
-       if (!nfp_is_ready(pf)) {
-               nfp_err(pf->cpp, "NFP is not ready for NIC operation.\n");
-               return -EINVAL;
-       }
-
        if (!pf->rtbl) {
                nfp_err(pf->cpp, "No %s, giving up.\n",
                        pf->fw_loaded ? "symbol table" : "firmware found");