Refcounting GPEs
Implementing runtime PM for PCI requires ensuring that device GPEs are enabled for runtime. This is made awkward by the fact that multiple PCI and ACPI devices may use the same GPE, so it's necessary to track how many devices currently want the GPE to be enabled. This would seem to imply some sort of refcounting, but I can't see an especially clean way to implement this in the current code. Does anyone have any preferences for what this interface should look like?
Signature · 1 line
Matthew Garrett | [email protected]