Skip to content

Commit 26a8985

Browse files
Jakub Kicinskidavem330
authored andcommitted
nfp: remove the probe deferral when FW not present
We use a hack to defer probe when firmware was not pre-loaded or found on disk. This helps in case users forgot to include firmware in initramfs, the driver will most likely get another shot at probing after real root is mounted. This is not for what EPROBE_DEFER is supposed to be used, and when FW is completely missing every time new device is probed NFP will reprobe spamming kernel logs. Remove this hack, users will now have to make sure the right firmware image is present in initramfs if nfp.ko is placed there or built in. Signed-off-by: Jakub Kicinski <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 53d56f7 commit 26a8985

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/ethernet/netronome/nfp/nfp_net_main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -704,7 +704,7 @@ int nfp_net_pci_probe(struct nfp_pf *pf)
704704
if (!pf->rtbl) {
705705
nfp_err(pf->cpp, "No %s, giving up.\n",
706706
pf->fw_loaded ? "symbol table" : "firmware found");
707-
return -EPROBE_DEFER;
707+
return -EINVAL;
708708
}
709709

710710
mutex_lock(&pf->lock);

0 commit comments

Comments
 (0)