]> git.droids-corp.org - dpdk.git/commit
net/axgbe: use PCI root complex device to distinguish device
authorChandubabu Namburu <chandu@amd.com>
Thu, 2 Dec 2021 16:10:34 +0000 (16:10 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Mon, 17 Jan 2022 13:54:20 +0000 (14:54 +0100)
commitb0db927b5ebafac7b9aa1bacaad8d464fba7d5a6
tree3d238e7811681a5880fc268e1b7f59ab8afb8fdf
parent9fac5ca8edaebd0f6206193277876fdebb6f3eb2
net/axgbe: use PCI root complex device to distinguish device

"bus/pci: optimize bus scan" broke axgbe on V1000/R1000.
RV root complex pci device does not have any kernel driver assigned
so it is removed from pci scan list which is used in
"net/axgbe: add a HW quirk for register definitions".

Get root complex device id directly from pci sysfs instead of
pci scan list.

Fixes: 991e0b1dbc4a ("net/axgbe: add a HW quirk for register definitions")
Cc: stable@dpdk.org
Signed-off-by: Chandubabu Namburu <chandu@amd.com>
Acked-by: Selwin Sebastian <selwin.sebastian@amd.com>
drivers/net/axgbe/axgbe_ethdev.c