|
@@ -1927,6 +1927,9 @@ static int acpi_ec_suspend_noirq(struct device *dev)
|
|
ec->reference_count >= 1)
|
|
ec->reference_count >= 1)
|
|
acpi_set_gpe(NULL, ec->gpe, ACPI_GPE_DISABLE);
|
|
acpi_set_gpe(NULL, ec->gpe, ACPI_GPE_DISABLE);
|
|
|
|
|
|
|
|
+ if (acpi_sleep_no_ec_events())
|
|
|
|
+ acpi_ec_enter_noirq(ec);
|
|
|
|
+
|
|
return 0;
|
|
return 0;
|
|
}
|
|
}
|
|
|
|
|
|
@@ -1934,6 +1937,9 @@ static int acpi_ec_resume_noirq(struct device *dev)
|
|
{
|
|
{
|
|
struct acpi_ec *ec = acpi_driver_data(to_acpi_device(dev));
|
|
struct acpi_ec *ec = acpi_driver_data(to_acpi_device(dev));
|
|
|
|
|
|
|
|
+ if (acpi_sleep_no_ec_events())
|
|
|
|
+ acpi_ec_leave_noirq(ec);
|
|
|
|
+
|
|
if (ec_no_wakeup && test_bit(EC_FLAGS_STARTED, &ec->flags) &&
|
|
if (ec_no_wakeup && test_bit(EC_FLAGS_STARTED, &ec->flags) &&
|
|
ec->reference_count >= 1)
|
|
ec->reference_count >= 1)
|
|
acpi_set_gpe(NULL, ec->gpe, ACPI_GPE_ENABLE);
|
|
acpi_set_gpe(NULL, ec->gpe, ACPI_GPE_ENABLE);
|