lkml.org 
[lkml]   [2007]   [Mar]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH] Unset msi and msix flags on pci_device_disable
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);
}


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2007-03-21 23:23    [W:0.106 / U:0.008 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site