wlcore: Add support for optional wakeirq
authorTony Lindgren <tony@atomide.com>
Mon, 1 Oct 2018 21:41:10 +0000 (14:41 -0700)
committerKalle Valo <kvalo@codeaurora.org>
Fri, 5 Oct 2018 08:33:31 +0000 (11:33 +0300)
commit3c83dd577c7f3f49420c661e693be7049bf0ca02
tree01b44ef02898b35ea1d8ab07cf87f7e3958d2be6
parent4e651bad848955d88b29a568bfbfb4b831270e16
wlcore: Add support for optional wakeirq

Now with wlcore using PM runtime, we can also add support for Linux
generic wakeirq handling for it if configured in the dts file.

The wakeirq can be configured as the second interrupt in the dts file
with interrupts-extended property where it is the padconf irq of the OOB
GPIO pin used for wlcore interrupt.

Note that eventually we should also allow configuring wlcore to use the
SDIO dat1 IRQ for wake-up, and in that case the the wakeirq should be
configured to be the padconf interrupt of the dat1 pin and not the
padconf interrupt of the OOB GPIO pin.

Cc: Eyal Reizer <eyalr@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/ti/wlcore/main.c
drivers/net/wireless/ti/wlcore/sdio.c
drivers/net/wireless/ti/wlcore/wlcore.h