提交 39ec4561 编写于 作者: S Shaohua Li 提交者: 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: NShaohua Li <shaohua.li@intel.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册