projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c997679
)
ACPI: ec: Allow for write semantics in any command.
author
Alexey Starikovskiy
<alexey.y.starikovskiy@intel.com>
Thu, 7 Dec 2006 15:42:16 +0000
(18:42 +0300)
committer
Len Brown
<len.brown@intel.com>
Fri, 8 Dec 2006 07:56:04 +0000
(
02:56
-0500)
Check for transaction attributes, not command index to decide on event to
expect.
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/acpi/ec.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/acpi/ec.c
b/drivers/acpi/ec.c
index e6d4b084dca2eeb40213074998ccdfde52278260..348a19e19b64920acc0650dd34f0a671e6c659aa 100644
(file)
--- a/
drivers/acpi/ec.c
+++ b/
drivers/acpi/ec.c
@@
-253,7
+253,7
@@
static int acpi_ec_transaction_unlocked(struct acpi_ec *ec, u8 command,
acpi_ec_write_data(ec, *(wdata++));
}
- if (
command == ACPI_EC_COMMAND_WRITE
) {
+ if (
!rdata_len
) {
result = acpi_ec_wait(ec, ACPI_EC_EVENT_IBF_0);
if (result)
return result;