]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
[PATCH] PCI: disable msi mode in pci_disable_device
authorShaohua Li <shaohua.li@intel.com>
Fri, 26 May 2006 02:58:27 +0000 (10:58 +0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 21 Jun 2006 19:00:00 +0000 (12:00 -0700)
commit99dc804d9bcc2c53f4c20c291bf4e185312a1a0c
tree4798f39176d0f8fe06de446d74cf94ba48423aa9
parent020d502488bebdbc1b2c2828d996f04e563f082a
[PATCH] PCI: disable msi mode in pci_disable_device

Brice said the pci_save_msi_state breaks his driver in his special usage
(not in suspend/resume), as pci_save_msi_state will disable msi mode. In
his usage, pci_save_state will be called at runtime, and later (after
the device operates for some time and has an error) pci_restore_state
will be called.
In another hand, suspend/resume needs disable msi mode, as device should
stop working completely. This patch try to workaround this issue.
Drivers are expected call pci_disable_device in suspend time after
pci_save_state.

Signed-off-by: Shaohua Li <shaohua.li@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/pci/msi.c
drivers/pci/pci.c
include/linux/pci.h