]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb7df98201b74e7663d2db0e66a1a88493187d9fe
tree01b44ef02898b35ea1d8ab07cf87f7e3958d2be6
parent635abfe5683f5c59113d8d8d834d5753ee71b9d1
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