bnxt_en: Device serial number is supported only for PFs.
authorVasundhara Volam <vasundhara-v.volam@broadcom.com>
Wed, 22 May 2019 23:12:57 +0000 (19:12 -0400)
committerDavid S. Miller <davem@davemloft.net>
Thu, 23 May 2019 01:02:14 +0000 (18:02 -0700)
commit2e9217d1e8b72dde2c7e3e2338cc1830f68cb58d
tree8bf9f721f7a8bb0c0e5940d48d0abc8ae4e1c83e
parentd629522e1d66561f38e5c8d4f52bb6d254ec0707
bnxt_en: Device serial number is supported only for PFs.

Don't read DSN on VFs that do not have the PCI capability.

Fixes: 03213a996531 ("bnxt: move bp->switch_id initialization to PF probe")
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>
drivers/net/ethernet/broadcom/bnxt/bnxt.c