aboutsummaryrefslogtreecommitdiffstats
path: root/rust/helpers/helpers.c
diff options
context:
space:
mode:
authorPhilipp Stanner <[email protected]>2025-05-08 08:51:35 +0000
committerMichael S. Tsirkin <[email protected]>2025-05-27 14:27:53 +0000
commiteec812774d307f0beee12f7129a440ad314a544a (patch)
tree08e86d477d6a3f68038fd4e4c28eb4d3ab6db2fd /rust/helpers/helpers.c
parentvhost-scsi: log event queue write descriptors (diff)
downloadkernel-eec812774d307f0beee12f7129a440ad314a544a.tar.gz
kernel-eec812774d307f0beee12f7129a440ad314a544a.zip
vdpa/octeon_ep: Control PCI dev enabling manually
PCI region request functions such as pci_request_region() currently have the problem of becoming sometimes managed functions, if pcim_enable_device() instead of pci_enable_device() was called. The PCI subsystem wants to remove this deprecated behavior from its interfaces. octeopn_ep enables its device with pcim_enable_device() (for VF. PF uses manual management), but does so only to get automatic disablement. The driver wants to manage its PCI resources for VF manually, without devres. The easiest way not to use automatic resource management at all is by also handling device enable- and disablement manually. Replace pcim_enable_device() with pci_enable_device(). Add the necessary calls to pci_disable_device(). Signed-off-by: Philipp Stanner <[email protected]> Acked-by: Vamsi Attunuru <[email protected]> Message-Id: <[email protected]> Signed-off-by: Michael S. Tsirkin <[email protected]> Tested-by: Lei Yang <[email protected]> Signed-off-by: Philipp Stanner &lt;<a href="mailto:[email protected]" target="_blank">[email protected]</a>&gt;<br> Acked-by: Vamsi Attunuru &lt;<a href="mailto:[email protected]" target="_blank">[email protected]</a>&gt;<br>
Diffstat (limited to 'rust/helpers/helpers.c')
0 files changed, 0 insertions, 0 deletions