Bluetooth: HCI SMD Increase WakeLock release timeout
Upper layers are not acquiring the locks properly, hence wakelock release
timeout is increased to 500 ms. This logic and value is derived from
the implementation for UART transport.
CRs-fixed: 325550
Change-Id: I15c39705e63ebb1fb4ccac3c42d72f0cc1e32929
Signed-off-by: Mallikarjuna GB <gbmalli@codeaurora.org>
diff --git a/drivers/bluetooth/hci_smd.c b/drivers/bluetooth/hci_smd.c
index 4e78152..dbd1bd4 100644
--- a/drivers/bluetooth/hci_smd.c
+++ b/drivers/bluetooth/hci_smd.c
@@ -33,7 +33,12 @@
#define EVENT_CHANNEL "APPS_RIVA_BT_CMD"
#define DATA_CHANNEL "APPS_RIVA_BT_ACL"
-#define RX_Q_MONITOR (1) /* 1 milli second */
+/* release wakelock in 500ms, not immediately, because higher layers
+ * don't always take wakelocks when they should
+ * This is derived from the implementation for UART transport
+ */
+
+#define RX_Q_MONITOR (500) /* 500 milli second */
static int hcismd_set;