mirror of
https://github.com/raspberrypi/linux.git
synced 2025-12-06 18:09:56 +00:00
Revert: ACPI / EC: Add support to disallow QR_EC to be issued before completing previous QR_EC
This reverts commit2dbfff81a4, which really is commit558e4736f2upstream. Sorry for the confusion, this got applied twice, and reverted once, this is the second revert and I hope to never touch it again... Reported-by: Lv Zheng <lv.zheng@intel.com> Cc: Alexander Mezin <mezin.alexander@gmail.com> Cc: Rafael J. Wysocki <rafael.j.wysocki@intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
@@ -299,11 +299,11 @@ static int acpi_ec_transaction_unlocked(struct acpi_ec *ec,
|
|||||||
/* following two actions should be kept atomic */
|
/* following two actions should be kept atomic */
|
||||||
ec->curr = t;
|
ec->curr = t;
|
||||||
start_transaction(ec);
|
start_transaction(ec);
|
||||||
if (ec->curr->command == ACPI_EC_COMMAND_QUERY)
|
|
||||||
clear_bit(EC_FLAGS_QUERY_PENDING, &ec->flags);
|
|
||||||
spin_unlock_irqrestore(&ec->lock, tmp);
|
spin_unlock_irqrestore(&ec->lock, tmp);
|
||||||
ret = ec_poll(ec);
|
ret = ec_poll(ec);
|
||||||
spin_lock_irqsave(&ec->lock, tmp);
|
spin_lock_irqsave(&ec->lock, tmp);
|
||||||
|
if (ec->curr->command == ACPI_EC_COMMAND_QUERY)
|
||||||
|
clear_bit(EC_FLAGS_QUERY_PENDING, &ec->flags);
|
||||||
ec->curr = NULL;
|
ec->curr = NULL;
|
||||||
spin_unlock_irqrestore(&ec->lock, tmp);
|
spin_unlock_irqrestore(&ec->lock, tmp);
|
||||||
return ret;
|
return ret;
|
||||||
|
|||||||
Reference in New Issue
Block a user