Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6c021839 authored by Ram Mohan Korukonda's avatar Ram Mohan Korukonda Committed by Stephen Boyd
Browse files

Bluetooth: hci_ath: Support BT Power Save mode on AR3002



Configure AR3002 wake up pins properly to enable BT
Power save mode.

Change-Id: Idefe3276d60ca4993700de5337dd75b181986eb2
Signed-off-by: default avatarRam Mohan Korukonda <rkorukon@codeaurora.org>
parent f78cda3a
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -44,7 +44,7 @@

#include "hci_uart.h"

unsigned int enableuartsleep;
unsigned int enableuartsleep = 1;
module_param(enableuartsleep, uint, 0644);
/*
 * Global variables
@@ -110,9 +110,9 @@ static int ath_wakeup_ar3k(struct tty_struct *tty)
	int status = 0;
	if (test_bit(BT_TXEXPIRED, &flags)) {
		printk(KERN_INFO "wakeup device\n");
		gpio_set_value(bsi->ext_wake, 1);
		msleep(20);
		gpio_set_value(bsi->ext_wake, 0);
		msleep(20);
		gpio_set_value(bsi->ext_wake, 1);
	}
	modify_timer_task();
	return status;
@@ -353,7 +353,7 @@ static int __init bluesleep_probe(struct platform_device *pdev)
		gpio_free(bsi->ext_wake);
		goto free_bt_host_wake;
	}
	gpio_set_value(bsi->ext_wake, 0);
	gpio_set_value(bsi->ext_wake, 1);

	bsi->host_wake_irq = platform_get_irq_byname(pdev, "host_wake");
	if (bsi->host_wake_irq < 0) {