Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=0c5d31f48e54b2e56e9cef8d49ffedaef1e0ea52
Commit:     0c5d31f48e54b2e56e9cef8d49ffedaef1e0ea52
Parent:     080e412cc0bdb9ef8e7a983d5e008537e1c4d36c
Author:     Alexey Starikovskiy <[EMAIL PROTECTED]>
AuthorDate: Mon Oct 22 14:18:36 2007 +0400
Committer:  Len Brown <[EMAIL PROTECTED]>
CommitDate: Thu Oct 25 16:31:31 2007 -0400

    ACPI: EC: Don't expect interrupt after last read
    
    There is no interrupt after last read according to spec, so
    don't set bit that we are expecting one.
    
    Signed-off-by: Alexey Starikovskiy <[EMAIL PROTECTED]>
    Signed-off-by: Len Brown <[EMAIL PROTECTED]>
---
 drivers/acpi/ec.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/drivers/acpi/ec.c b/drivers/acpi/ec.c
index 08fbe62..5ce90ce 100644
--- a/drivers/acpi/ec.c
+++ b/drivers/acpi/ec.c
@@ -228,7 +228,9 @@ static int acpi_ec_transaction_unlocked(struct acpi_ec *ec, 
u8 command,
                               command);
                        goto end;
                }
-               set_bit(EC_FLAGS_WAIT_GPE, &ec->flags);
+               /* Don't expect GPE after last read */
+               if (rdata_len > 1)
+                       set_bit(EC_FLAGS_WAIT_GPE, &ec->flags);
                *(rdata++) = acpi_ec_read_data(ec);
        }
       end:
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to