summaryrefslogtreecommitdiffstats
path: root/drivers/leds/leds-cobalt-qube.c
diff options
context:
space:
mode:
authorYijing Wang <wangyijing@huawei.com>2013-10-10 14:58:11 +0200
committerBjorn Helgaas <bhelgaas@google.com>2013-10-29 20:30:52 +0100
commit869a16157d1ac92a61770be0bc1cf83fbe99d724 (patch)
tree6595952359cfac3ef0ae83c6f5caa97700b2b22a /drivers/leds/leds-cobalt-qube.c
parentx86/PCI: Coalesce multiple overlapping host bridge windows (diff)
downloadlinux-869a16157d1ac92a61770be0bc1cf83fbe99d724.tar.xz
linux-869a16157d1ac92a61770be0bc1cf83fbe99d724.zip
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 <wangyijing@huawei.com> Acked-by: Ben Hutchings <bhutchings@solarflare.com> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'drivers/leds/leds-cobalt-qube.c')
0 files changed, 0 insertions, 0 deletions