summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTommy Kardach <thomaskardach@google.com>2023-06-27 11:36:47 -0700
committerMeghana Barkalle <mbarkalle@google.com>2024-01-09 17:21:57 +0000
commite549ebb8523848761335992076bfb4a9a721cafc (patch)
treea0b18fd48b138f8048c253c92e483f89eb243093
parent93d079a8d23f98fe676dbc50a130ce8fb434f8fa (diff)
downloadlwis-e549ebb8523848761335992076bfb4a9a721cafc.tar.gz
Check for lwis-top device before denying transaction
Bug: 288286475 Test: liblyric.lwis_test Change-Id: Iee03538a9cec7034a198d3ad746627ae2e03e704 Signed-off-by: Tommy Kardach <thomaskardach@google.com> (cherry picked from commit 663b2dfdfc5d1808e0a384d65fff72df8a33f49b)
-rw-r--r--lwis_transaction.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lwis_transaction.c b/lwis_transaction.c
index 89fa685..1ee1a45 100644
--- a/lwis_transaction.c
+++ b/lwis_transaction.c
@@ -494,11 +494,12 @@ void lwis_process_transactions_in_queue(struct lwis_client *client)
spin_lock_irqsave(&client->transaction_lock, flags);
list_for_each_safe (it_tran, it_tran_tmp, &client->transaction_process_queue) {
- if (!client->is_enabled) {
+ if (!client->is_enabled && lwis_dev->type != DEVICE_TYPE_TOP) {
/*
* If client is not enabled, then we just need to requeue
* the transaction until the client is enabled. This will
* ensure that we don't loose the submitted transactions.
+ * Top device does not require enabling.
*/
if (lwis_transaction_debug) {
dev_info(client->lwis_dev->dev,