Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 64db09ed authored by Jakub Kicinski's avatar Jakub Kicinski Committed by David S. Miller
Browse files

nfp: report manufacturing info on load



Report card manufacturing information when driver loads.  These
identify the version of the board and its subcomponents.

Signed-off-by: default avatarJakub Kicinski <jakub.kicinski@netronome.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent a9c83f7b
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -322,6 +322,13 @@ static int nfp_pci_probe(struct pci_dev *pdev,
		goto err_disable_msix;
	}

	dev_info(&pdev->dev, "Assembly: %s%s%s-%s CPLD: %s\n",
		 nfp_hwinfo_lookup(pf->cpp, "assembly.vendor"),
		 nfp_hwinfo_lookup(pf->cpp, "assembly.partno"),
		 nfp_hwinfo_lookup(pf->cpp, "assembly.serial"),
		 nfp_hwinfo_lookup(pf->cpp, "assembly.revision"),
		 nfp_hwinfo_lookup(pf->cpp, "cpld.version"));

	err = nfp_nsp_init(pdev, pf);
	if (err)
		goto err_cpp_free;