Commit 561d72dd authored by Alex Williamson's avatar Alex Williamson
Browse files

vfio-pci: Remove warning if try-reset fails

As indicated in the comment, this is not entirely uncommon and
causes user concern for no reason.
Signed-off-by: default avatarAlex Williamson <>
parent 80c7e8cc
......@@ -217,14 +217,8 @@ static void vfio_pci_disable(struct vfio_pci_device *vdev)
* Try to reset the device. The success of this is dependent on
* being able to lock the device, which is not always possible.
if (vdev->reset_works) {
int ret = pci_try_reset_function(pdev);
if (ret)
pr_warn("%s: Failed to reset device %s (%d)\n",
__func__, dev_name(&pdev->dev), ret);
vdev->needs_reset = false;
if (vdev->reset_works && !pci_try_reset_function(pdev))
vdev->needs_reset = false;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment