From: Thomas Meyer <thomas@m3y3r.de>
To: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
"Eric W. Biederman" <ebiederm@xmission.com>
Subject: [PATCH] Unset msi and msix flags on pci_device_disable
Date: Wed, 21 Mar 2007 23:22:10 +0100 [thread overview]
Message-ID: <4601B012.6070802@m3y3r.de> (raw)
The commit f5f2b13129a6541debf8851bae843cbbf48298b7 broke suspend/resume
to disk two or more times in a row. This patches fixes the problem:
This patch should be included in 2.6.21
Signed-off-by: Thomas Meyer <thomas@m3y3r.de>
diff --git a/drivers/pci/pci.c b/drivers/pci/pci.c
index d3eab05..d7f8f96 100644
--- a/drivers/pci/pci.c
+++ b/drivers/pci/pci.c
@@ -886,7 +886,9 @@ pci_disable_device(struct pci_dev *dev)
pci_write_config_word(dev, PCI_COMMAND, pci_command);
}
dev->is_busmaster = 0;
-
+ dev->msi_enabled=0;
+ dev->msix_enabled=0;
+
pcibios_disable_device(dev);
}
next reply other threads:[~2007-03-21 22:20 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-03-21 22:22 Thomas Meyer [this message]
2007-03-22 5:23 ` [PATCH] Unset msi and msix flags on pci_device_disable Eric W. Biederman
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=4601B012.6070802@m3y3r.de \
--to=thomas@m3y3r.de \
--cc=ebiederm@xmission.com \
--cc=linux-kernel@vger.kernel.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.