Commit 39ec4561 authored by Shaohua Li's avatar Shaohua Li Committed by Greg Kroah-Hartman

pcie port driver: correctly detect native PME feature

Native PME is capability of root port or root complex event collector.
It's not determined by PCI PME capability.
Signed-off-by: default avatarShaohua Li <shaohua.li@intel.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent eb003ec2
...@@ -192,9 +192,8 @@ static int get_port_device_capability(struct pci_dev *dev) ...@@ -192,9 +192,8 @@ static int get_port_device_capability(struct pci_dev *dev)
if (reg32 & SLOT_HP_CAPABLE_MASK) if (reg32 & SLOT_HP_CAPABLE_MASK)
services |= PCIE_PORT_SERVICE_HP; services |= PCIE_PORT_SERVICE_HP;
} }
/* PME Capable */ /* PME Capable - root port capability */
pos = pci_find_capability(dev, PCI_CAP_ID_PME); if (((reg16 >> 4) & PORT_TYPE_MASK) == PCIE_RC_PORT)
if (pos)
services |= PCIE_PORT_SERVICE_PME; services |= PCIE_PORT_SERVICE_PME;
pos = PCI_CFG_SPACE_SIZE; pos = PCI_CFG_SPACE_SIZE;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment