提交 9fd9f8e8 编写于 作者: A Alexey Starikovskiy 提交者: Len Brown

ACPI: EC: Block queries until EC is fully initialized

Signed-off-by: NAlexey Starikovskiy <alexey.y.starikovskiy@intel.com>
Signed-off-by: NLen Brown <len.brown@intel.com>
上级 01f22462
......@@ -599,7 +599,7 @@ static struct acpi_ec *make_acpi_ec(void)
if (!ec)
return NULL;
atomic_set(&ec->query_pending, 0);
atomic_set(&ec->query_pending, 1);
atomic_set(&ec->event_count, 1);
mutex_init(&ec->lock);
init_waitqueue_head(&ec->wait);
......@@ -715,6 +715,9 @@ static int ec_install_handlers(struct acpi_ec *ec)
return -ENODEV;
}
/* EC is fully operational, allow queries */
atomic_set(&ec->query_pending, 0);
return 0;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册