bnxt_en: Fix VF PCIe link speed and width logic.
authorVasundhara Volam <vasundhara-v.volam@broadcom.com>
Sat, 14 Oct 2017 01:09:31 +0000 (21:09 -0400)
committerDavid S. Miller <davem@davemloft.net>
Sun, 15 Oct 2017 01:51:51 +0000 (18:51 -0700)
commit7ab0760f5178169c4c218852f51646ea90817d7c
tree38e74fb45b6c61b825d70599e42c9cf0390c7fbc
parente2dc9b6e38fa3919e63d6d7905da70ca41cbf908
bnxt_en: Fix VF PCIe link speed and width logic.

PCIE PCIE_EP_REG_LINK_STATUS_CONTROL register is only defined in PF
config space, so we must read it from the PF.

Fixes: 90c4f788f6c0 ("bnxt_en: Report PCIe link speed and width during driver load")
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