]> git.baikalelectronics.ru Git - kernel.git/commit
PCI: Split out next_ari_fn() from next_fn()
authorNiklas Schnelle <schnelle@linux.ibm.com>
Tue, 28 Jun 2022 14:30:57 +0000 (16:30 +0200)
committerBjorn Helgaas <bhelgaas@google.com>
Fri, 22 Jul 2022 21:05:00 +0000 (16:05 -0500)
commiteaf2ec5b35948afe3d70ef0d0dad11c037882308
treed206169ce426ed2b26fe3274bf513ad1c5444559
parent57b53217667574e59cceec15f47fd5d13edaee76
PCI: Split out next_ari_fn() from next_fn()

In commit 0499fc4320fd ("PCI: Consolidate "next-function" functions") the
next_fn() function subsumed the traditional and ARI-based next function
determination. This got rid of some needlessly complex function pointer
handling but also reduced the separation between these very different
methods of finding the next function. With the next_fn() cleaned up a bit
we can re-introduce this separation by moving out the ARI handling while
sticking with direct function calls.

Link: https://lore.kernel.org/r/20220628143100.3228092-3-schnelle@linux.ibm.com
Signed-off-by: Niklas Schnelle <schnelle@linux.ibm.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Pierre Morel <pmorel@linux.ibm.com>
drivers/pci/probe.c