linux-pci.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Michael S. Tsirkin" <mst@redhat.com>
To: linux-kernel@vger.kernel.org
Cc: Bjorn Helgaas <bhelgaas@google.com>,
	linux-pci@vger.kernel.org, Fam Zheng <famz@redhat.com>,
	Yinghai Lu <yhlu.kernel.send@gmail.com>,
	Rusty Russell <rusty@rustcorp.com.au>,
	virtualization@lists.linux-foundation.org
Subject: [PATCH v4 06/10] virtio_pci: drop msi_off on probe
Date: Thu, 26 Mar 2015 12:37:44 +0100	[thread overview]
Message-ID: <1427369811-11721-7-git-send-email-mst@redhat.com> (raw)
In-Reply-To: <1427369811-11721-1-git-send-email-mst@redhat.com>

pci core now disables msi on probe automatically,
drop this from device-specific code.

Cc: Bjorn Helgaas <bhelgaas@google.com>
Cc: linux-pci@vger.kernel.org
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
---
 drivers/virtio/virtio_pci_common.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/drivers/virtio/virtio_pci_common.c b/drivers/virtio/virtio_pci_common.c
index e894eb2..806bb2c 100644
--- a/drivers/virtio/virtio_pci_common.c
+++ b/drivers/virtio/virtio_pci_common.c
@@ -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)
-- 
MST


  parent reply	other threads:[~2015-03-26 11:37 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-26 11:37 [PATCH v4 00/10] pci: fix unhandled interrupt on shutdown Michael S. Tsirkin
2015-03-26 11:37 ` [PATCH v4 01/10] pci: export functions for msi/msix ctrl Michael S. Tsirkin
2015-03-26 11:37 ` [PATCH v4 02/10] pci: move pci_msi_init_pci_dev to pci.c Michael S. Tsirkin
2015-03-26 11:37 ` [PATCH v4 03/10] pci: drop some duplicate code Michael S. Tsirkin
2015-03-26 12:36   ` Yijing Wang
2015-03-26 11:37 ` [PATCH v4 04/10] pci: don't disable msi/msix at shutdown Michael S. Tsirkin
2015-03-26 11:37 ` [PATCH v4 05/10] pci: make msi/msix shutdown functions static Michael S. Tsirkin
2015-03-26 11:37 ` Michael S. Tsirkin [this message]
2015-03-26 11:37 ` [PATCH v4 07/10] ntb: drop pci_msi_off call on probe Michael S. Tsirkin
2015-03-26 11:37 ` [PATCH v4 08/10] mic: " Michael S. Tsirkin
2015-03-26 11:37 ` [PATCH v4 09/10] pci: drop pci_msi_off calls from quirks Michael S. Tsirkin
2015-03-26 11:38 ` [PATCH v4 10/10] pci: unexport pci_msi_off Michael S. Tsirkin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1427369811-11721-7-git-send-email-mst@redhat.com \
    --to=mst@redhat.com \
    --cc=bhelgaas@google.com \
    --cc=famz@redhat.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pci@vger.kernel.org \
    --cc=rusty@rustcorp.com.au \
    --cc=virtualization@lists.linux-foundation.org \
    --cc=yhlu.kernel.send@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).