summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authortturney <tturney@google.com>2015-09-02 01:12:47 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2015-09-02 01:12:47 +0000
commit2d512f12d096413d7408e801050ccdaf14361256 (patch)
tree2c269edbb87074a41b67ea907191f0444c1adde2 /src
parentbad305c349cb77c3fb9cc3b276aa6fc958ca3f61 (diff)
parentb7b7af83922fc5918d2632402daa3824364806fb (diff)
downloadandroid_hardware_broadcom_libbt-2d512f12d096413d7408e801050ccdaf14361256.tar.gz
android_hardware_broadcom_libbt-2d512f12d096413d7408e801050ccdaf14361256.tar.bz2
android_hardware_broadcom_libbt-2d512f12d096413d7408e801050ccdaf14361256.zip
am b7b7af83: Fix btwrite timer timeout for Angler (1/2)
* commit 'b7b7af83922fc5918d2632402daa3824364806fb': Fix btwrite timer timeout for Angler (1/2)
Diffstat (limited to 'src')
-rwxr-xr-xsrc/hardware.c3
-rw-r--r--src/upio.c7
2 files changed, 7 insertions, 3 deletions
diff --git a/src/hardware.c b/src/hardware.c
index 9869ffa..b97d5f1 100755
--- a/src/hardware.c
+++ b/src/hardware.c
@@ -1220,9 +1220,10 @@ uint32_t hw_lpm_get_idle_timeout(void)
*/
timeout_ms = (uint32_t)lpm_param.host_stack_idle_threshold \
* LPM_IDLE_TIMEOUT_MULTIPLE;
-
if (strstr(hw_cfg_cb.local_chip_name, "BCM4325") != NULL)
timeout_ms *= 25; // 12.5 or 25 ?
+ else if (strstr(hw_cfg_cb.local_chip_name, "BCM4358") != NULL)
+ timeout_ms *= 50;
else
timeout_ms *= 300;
diff --git a/src/upio.c b/src/upio.c
index 3f73482..43dc5b5 100644
--- a/src/upio.c
+++ b/src/upio.c
@@ -499,13 +499,16 @@ void upio_set(uint8_t pio, uint8_t action, uint8_t polarity)
ALOGE("upio_set : write(%s) failed: %s (%d)",
VENDOR_BTWRITE_PROC_NODE, strerror(errno),errno);
}
-#if (PROC_BTWRITE_TIMER_TIMEOUT_MS != 0)
else
{
+#if (BT_WAKE_VIA_PROC == TRUE)
+ lpm_proc_cb.btwrite_active = TRUE;
+#endif
+#if (PROC_BTWRITE_TIMER_TIMEOUT_MS != 0)
/* arm user space timer based on action */
upio_start_stop_timer(action);
- }
#endif
+ }
UPIODBG("%s: proc btwrite assertion, buffer: %c, timer_armed %d %d",
__FUNCTION__, buffer, lpm_proc_cb.btwrite_active, lpm_proc_cb.timer_created);