diff options
author | Alexey Starikovskiy <alexey.y.starikovskiy@intel.com> | 2007-03-07 14:28:00 -0500 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2007-03-09 23:27:29 -0500 |
commit | 9fd9f8e8bdcfc9aa309dae5bccc55d02804337d0 (patch) | |
tree | 75bcbbe973c48583c187446d4f31e3558192c194 /drivers/acpi | |
parent | 01f2246269639f6aa93086719a8dbec26cb68e98 (diff) |
ACPI: EC: Block queries until EC is fully initialized
Signed-off-by: Alexey Starikovskiy <alexey.y.starikovskiy@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'drivers/acpi')
-rw-r--r-- | drivers/acpi/ec.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/acpi/ec.c b/drivers/acpi/ec.c index 2a172299b24c..e08cf98f504f 100644 --- a/drivers/acpi/ec.c +++ b/drivers/acpi/ec.c | |||
@@ -599,7 +599,7 @@ static struct acpi_ec *make_acpi_ec(void) | |||
599 | if (!ec) | 599 | if (!ec) |
600 | return NULL; | 600 | return NULL; |
601 | 601 | ||
602 | atomic_set(&ec->query_pending, 0); | 602 | atomic_set(&ec->query_pending, 1); |
603 | atomic_set(&ec->event_count, 1); | 603 | atomic_set(&ec->event_count, 1); |
604 | mutex_init(&ec->lock); | 604 | mutex_init(&ec->lock); |
605 | init_waitqueue_head(&ec->wait); | 605 | init_waitqueue_head(&ec->wait); |
@@ -715,6 +715,9 @@ static int ec_install_handlers(struct acpi_ec *ec) | |||
715 | return -ENODEV; | 715 | return -ENODEV; |
716 | } | 716 | } |
717 | 717 | ||
718 | /* EC is fully operational, allow queries */ | ||
719 | atomic_set(&ec->query_pending, 0); | ||
720 | |||
718 | return 0; | 721 | return 0; |
719 | } | 722 | } |
720 | 723 | ||