jhb c161353534 Trust the state of a power resource that get from a working _STA method
instead of trying to cache it.

Previously, we only trusted the state if we did not have a cached state.
However, once a state was cached, the _STA method was always ignored.
Specifically, once a power resource had been turned on once (e.g.
during resume), the driver assumed it was always on even if _STA said it
was off and never turned it back on.  This prevented the power resource
from being turned back on if a laptop was resumed twice, for example.

To fix, just remove the cached state entirely and always use the results
of _STA.  The loops already skip any resources where _STA fails.

Submitted by:	trasz (initial patch to invoke _ON)
MFC after:	1 week
2014-06-19 18:35:14 +00:00
..
2013-09-04 18:42:05 +00:00
2014-06-02 18:54:45 +00:00
2013-10-29 11:17:49 +00:00
2013-10-29 11:17:49 +00:00
2014-05-27 19:56:02 +00:00
2013-08-28 14:49:36 +00:00
2014-06-02 18:45:36 +00:00
2013-10-28 23:34:05 +00:00
2014-05-20 19:55:06 +00:00
2013-07-07 19:47:22 +00:00
2014-05-16 21:19:17 +00:00
2013-05-10 16:41:26 +00:00
2013-09-05 23:14:27 +00:00
2014-04-30 06:40:30 +00:00
2013-10-08 19:07:48 +00:00
2013-10-29 11:17:49 +00:00
2014-05-16 21:19:17 +00:00
2013-05-10 16:41:26 +00:00
2013-10-29 11:17:49 +00:00
2014-02-04 20:52:33 +00:00