Created
December 18, 2014 22:14
-
-
Save invisiblek/9da7ba02d209086f8b3c 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.c b/drivers/bluetooth/bluesleep.c | |
index 6dc9862..43192d7 100644 | |
--- a/drivers/bluetooth/bluesleep.c | |
+++ b/drivers/bluetooth/bluesleep.c | |
@@ -160,7 +160,7 @@ void bluesleep_sleep_wakeup(void) | |
BT_DBG("waking up..."); | |
/* Start the timer */ | |
mod_timer(&tx_timer, jiffies + (TX_TIMER_INTERVAL * HZ)); | |
- gpio_set_value(bsi->ext_wake, 0); | |
+ gpio_set_value(bsi->ext_wake, 0); // | |
clear_bit(BT_ASLEEP, &flags); | |
/*Activating UART */ | |
hsuart_power(1); | |
@@ -290,7 +290,7 @@ static void bluesleep_tx_timer_expire(unsigned long data) | |
/* were we silent during the last timeout? */ | |
if (!test_bit(BT_TXDATA, &flags)) { | |
BT_DBG("Tx has been idle"); | |
- gpio_set_value(bsi->ext_wake, 1); | |
+ gpio_set_value(bsi->ext_wake, 1); // | |
bluesleep_tx_idle(); | |
} else { | |
BT_DBG("Tx data during last period"); | |
@@ -345,7 +345,7 @@ static int bluesleep_start(void) | |
mod_timer(&tx_timer, jiffies + (TX_TIMER_INTERVAL*HZ)); | |
/* assert BT_WAKE */ | |
- gpio_set_value(bsi->ext_wake, 0); | |
+ gpio_set_value(bsi->ext_wake, 0); // | |
retval = request_irq(bsi->host_wake_irq, bluesleep_hostwake_isr, | |
IRQF_DISABLED | IRQF_TRIGGER_FALLING, | |
"bluetooth hostwake", NULL); | |
@@ -385,7 +385,7 @@ static void bluesleep_stop(void) | |
} | |
/* assert BT_WAKE */ | |
- gpio_set_value(bsi->ext_wake, 0); | |
+ gpio_set_value(bsi->ext_wake, 0); // | |
del_timer(&tx_timer); | |
clear_bit(BT_PROTO, &flags); | |
@@ -447,9 +447,9 @@ static int bluepower_write_proc_btwake(struct file *file, const char *buffer, | |
} | |
if (buf[0] == '0') { | |
- gpio_set_value(bsi->ext_wake, 0); | |
+ gpio_set_value(bsi->ext_wake, 0); // | |
} else if (buf[0] == '1') { | |
- gpio_set_value(bsi->ext_wake, 1); | |
+ gpio_set_value(bsi->ext_wake, 1); // | |
} else { | |
kfree(buf); | |
return -EINVAL; | |
@@ -616,7 +616,7 @@ free_bsi: | |
static int bluesleep_remove(struct platform_device *pdev) | |
{ | |
/* assert bt wake */ | |
- gpio_set_value(bsi->ext_wake, 0); | |
+ gpio_set_value(bsi->ext_wake, 0); // | |
if (test_bit(BT_PROTO, &flags)) { | |
if (disable_irq_wake(bsi->host_wake_irq)) | |
BT_ERR("Couldn't disable hostwake IRQ wakeup mode \n"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment