Fill in command unit of transaction_data structure, otherwiseNAK
gpe_transaction will skip read or write instruction.
Signed-off-by: Kevin Hao <kexin.hao@xxxxxxxxxxxxx>
---
drivers/acpi/ec.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/drivers/acpi/ec.c b/drivers/acpi/ec.c
index bd3555c..0c65e82 100644
--- a/drivers/acpi/ec.c
+++ b/drivers/acpi/ec.c
@@ -240,6 +240,7 @@ static int acpi_ec_transaction_unlocked(struct acpi_ec *ec, u8 command,
}
atomic_set(&ec->irq_count, 0);
/* fill in transaction structure */
+ ec->t.command = command;
ec->t.wdata = wdata;
ec->t.wlen = wdata_len;
ec->t.rdata = rdata;