]> git.baikalelectronics.ru Git - kernel.git/commit
PCI: Remove reset_fn field from pci_dev
authorAmey Narkhede <ameynarkhede03@gmail.com>
Tue, 17 Aug 2021 18:04:55 +0000 (23:34 +0530)
committerBjorn Helgaas <bhelgaas@google.com>
Tue, 17 Aug 2021 22:44:38 +0000 (17:44 -0500)
commit9f69b584c3bcee53ef8e0c9572041b4883f8af6c
tree056c32ec273ed95e3bf7764740263fa77223d54b
parent9fde8949100f7ac2ac2a1ecf5242e21296fa8a64
PCI: Remove reset_fn field from pci_dev

"reset_fn" indicates whether the device supports any reset mechanism.
Remove the use of reset_fn in favor of the reset_methods array that tracks
supported reset mechanisms of a device and their ordering.

The octeon driver incorrectly used reset_fn to detect whether the device
supports FLR or not. Use pcie_reset_flr() to probe whether it supports FLR.

Co-developed-by: Alex Williamson <alex.williamson@redhat.com>
Link: https://lore.kernel.org/r/20210817180500.1253-5-ameynarkhede03@gmail.com
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Signed-off-by: Amey Narkhede <ameynarkhede03@gmail.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Alex Williamson <alex.williamson@redhat.com>
Reviewed-by: Raphael Norwitz <raphael.norwitz@nutanix.com>
drivers/net/ethernet/cavium/liquidio/lio_vf_main.c
drivers/pci/pci-sysfs.c
drivers/pci/pci.c
drivers/pci/probe.c
drivers/pci/quirks.c
drivers/pci/remove.c
include/linux/pci.h