summaryrefslogtreecommitdiff
path: root/include/linux/bitops.h
diff options
context:
space:
mode:
authorAlex Williamson <alex.williamson@redhat.com>2012-12-07 20:43:51 (GMT)
committerAlex Williamson <alex.williamson@redhat.com>2012-12-07 20:43:51 (GMT)
commit9a92c5091a42c565ede818fdf204c4f60004d0d8 (patch)
tree2b6d75e83a08b892c3500b09855feeaecc9d9f60 /include/linux/bitops.h
parent05bf3aac930752408bf38a3f070061fc5f1b9c73 (diff)
downloadlinux-fsl-qoriq-9a92c5091a42c565ede818fdf204c4f60004d0d8.tar.xz
vfio-pci: Enable device before attempting reset
Devices making use of PM reset are getting incorrectly identified as not supporting reset because pci_pm_reset() fails unless the device is in D0 power state. When first attached to vfio_pci devices are typically in an unknown power state. We can fix this by explicitly setting the power state or simply calling pci_enable_device() before attempting a pci_reset_function(). We need to enable the device anyway, so move this up in our vfio_pci_enable() function, which also simplifies the error path a bit. Note that pci_disable_device() does not explicitly set the power state, so there's no need to re-order vfio_pci_disable(). Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Diffstat (limited to 'include/linux/bitops.h')
0 files changed, 0 insertions, 0 deletions