Created
December 18, 2014 22:25
-
-
Save invisiblek/5cf58ccb1e098c79d6a3 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/drivers/bluetooth/bluesleep_bcm.c b/drivers/bluetooth/bluesleep_bcm.c | |
index aa8863e..9880196 100644 | |
--- a/drivers/bluetooth/bluesleep_bcm.c | |
+++ b/drivers/bluetooth/bluesleep_bcm.c | |
@@ -187,7 +187,7 @@ void bluesleep_sleep_wakeup(void) | |
/* Start the timer */ | |
mod_timer(&tx_timer, jiffies + (TX_TIMER_INTERVAL * HZ)); | |
if (bsi->has_ext_wake == 1) | |
- gpio_set_value(bsi->ext_wake, 1); | |
+ gpio_set_value(bsi->ext_wake, 1); // | |
set_bit(BT_EXT_WAKE, &flags); | |
clear_bit(BT_ASLEEP, &flags); | |
/*Activating UART */ | |
@@ -225,7 +225,7 @@ static void bluesleep_sleep_work(struct work_struct *work) | |
&& !test_bit(BT_ASLEEP, &flags)) { | |
mod_timer(&tx_timer, jiffies + (TX_TIMER_INTERVAL * HZ)); | |
if (bsi->has_ext_wake == 1) | |
- gpio_set_value(bsi->ext_wake, 1); | |
+ gpio_set_value(bsi->ext_wake, 1); // | |
set_bit(BT_EXT_WAKE, &flags); | |
} else { | |
bluesleep_sleep_wakeup(); | |
@@ -400,7 +400,7 @@ static void bluesleep_tx_timer_expire(unsigned long data) | |
if (!test_bit(BT_TXDATA, &flags)) { | |
BT_DBG("Tx has been idle"); | |
if (bsi->has_ext_wake == 1) | |
- gpio_set_value(bsi->ext_wake, 0); | |
+ gpio_set_value(bsi->ext_wake, 0); // | |
clear_bit(BT_EXT_WAKE, &flags); | |
bluesleep_tx_idle(); | |
} else { | |
@@ -454,7 +454,7 @@ static int bluesleep_start(void) | |
/* assert BT_WAKE */ | |
if (bsi->has_ext_wake == 1) | |
- gpio_set_value(bsi->ext_wake, 1); | |
+ gpio_set_value(bsi->ext_wake, 1); // | |
set_bit(BT_EXT_WAKE, &flags); | |
#if BT_ENABLE_IRQ_WAKE | |
retval = enable_irq_wake(bsi->host_wake_irq); | |
@@ -487,7 +487,7 @@ static void bluesleep_stop(void) | |
} | |
/* assert BT_WAKE */ | |
if (bsi->has_ext_wake == 1) | |
- gpio_set_value(bsi->ext_wake, 1); | |
+ gpio_set_value(bsi->ext_wake, 1); // | |
set_bit(BT_EXT_WAKE, &flags); | |
del_timer(&tx_timer); | |
clear_bit(BT_PROTO, &flags); | |
@@ -552,11 +552,11 @@ static int bluepower_write_proc_btwake(struct file *file, const char *buffer, | |
} | |
if (buf[0] == '0') { | |
if (bsi->has_ext_wake == 1) | |
- gpio_set_value(bsi->ext_wake, 0); | |
+ gpio_set_value(bsi->ext_wake, 0); // | |
clear_bit(BT_EXT_WAKE, &flags); | |
} else if (buf[0] == '1') { | |
if (bsi->has_ext_wake == 1) | |
- gpio_set_value(bsi->ext_wake, 1); | |
+ gpio_set_value(bsi->ext_wake, 1); // | |
set_bit(BT_EXT_WAKE, &flags); | |
} else { | |
kfree(buf); | |
@@ -920,7 +920,7 @@ static int __init bluesleep_init(void) | |
/* assert bt wake */ | |
if (bsi->has_ext_wake == 1) | |
- gpio_set_value(bsi->ext_wake, 1); | |
+ gpio_set_value(bsi->ext_wake, 1); // | |
set_bit(BT_EXT_WAKE, &flags); | |
#if !BT_BLUEDROID_SUPPORT | |
hci_register_notifier(&hci_event_nblock); | |
@@ -952,7 +952,7 @@ static void __exit bluesleep_exit(void) | |
/* assert bt wake */ | |
if (bsi->has_ext_wake == 1) | |
- gpio_set_value(bsi->ext_wake, 1); | |
+ gpio_set_value(bsi->ext_wake, 1); // | |
set_bit(BT_EXT_WAKE, &flags); | |
if (test_bit(BT_PROTO, &flags)) { | |
if (disable_irq_wake(bsi->host_wake_irq)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment