Andriy Gapon 5ff14fa9b4 acpi_ec: changes in communication with hardware
Short description of the changes:
- attempt to retry some commands for which it is possible (read, query)
- always make a short sleep before checking EC status in polled mode
- periodically poll EC status in interrupt mode
- change logic for detecting broken interrupt delivery and falling back
  to polled mode
- check that EC is ready for input before starting a new command, wait
  if necessary

This commit is based on the original patch by David Naylor.

PR:		kern/150517
Submitted by:	David Naylor <naylor.b.david@gmail.com>
Reviewed by:	jkim
MFC after:	3 weeks
2010-10-12 17:53:01 +00:00
..
2010-09-16 20:08:00 +00:00
2010-07-06 20:57:28 +00:00
2009-06-05 18:44:36 +00:00
2010-06-11 19:53:42 +00:00
2010-01-21 21:14:28 +00:00
2009-06-05 18:44:36 +00:00
2010-07-06 20:57:28 +00:00
2010-01-21 21:14:28 +00:00
2009-06-05 18:44:36 +00:00
2009-11-16 21:47:12 +00:00
2009-06-05 18:44:36 +00:00
2010-01-21 21:14:28 +00:00
2009-06-05 18:44:36 +00:00
2009-06-05 18:44:36 +00:00
2010-01-21 21:14:28 +00:00
2009-06-05 18:44:36 +00:00
2009-06-05 18:44:36 +00:00