summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTommy Kardach <thomaskardach@google.com>2023-06-27 11:36:47 -0700
committerTommy Kardach <thomaskardach@google.com>2023-07-05 22:41:06 +0000
commit663b2dfdfc5d1808e0a384d65fff72df8a33f49b (patch)
treed74987f9c9ed84333dd576ce7d303df23535bf80
parentcf5ab286364c53233c8e61aac863e82ece753db3 (diff)
downloadlwis-663b2dfdfc5d1808e0a384d65fff72df8a33f49b.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>
-rw-r--r--lwis_transaction.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lwis_transaction.c b/lwis_transaction.c
index 28882a6..05ab8fc 100644
--- a/lwis_transaction.c
+++ b/lwis_transaction.c
@@ -492,11 +492,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,