Please check if this patch can help the interrupt in bluetooth hostwake and also the reboot/shutdown issue.
Patch 1.
diff --git a/drivers/misc/bluedroid_pm.c b/drivers/misc/bluedroid_pm.c
index 3708edd..9bfe1d7 100644
--- a/drivers/misc/bluedroid_pm.c
+++ b/drivers/misc/bluedroid_pm.c
@@ -332,7 +332,7 @@
BDP_DBG("found host_wake irq\n");
ret = request_irq(bluedroid_pm->host_wake_irq,
bluedroid_pm_hostwake_isr,
- IRQF_TRIGGER_RISING,
+ IRQF_TRIGGER_NONE,
"bluetooth hostwake", bluedroid_pm);
if (ret) {
BDP_ERR("Failed to get host_wake irq\n");
Patch 2.
diff --git a/common/tegra194-p2888-0001-p2822-0000-common.dtsi b/common/tegra194-p2888-0001-p2822-0000-common.dtsi
index 3453ce4..079f785 100644
--- a/common/tegra194-p2888-0001-p2822-0000-common.dtsi
+++ b/common/tegra194-p2888-0001-p2822-0000-common.dtsi
@@ -73,7 +73,7 @@
bluedroid_pm,host-wake-gpio = <&tegra_main_gpio TEGRA194_MAIN_GPIO(Y, 0) 0>;
bluedroid_pm,ext-wake-gpio = <&tegra_main_gpio TEGRA194_MAIN_GPIO(M, 7) 0>;
interrupt-parent = <&tegra_main_gpio>;
- interrupts = <TEGRA194_MAIN_GPIO(Y, 0) 0x01>;
+ interrupts = <TEGRA194_MAIN_GPIO(Y, 0) IRQ_TYPE_LEVEL_LOW>;
};
spi@c260000 {