lkml.org 
[lkml]   [2020]   [Jun]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 5.7 031/265] bnxt_en: Read VPD info only for PFs
    Date
    From: Vasundhara Volam <vasundhara-v.volam@broadcom.com>

    [ Upstream commit c55e28a8b43fcd7dc71868bd165705bc7741a7ca ]

    Virtual functions does not have VPD information. This patch modifies
    calling bnxt_read_vpd_info() only for PFs and avoids an unnecessary
    error log.

    Fixes: a0d0fd70fed5 ("bnxt_en: Read partno and serialno of the board from VPD")
    Signed-off-by: Vasundhara Volam <vasundhara-v.volam@broadcom.com>
    Signed-off-by: Michael Chan <michael.chan@broadcom.com>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    ---
    drivers/net/ethernet/broadcom/bnxt/bnxt.c | 3 ++-
    1 file changed, 2 insertions(+), 1 deletion(-)

    diff --git a/drivers/net/ethernet/broadcom/bnxt/bnxt.c b/drivers/net/ethernet/broadcom/bnxt/bnxt.c
    index c202c2a3d140d..b6fb5a1709c01 100644
    --- a/drivers/net/ethernet/broadcom/bnxt/bnxt.c
    +++ b/drivers/net/ethernet/broadcom/bnxt/bnxt.c
    @@ -11884,7 +11884,8 @@ static int bnxt_init_one(struct pci_dev *pdev, const struct pci_device_id *ent)
    dev->ethtool_ops = &bnxt_ethtool_ops;
    pci_set_drvdata(pdev, dev);

    - bnxt_vpd_read_info(bp);
    + if (BNXT_PF(bp))
    + bnxt_vpd_read_info(bp);

    rc = bnxt_alloc_hwrm_resources(bp);
    if (rc)
    --
    2.25.1
    \
     
     \ /
      Last update: 2020-06-30 00:10    [W:4.026 / U:0.364 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site