]> www.infradead.org Git - users/jedix/linux-maple.git/commit
PCI: Move struct pci_devres.pinned bit to struct pci_dev
authorPhilipp Stanner <pstanner@redhat.com>
Thu, 13 Jun 2024 11:50:21 +0000 (13:50 +0200)
committerKrzysztof Wilczyński <kwilczynski@kernel.org>
Wed, 10 Jul 2024 04:20:10 +0000 (04:20 +0000)
commit1b9469cf15976a7cb7378caaa8a1772e7901514d
treed09307e9385480304e1512d532da69847aeae53b
parent77f79ac8de0f490fca4f0a5f2e1e38eeee191f05
PCI: Move struct pci_devres.pinned bit to struct pci_dev

The bit describing whether the PCI device is currently pinned is stored
in struct pci_devres. To clean up and simplify the PCI devres API, it's
better if this information is stored in struct pci_dev.

This will later permit simplifying pcim_enable_device().

Move the 'pinned' boolean bit to struct pci_dev.

Restructure bits in struct pci_dev so the pm / pme fields are next to
each other.

Link: https://lore.kernel.org/r/20240613115032.29098-9-pstanner@redhat.com
Signed-off-by: Philipp Stanner <pstanner@redhat.com>
Signed-off-by: Krzysztof Wilczyński <kwilczynski@kernel.org>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/devres.c
drivers/pci/pci.h
include/linux/pci.h