PCI: Add managed pcim_intx()
authorPhilipp Stanner <pstanner@redhat.com>
Thu, 13 Jun 2024 11:50:23 +0000 (13:50 +0200)
committerBjorn Helgaas <bhelgaas@google.com>
Thu, 11 Jul 2024 21:20:01 +0000 (16:20 -0500)
commit25216afc9db53d85dc648aba8fb7f6d31f2c8731
treeea85ef3f53dd087c958bd1ad80ce95cd9d8cae1d
parent2c3e842f125fc1c57cd2824840d04e401c0542c2
PCI: Add managed pcim_intx()

pci_intx() is a "hybrid" function, i.e., it is managed if
pcim_enable_device() has been called, but unmanaged otherwise.

Add pcim_intx(), which is always managed, and implement pci_intx() using
it.

Remove the now-unused struct pci_devres.orig_intx and .restore_intx and
find_pci_dr().

Link: https://lore.kernel.org/r/20240613115032.29098-11-pstanner@redhat.com
Signed-off-by: Philipp Stanner <pstanner@redhat.com>
[kwilczynski: squashed in
https://lore.kernel.org/r/426645d40776198e0fcc942f4a6cac4433c7a9aa.camel@redhat.com
to fix problem reported and tested by Ashish Kalra <Ashish.Kalra@amd.com>:
https://lore.kernel.org/r/20240708214656.4721-1-Ashish.Kalra@amd.com
https://lore.kernel.org/r/8c4634e9-4f02-4c54-9c89-d75e2f4bf026@amd.com/]
Signed-off-by: Krzysztof WilczyƄski <kwilczynski@kernel.org>
[bhelgaas: commit log]
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/devres.c
drivers/pci/pci.c
drivers/pci/pci.h