Merge android13-gs-pixel-5.10-tm-qpr2 into android13-gs-pixel-5.10-tm-qpr3

SBMerger: 478053055
Change-Id: Icb140ef14e64156209cf96fc1a17f81369a152a4
Signed-off-by: SecurityBot <android-nexus-securitybot@system.gserviceaccount.com>
diff --git a/btpower.c b/btpower.c
index 7d7d125..158f4aa 100644
--- a/btpower.c
+++ b/btpower.c
@@ -583,6 +583,10 @@
 			LOGD(drvdata, "BT-OFF bt-hostwake-gpio(%d) IRQ(%d) value(%d)",
 				bt_host_wake_gpio, drvdata->irq,
 				gpio_get_value(bt_host_wake_gpio));
+                        rc = disable_irq_wake(drvdata->irq);
+                        if(rc) {
+                          LOGE(drvdata, "Failed to disable IRQ wake");
+                        }
 			free_irq(drvdata->irq, drvdata);
 		}
 
@@ -605,6 +609,10 @@
 		if (rc)
 			LOGE(drvdata, "unable to request IRQ %d (%d)",
 				bt_host_wake_gpio, rc);
+                rc = enable_irq_wake(drvdata->irq);
+                if(rc) {
+                  LOGE(drvdata, "Failed to enable IRQ wake");
+                }
 		drvdata->hostwake_state = -1;
 		drvdata->hostwake_count = 0;
 	}