]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/pci/pci.c
PCI: add D3 power state avoidance quirk
[linux-2.6-omap-h63xx.git] / drivers / pci / pci.c
index c95f77d657187b464cd9d8324b2d83d9796089bf..0a3d856833fcaf669482eb19cf7cbe73a91f45d9 100644 (file)
@@ -572,6 +572,10 @@ int pci_set_power_state(struct pci_dev *dev, pci_power_t state)
                if (!ret)
                        pci_update_current_state(dev);
        }
+       /* This device is quirked not to be put into D3, so
+          don't put it in D3 */
+       if (state == PCI_D3hot && (dev->dev_flags & PCI_DEV_FLAGS_NO_D3))
+               return 0;
 
        error = pci_raw_set_power_state(dev, state);