On Thu, May 10, 2018 at 09:51:49PM +0200, Lukas Wunner wrote: > On Thu, May 10, 2018 at 09:28:36PM +0300, Mika Westerberg wrote: > > + pcie_capability_read_dword(bridge, PCI_EXP_SLTCAP, &slot_cap); > > + if (!(slot_cap & PCI_EXP_SLTCAP_HPC)) > > return false; > > Hm, any reason not to use "if (!bridge->is_hotplug_bridge)" ? That can be set for non-native PCIe bridges. For example acpiphp sets it in some cases. Here we read the capability directly to make sure we are really dealing with native PCIe hotplug. -- To unsubscribe from this list: send the line "unsubscribe linux-acpi" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html