On 9/25/2018 4:46 PM, Bjorn Helgaas wrote:
Looking to have more control between the users of the API vs. what the API can do internally. The new reset_type tells the PCI core about the bounds of the request.I'd like to know why you chose PCI_RESET_ANY for these drivers.
PCI_RESET_ANY was chosen to match the existing behavior in the code. Current pci_reset_function() tries all reset types one by one until it returns 0. By specifying PCI_RESET_ANY, we get the same thing.