i was looking at that too, but i'm not very clear about how to handle the platform_ops's set_wakeup...>That's exactly the sort of thing I was thinking.
>I guess it could work to look into pci_create_root_bus(), and
>do something like the following?
>
> if (IS_ENABLED(CONFIG_OF) && parent && parent->of_node)
> ... do OF parsing for generic features like WAKE# ...