From: Yijing Wang Date: Thu, 10 Oct 2013 12:58:11 +0000 (+0800) Subject: PCI: Fail MSI/MSI-X initialization if device is not in PCI_D0 X-Git-Tag: v3.13-rc1~95^2~3^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=869a16157d1ac92a61770be0bc1cf83fbe99d724;p=pandora-kernel.git PCI: Fail MSI/MSI-X initialization if device is not in PCI_D0 Currently, pci_enable_msi() and pci_enable_msix() return success even if the device power state is not D0. However, we don't write the MSI message to the device registers, and the registers will never be updated later. This patch makes pci_enable_msi() and pci_enable_msix() return an error instead. [bhelgaas: changelog] Signed-off-by: Yijing Wang Acked-by: Ben Hutchings Signed-off-by: Bjorn Helgaas --- Reading git-diff-tree failed