]> git.baikalelectronics.ru Git - kernel.git/commit
PCI: Add array to track reset method ordering
authorAmey Narkhede <ameynarkhede03@gmail.com>
Tue, 17 Aug 2021 18:04:54 +0000 (23:34 +0530)
committerBjorn Helgaas <bhelgaas@google.com>
Tue, 17 Aug 2021 22:44:34 +0000 (17:44 -0500)
commit9fde8949100f7ac2ac2a1ecf5242e21296fa8a64
tree59696d3cb3c85dfb967e401ebc3e538a576256c3
parentcbeffee9699a1e5083f91cc90f6dd0802617a248
PCI: Add array to track reset method ordering

Add reset_methods[] in struct pci_dev to keep track of reset mechanisms
supported by the device and their ordering.

Refactor probing and reset functions to take advantage of calling
convention of reset functions.

Co-developed-by: Alex Williamson <alex.williamson@redhat.com>
Link: https://lore.kernel.org/r/20210817180500.1253-4-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: Raphael Norwitz <raphael.norwitz@nutanix.com>
drivers/pci/pci.c
drivers/pci/pci.h
drivers/pci/probe.c
include/linux/pci.h