diff options
author | Rakesh Goyal <rgoyal@nvidia.com> | 2011-12-23 01:24:08 +0530 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2013-09-14 01:37:40 -0700 |
commit | 17b4c71a99eebbe8851b4951030cc394e274ee39 (patch) | |
tree | 982e897734812fa5c8d53a494d148b3d0c49540c /drivers/bluetooth | |
parent | bb192a12176b44abb35b4597affb53a57859aeb8 (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>
Rebase-Id: R581664e3580ab17404a7dcc7bb06b2633b2b22f2
Diffstat (limited to 'drivers/bluetooth')
-rw-r--r-- | drivers/bluetooth/bluesleep.c | 4 |
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(); |