summaryrefslogtreecommitdiffstats
path: root/src/upio.c
Commit message (Collapse)AuthorAgeFilesLines
* Avoid frequently operation on btwritezhaoyang yin2015-09-221-0/+4
| | | | | | | | | Need to set lmp_proc_cb.btwrite_active even though PROC_BTWRITE_TIMER_TIMEOUT_MS is set to 0. Otherwise, btwrite would be written very frequently. Bug: 24201064 Change-Id: I3aec20bc52552f9181ccd1a257f1a04492999a68
* Revert upio changes to fix wear timeouts.tturney2015-09-021-5/+2
| | | | | Bug: 23751002 Change-Id: I78edd202ffc74353ae9703f374a7badac0cf3084
* Fix btwrite timer timeout for Angler (1/2)tturney2015-08-311-2/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | 1. For vnd_angler.txt: Set PROC_BTWRITE_TIMER_TIMEOUT_MS to 0 to avoid upio start and stop timer when LMP is enabled and BT_WAKE is asserted and de-asserted. This time is useless and would set btwrite to 0 by mistake even when host is sending data to UART, and this would de-assert BT_WAKE by mistake. 2. For hardware.c: For chipset 4358 we need to set LPM_HC_IDLE_THRESHOLD to 24, so we need to reduce the multiplier to make timeout_ms a reasonable value. Without modification, the timeout_ms would be 36000ms which is too large. 3. For upio.c: Need to set lmp_proc_cb.btwrite_active even though PROC_BTWRITE_TIMER_TIMEOUT_MS is set to 0. Otherwise, btwrite would be written very frequently. Bug: 23248798 Change-Id: Ie55c346785679e51a771d5e46270c0858e6082ee
* Remove the optimization for unarming the timertturney2015-07-291-4/+1
| | | | | Bug: 22388460 Change-Id: Ib45d9cd36725c7cb9b82540cf395bd21f5d35fd4
* Fix Fugu LPM compile errorAndre Eisenbach2015-06-011-1/+1
| | | | Change-Id: I6eadb0b5db6b3424ea2a96dd87ff2fb27e04abc2
* Fix for bluedroid sometimes holding kernel wake lock inadvertendlyPrerepa Viswanadham2015-06-011-16/+47
| | | | | | | | | | | | Two problems - sometimes bluedroid will not issue upio_set to release kernel wake lock. Timeout would fire but would not release lpm driver cmd to release kernel wake lock - lpm wake lock was not being extended as bluedroid would constantly use the interface. Bug: 21063567 Change-Id: I898508493bbf7b8c2ddb79d7c7398b6900ade12c
* Add missing includes.Elliott Hughes2015-01-291-0/+1
| | | | Change-Id: If201ba51119412f113734caf383c35884fd2fcd6
* am 3c6fa111: am 822e4da8: Do not set timer if PROC_BTWRITE_TIMER_TIMEOUT_MS == 0Devin Kim2014-08-261-0/+4
|\ | | | | | | | | * commit '3c6fa1114f34347d27b6b46dec1f3940bd50ed11': Do not set timer if PROC_BTWRITE_TIMER_TIMEOUT_MS == 0
| * Do not set timer if PROC_BTWRITE_TIMER_TIMEOUT_MS == 0Devin Kim2014-08-251-0/+4
| | | | | | | | | | | | | | | | When PROC_BTWRITE_TIMER_TIMEOUT_MS is set to 0, it disables btwrite timer setup so that bluesleep driver controls timeout for tx data Bug: 16889688 Change-Id: I721ae88fdd671495c509acfcbdee559daf34e089
| * Fix ms to ns conversion unitMatthew Xie2014-05-161-1/+1
| | | | | | | | | | | | bug 14999968 Change-Id: Idddc91e7bed23931cdd81a2a28ae96a6ee1b2a59 (cherry picked from commit 34547bfc4e9b4352de66f7e42f89bcafa58aa3ff)
* | Fix ms to ns conversion unitMatthew Xie2014-05-161-1/+1
| | | | | | | | | | bug 14999968 Change-Id: Idddc91e7bed23931cdd81a2a28ae96a6ee1b2a59
* | flounder64: bluetooth: let BT enter sleep modeThomas.TT_Lin2014-03-131-3/+8
|/ | | | | | | | let BT sleep doesn't ignore the UPIO_DEASSERT command and just use one node to control BT sleep. Change-Id: I8d4f89be1b8e44c4d77b01a885bf7972dffe0cc3 Signed-off-by: Thomas.TT_Lin <Thomas.TT_Lin@htc.com>
* Add new user-to-kernel interface for Bluetooth low power mode control (1/2)YK Jeffrey Chao2012-10-221-10/+199
| | | | | | | | | | | | | | The bluesleep kernel module was used in Tegra3 platform to perform Bluetooth low power wakelock and interrup control. Add new user-to-kernel interface through proc fs nodes for Bluedroid to feed bluesleep with the HCI_DEV events which bluesleep was monitoring on. bug 7347413 Change-Id: I791be1042d5573e5207aa81e3d59fa418134f9fe Conflicts: libbt/include/vnd_manta.txt
* Move libbt-vendor from vendor/broadcom/libbt-vendorWink Saville2012-09-251-0/+298
| | | | | Bug: 6837125 Change-Id: Ic3cc73f210e40d95b131a68244dc9e60bae80f37
* Revert "Move libbt-vendor from vendor/broadcom/libbt-vendor"Wink Saville2012-09-241-298/+0
| | | | | | This reverts commit d18044d184ebdbbdefe700ad439e1a4cead748f7 Change-Id: Ieb3f11f56c4368556b60c79c359a012fb8555a13
* Move libbt-vendor from vendor/broadcom/libbt-vendorWink Saville2012-09-241-0/+298
Bug: 6837125 Change-Id: I9e9d5a95463d5cd61a6e7f3b2f0a57c0b2f47e16