summaryrefslogtreecommitdiff
path: root/drivers/bluetooth
diff options
context:
space:
mode:
authorRakesh Goyal <rgoyal@nvidia.com>2011-12-23 01:24:08 +0530
committerVarun Wadekar <vwadekar@nvidia.com>2011-12-23 12:02:59 +0530
commit60efdbb211ef9295511125e5c058545316c24acb (patch)
treec8238bad6b1d3a18601b90c87862524e41343cd6 /drivers/bluetooth
parent0053552d7b4d15a2cc4d72734afa56492a495e4e (diff)
bluesleep: disable run time UART clock gating
There is no signaficant power saving by UART clock gating. Bug 913214 Change-Id: I9266c812bae080ba50fa89d11684f18de2f05eab Signed-off-by: Rakesh Goyal <rgoyal@nvidia.com> Reviewed-on: http://git-master/r/71879 Reviewed-by: Automatic_Commit_Validation_User Tested-by: Om Prakash Singh <omp@nvidia.com> Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com> Reviewed-by: Sheshagiri Shenoy <sshenoy@nvidia.com>
Diffstat (limited to 'drivers/bluetooth')
-rw-r--r--drivers/bluetooth/bluesleep.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/bluetooth/bluesleep.c b/drivers/bluetooth/bluesleep.c
index bdf0ff02e594..45679ed24ae8 100644
--- a/drivers/bluetooth/bluesleep.c
+++ b/drivers/bluetooth/bluesleep.c
@@ -180,7 +180,6 @@ void bluesleep_sleep_wakeup(void)
set_bit(BT_EXT_WAKE, &flags);
clear_bit(BT_ASLEEP, &flags);
/*Activating UART */
- hsuart_power(1);
}
}
@@ -201,7 +200,6 @@ static void bluesleep_sleep_work(struct work_struct *work)
BT_DBG("going to sleep...");
set_bit(BT_ASLEEP, &flags);
/*Deactivating UART */
- hsuart_power(0);
/* UART clk is not turned off immediately. Release
* wakelock after 500 ms.
*/
@@ -287,10 +285,10 @@ static int bluesleep_hci_event(struct notifier_block *this,
}
break;
case HCI_DEV_UNREG:
+ bluesleep_stop();
bluesleep_hdev = NULL;
bsi->uport = NULL;
/* if bluetooth stopped, stop bluesleep also */
- bluesleep_stop();
break;
case HCI_DEV_WRITE:
bluesleep_outgoing_data();