aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChan-Taek Park <chantaek@inforcecomputing.com>2013-06-05 14:33:19 +0530
committerNicolas Dechesne <nicolas.dechesne@linaro.org>2014-05-06 17:48:44 -0700
commit39d2a7ccf6a2ecbd04403d0eeb48bfc1648958fe (patch)
treee2f395960a48ef3646d85daf84f423f79d83feb2
parentf04d053d15d5dc6c2a3211e48e7411067c0fb986 (diff)
bluetooth: Revert "bluetooth: Disable low power mode on AR3002 chip"
Change-Id: I807f0bd556743b875e3effa7d4d69f0fc1ec1690 Signed-off-by: Suman Kumar <suman@inforcecomputing.com>
-rw-r--r--drivers/bluetooth/hci_ath.c21
1 files changed, 3 insertions, 18 deletions
diff --git a/drivers/bluetooth/hci_ath.c b/drivers/bluetooth/hci_ath.c
index b20c6b6d8620..50b336217831 100644
--- a/drivers/bluetooth/hci_ath.c
+++ b/drivers/bluetooth/hci_ath.c
@@ -44,7 +44,7 @@
#include "hci_uart.h"
-unsigned int enableuartsleep;
+unsigned int enableuartsleep = 1;
module_param(enableuartsleep, uint, 0644);
/*
* Global variables
@@ -149,11 +149,6 @@ static int ath_bluesleep_gpio_config(int on)
{
int ret = 0;
- if (!enableuartsleep) {
- pr_err("%s: LPM is disabled\n", __func__);
- return 0;
- }
-
BT_INFO("%s config: %d", __func__, on);
if (!on) {
if (disable_irq_wake(bsi->host_wake_irq))
@@ -244,10 +239,8 @@ static int ath_open(struct hci_uart *hu)
BT_DBG("hu %p, bsi %p", hu, bsi);
- if (!bsi) {
- pr_err("%s: Bluetooth sleep info. not available\n", __func__);
+ if (!bsi)
return -EIO;
- }
if (ath_bluesleep_gpio_config(1) < 0) {
BT_ERR("HCIATH3K GPIO Config failed");
@@ -420,11 +413,6 @@ static int __init bluesleep_probe(struct platform_device *pdev)
goto failed;
}
- if (!enableuartsleep) {
- pr_debug("%s: Low power mode disabled\n", __func__);
- return 0;
- }
-
res = platform_get_resource_byname(pdev, IORESOURCE_IO,
"gpio_host_wake");
if (!res) {
@@ -488,11 +476,8 @@ int __init ath_init(void)
return ret;
}
ret = platform_driver_probe(&bluesleep_driver, bluesleep_probe);
- if (ret) {
- pr_err("%s: Probe registration failed with ret value : %d\n",
- __func__, ret);
+ if (ret)
return ret;
- }
return 0;
}