aboutsummaryrefslogtreecommitdiff
path: root/sys/compat/linuxkpi/common/src/linux_devres.c
diff options
context:
space:
mode:
authorBjoern A. Zeeb <bz@FreeBSD.org>2021-01-28 16:23:19 +0000
committerBjoern A. Zeeb <bz@FreeBSD.org>2021-01-28 16:23:19 +0000
commit1fac2cb4d6e5cfa1b8ff689213011b0fe077ffa7 (patch)
tree5502183de7d1eb177f208223a8289db382827370 /sys/compat/linuxkpi/common/src/linux_devres.c
parent4abbf816bf06aa70200c5d1d976dd61c2752bdaf (diff)
downloadsrc-1fac2cb4d6e5cfa1b8ff689213011b0fe077ffa7.tar.gz
src-1fac2cb4d6e5cfa1b8ff689213011b0fe077ffa7.zip
LinuxKPI: enhance PCI bits for DRM
In pci_domain_nr() directly return the domain which got set in lkpifill_pci_dev() in all cases. This was missed between D27550 and 105a37cac76b971f7a94409fbdc4f508a7e97fa0 . In order to implement pci_dev_put() harmonize further code (which was started in the aforementioned commit) and add kobj related bits (through the now common lkpifill_pci_dev() code) to the DRM specific calls without adding the DRM allocated pci devices to the pci_devices list. Add a release for the lkpinew_pci_dev() (DRM) case so freeing will work. This allows the DRM created devices to use the normal kobj/refcount logic and work with, e.g., pci_dev_put(). (For a slightly more detailed code walk see the review). Sponsored-by: The FreeBSD Foundation Obtained-from: bz_iwlwifi (partially) MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D28188
Diffstat (limited to 'sys/compat/linuxkpi/common/src/linux_devres.c')
0 files changed, 0 insertions, 0 deletions