From: Jakub Kicinski Date: Sun, 19 Feb 2017 19:58:09 +0000 (-0800) Subject: nfp: report manufacturing info on load X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=64db09ed1fc2c4491cca4219850fab4d0460c952;p=openwrt%2Fstaging%2Fblogic.git 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: Jakub Kicinski Signed-off-by: David S. Miller --- diff --git a/drivers/net/ethernet/netronome/nfp/nfp_main.c b/drivers/net/ethernet/netronome/nfp/nfp_main.c index ca2c464c15df..8cda6b0e7e32 100644 --- a/drivers/net/ethernet/netronome/nfp/nfp_main.c +++ b/drivers/net/ethernet/netronome/nfp/nfp_main.c @@ -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;