BT: add a gpio interrupt for bt [1/1]
authorKuibao Zhang <kuibao.zhang@amlogic.com>
Wed, 1 May 2019 15:06:47 +0000 (23:06 +0800)
committerTao Zeng <tao.zeng@amlogic.com>
Wed, 8 May 2019 08:41:15 +0000 (01:41 -0700)
commit0272020b6638dc6e07a1d38aaa952508165cae94
treea4131dd8c3ef40ef596eec3c49991c8e506fb2b3
parent481d4f2ec4aac49ff6464a51c3165e60f5fe217c
BT: add a gpio interrupt for bt [1/1]

PD#TV-5021

Problem:
    1.bt rcu cann't wakeup host when the system is in freeze mode;
    2.There is no wake source in the bluetooth kernel.
    3.current irqchip driver will complain "Unbalanced IRQ xx wake
    disable" when gpio irq use as wakeup source, and can not wake device.

Solution:
    1.add a gpio interrupt for bt in the bt kernel;
    2.Wake up the interrupt;
    3.Add a flag to skip undefined  .irq_set_wake function in irqchip
    driver.

Verify:
    marconi.

Change-Id: Ic8d5525621e015a13fd765779f944cd1010144aa
Signed-off-by: Kuibao Zhang <kuibao.zhang@amlogic.com>
drivers/amlogic/bluetooth/bt_device.c
drivers/amlogic/irqchip/irq-meson-gpio.c
include/linux/amlogic/bt_device.h