Skip to content

Commit

Permalink
virtio_pci: drop pci_msi_off() call during probe
Browse files Browse the repository at this point in the history
The PCI core now disables MSI and MSI-X for all devices during enumeration
regardless of CONFIG_PCI_MSI.  Remove device-specific code to disable
MSI/MSI-X.

Signed-off-by: Michael S. Tsirkin <[email protected]>
Signed-off-by: Bjorn Helgaas <[email protected]>
  • Loading branch information
mstsirkin authored and bjorn-helgaas committed May 7, 2015
1 parent 1851617 commit c1f4d88
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions drivers/virtio/virtio_pci_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -501,9 +501,6 @@ static int virtio_pci_probe(struct pci_dev *pci_dev,
INIT_LIST_HEAD(&vp_dev->virtqueues);
spin_lock_init(&vp_dev->lock);

/* Disable MSI/MSIX to bring device to a known good state. */
pci_msi_off(pci_dev);

/* enable the device */
rc = pci_enable_device(pci_dev);
if (rc)
Expand Down

0 comments on commit c1f4d88

Please sign in to comment.