]> 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)
commitf953f8a010629ed40ad6bbf48c076f032d066766
tree8bf9f721f7a8bb0c0e5940d48d0abc8ae4e1c83e
parent749910a040f73bd05ac498a9948d77ad77a36765
bnxt_en: Device serial number is supported only for PFs.

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

Fixes: 7091aef9334d ("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