[+cc Amey as he is workingo on a larger refactor of the reset functions] Hi, > Previously we used pci_probe_reset_function() to probe whether a function > can be reset and use __pci_reset_function_locked() to perform a function > reset. These two functions have lots of common lines. > > Factor the two functions and reduce the redundancy. [...] I wanted to bring the following thread to your attention as you are working on the same code that it's being talked about there in the on-going conversation, see: https://lore.kernel.org/linux-pci/20210312173452.3855-1-ameynarkhede03@xxxxxxxxx/ I wonder if there would be some overlap, etc. Krzysztof