Commit a0f75f9d495b3905b4c658c1d813a127f558a350

Authored by Bjorn Helgaas

Merge branch 'pci/misc' into next

* pci/misc:
  MAINTAINERS: Add ACPI folks for ACPI-related things under drivers/pci
  PCI: Add CircuitCo vendor ID and subsystem ID
  PCI: Use pdev->pm_cap instead of pci_find_capability(..,PCI_CAP_ID_PM)

Showing 4 changed files Side-by-side Diff

... ... @@ -242,6 +242,9 @@
242 242 F: drivers/pnp/pnpacpi/
243 243 F: include/linux/acpi.h
244 244 F: include/acpi/
  245 +F: drivers/pci/*acpi*
  246 +F: drivers/pci/*/*acpi*
  247 +F: drivers/pci/*/*/*acpi*
245 248  
246 249 ACPI FAN DRIVER
247 250 M: Zhang Rui <rui.zhang@intel.com>
... ... @@ -805,7 +805,7 @@
805 805 {
806 806 pci_power_t ret;
807 807  
808   - if (!pci_find_capability(dev, PCI_CAP_ID_PM))
  808 + if (!dev->pm_cap)
809 809 return PCI_D0;
810 810  
811 811 ret = platform_pci_choose_state(dev);
drivers/pci/quirks.c
... ... @@ -1834,7 +1834,6 @@
1834 1834 u16 command, pmcsr;
1835 1835 u8 __iomem *csr;
1836 1836 u8 cmd_hi;
1837   - int pm;
1838 1837  
1839 1838 switch (dev->device) {
1840 1839 /* PCI IDs taken from drivers/net/e100.c */
... ... @@ -1872,9 +1871,8 @@
1872 1871 * Check that the device is in the D0 power state. If it's not,
1873 1872 * there is no point to look any further.
1874 1873 */
1875   - pm = pci_find_capability(dev, PCI_CAP_ID_PM);
1876   - if (pm) {
1877   - pci_read_config_word(dev, pm + PCI_PM_CTRL, &pmcsr);
  1874 + if (dev->pm_cap) {
  1875 + pci_read_config_word(dev, dev->pm_cap + PCI_PM_CTRL, &pmcsr);
1878 1876 if ((pmcsr & PCI_PM_CTRL_STATE_MASK) != PCI_D0)
1879 1877 return;
1880 1878 }
include/linux/pci_ids.h
... ... @@ -2476,6 +2476,9 @@
2476 2476  
2477 2477 #define PCI_VENDOR_ID_ASMEDIA 0x1b21
2478 2478  
  2479 +#define PCI_VENDOR_ID_CIRCUITCO 0x1cc8
  2480 +#define PCI_SUBSYSTEM_ID_CIRCUITCO_MINNOWBOARD 0x0001
  2481 +
2479 2482 #define PCI_VENDOR_ID_TEKRAM 0x1de1
2480 2483 #define PCI_DEVICE_ID_TEKRAM_DC290 0xdc29
2481 2484