]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitdc611fae5610b67498828b51ce932cd2bec5aa66
tree8bf9f721f7a8bb0c0e5940d48d0abc8ae4e1c83e
parent35e37cf90407809bb99ed43605c052ef7ea868c0
bnxt_en: Device serial number is supported only for PFs.

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

Fixes: 397645a5e0de ("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