diff options
| author | Jim Wylder <jwylder@motorola.com> | 2014-08-25 13:03:43 -0500 | 
|---|---|---|
| committer | James Wylder <jwylder@motorola.com> | 2014-08-26 21:48:50 +0000 | 
| commit | a1ac4d40cc3bc8cc91f78272d5669bee92f1286f (patch) | |
| tree | d7f669956b4f3a425afd646c0da201c593844125 /drivers/misc/ti-st/st_core.c | |
| parent | 83d8dbe505092e9c5fc99e8f00552ef5b3470a41 (diff) | |
| download | olio-linux-3.10-a1ac4d40cc3bc8cc91f78272d5669bee92f1286f.tar.xz olio-linux-3.10-a1ac4d40cc3bc8cc91f78272d5669bee92f1286f.zip  | |
IKXCLOCK-3659 ti-st: Hold wakelock when controller is awake
Even with the RTS signaling, the bluetooth controller expects the
host to be awake when the controller is awake.
Bug: 17247373
Change-Id: I5f4beadea0611722a236b08ec3a9817f61b7f4df
Signed-off-by: Jim Wylder <jwylder@motorola.com>
Diffstat (limited to 'drivers/misc/ti-st/st_core.c')
| -rw-r--r-- | drivers/misc/ti-st/st_core.c | 2 | 
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/misc/ti-st/st_core.c b/drivers/misc/ti-st/st_core.c index e8a8cb4e99c..92449a6a1d6 100644 --- a/drivers/misc/ti-st/st_core.c +++ b/drivers/misc/ti-st/st_core.c @@ -892,6 +892,7 @@ int st_core_init(struct st_data_s **core_data)  			pr_err("unable to un-register ldisc\n");  		return err;  	} +	wake_lock_init(&st_gdata->st_awake, WAKE_LOCK_SUSPEND, "st_alive");  	*core_data = st_gdata;  	return 0;  } @@ -905,6 +906,7 @@ void st_core_exit(struct st_data_s *st_gdata)  		pr_err("error during deinit of ST LL %ld\n", err);  	if (st_gdata != NULL) { +		wake_lock_destroy(&st_gdata->st_awake);  		/* Free ST Tx Qs and skbs */  		skb_queue_purge(&st_gdata->txq);  		skb_queue_purge(&st_gdata->tx_waitq);  |