Re: [PATCH v6 1/3] PCI: rockchip: Add support for pcie wake irq

From: jeffy
Date: Thu Oct 19 2017 - 07:20:29 EST


Hi guys,

On 10/18/2017 09:29 PM, Bjorn Helgaas wrote:
>
>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# ...
That's exactly the sort of thing I was thinking.

i was looking at that too, but i'm not very clear about how to handle the platform_ops's set_wakeup...