summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAmir Ayun <amira@ti.com>2011-09-06 15:04:59 +0300
committerBernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org>2012-05-31 08:26:14 +0200
commite1f5fbd9364eb29d89a10369b8a51f5b8acea94c (patch)
treee6973c06fbd1bd1a1e318ce2355cf1841117711c
parenta64d4c34f9af4193feb12a4983c5f1dca418a644 (diff)
downloadpanda-e1f5fbd9364eb29d89a10369b8a51f5b8acea94c.tar.gz
drivers:misc:ti-st: Send wake_up_ack also in awake state
In case a wake_up_ack packet the host send to the BT device is lost, the BT device will send another wake_up_indication. Since the host was already in awake state, it did not answer the wake_up_indication. It is safe to send wake_up_ack every time we get the wake_up_indication, even if we are already in awake state or in transition state from sleep to awake. Change-Id: I99dd0872f8ef041b7886aa06a731071386ac4ad3 Signed-off-by: Amir Ayun <amira@ti.com> Signed-off-by: Pavan Savoy <pavan_savoy@ti.com>
-rw-r--r--drivers/misc/ti-st/st_ll.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/misc/ti-st/st_ll.c b/drivers/misc/ti-st/st_ll.c
index 1fb8bbce9c2..6f0b3af15ac 100644
--- a/drivers/misc/ti-st/st_ll.c
+++ b/drivers/misc/ti-st/st_ll.c
@@ -74,11 +74,13 @@ static void ll_device_want_to_wakeup(struct st_data_s *st_data)
break;
case ST_LL_ASLEEP_TO_AWAKE:
/* duplicate wake_ind */
- pr_err("duplicate wake_ind while waiting for Wake ack");
+ pr_debug("duplicate wake_ind while waiting for Wake ack");
+ send_ll_cmd(st_data, LL_WAKE_UP_ACK); /* send wake_ack */
break;
case ST_LL_AWAKE:
/* duplicate wake_ind */
- pr_err("duplicate wake_ind already AWAKE");
+ pr_debug("duplicate wake_ind already AWAKE");
+ send_ll_cmd(st_data, LL_WAKE_UP_ACK); /* send wake_ack */
break;
case ST_LL_AWAKE_TO_ASLEEP:
/* duplicate wake_ind */