freebsd-skq/sys
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
..
amd64 Revert r266925 as it can lead to instant panic at fexecve(): 2014-06-17 05:29:18 +00:00
arm Different versions of the ARM processor use different registers. 2014-06-17 21:48:04 +00:00
boot mdoc: fix AUTHORS section. 2014-06-09 19:36:08 +00:00
bsm IFp4 @1192291: 2014-04-07 20:44:00 +00:00
cam Execute task management request directly in ctl_queue() context. 2014-06-19 13:19:35 +00:00
cddl Removed stale comment about multi-vdev root pool config not working 2014-06-09 13:04:58 +00:00
compat - Add support for SG_GET_SG_TABLESIZE IOCTL to report that we don't support 2014-06-04 12:05:47 +00:00
conf Remove stale link to deleted vt(4) xboxfb driver. 2014-06-18 22:16:44 +00:00
contrib Fix case where fastroute or "to interface" is used with incorrect FIB. 2014-06-19 05:45:17 +00:00
crypto NO_MAN= has been deprecated in favor of MAN= for some time, go ahead 2014-04-13 05:21:56 +00:00
ddb handle longer commands so that lines don't overflow... people who added 2014-06-02 23:50:19 +00:00
dev Trust the state of a power resource that get from a working _STA method 2014-06-19 18:35:14 +00:00
fs In msdosfs_setattr(), add a check for result of the utimes(2) 2014-06-17 07:11:00 +00:00
gdb
geom Add disklabel64 support to GEOM_PART class. 2014-06-11 10:42:34 +00:00
gnu Symbolic bindings for the dts files... 2014-02-28 16:51:33 +00:00
i386 Revert r266925 as it can lead to instant panic at fexecve(): 2014-06-17 05:29:18 +00:00
ia64 - Modify vm_page_unwire() and vm_page_enqueue() to directly accept 2014-06-16 18:15:27 +00:00
isa Remove vestiges of knowing the ISA bus, which we gave up on around 20 2014-03-19 21:03:04 +00:00
kern In msdosfs_setattr(), add a check for result of the utimes(2) 2014-06-17 07:11:00 +00:00
kgssapi
libkern Use strcasecmp() instead of strcmp() when checking user-supplied encoding 2014-06-09 19:27:47 +00:00
mips - Modify vm_page_unwire() and vm_page_enqueue() to directly accept 2014-06-16 18:15:27 +00:00
modules Stop telling people to use send-pr; instead point them towards Bugzilla. 2014-06-14 18:43:48 +00:00
net - Modify vm_page_unwire() and vm_page_enqueue() to directly accept 2014-06-16 18:15:27 +00:00
net80211 Use logical rather than bitwise OR in if() expression. 2014-04-26 23:22:49 +00:00
netgraph PF_BLUETOOTH protocols: skip initialization of non-virtualized globals 2014-06-10 18:21:37 +00:00
netinet Use ENOBUFS instead of ENOMEM in error situations related to m_uiotombuf(). 2014-06-05 12:51:12 +00:00
netinet6 Remove unused variable. 2014-06-08 09:08:51 +00:00
netipsec Use IPv4 statistics in ipsec4_process_packet() rather than the IPv6 2014-05-28 23:01:20 +00:00
netnatm
netpfil DNOLD_IS_ECN introduced by r266941 is not required. 2014-06-01 20:19:17 +00:00
netsmb Remove redundant unlock. 2014-04-17 12:22:08 +00:00
nfs Fix/improve fhe_stats sysctl output. 2014-06-14 12:26:12 +00:00
nfsclient For software builds, the NFS client does many small 2013-12-07 23:05:59 +00:00
nfsserver The PR reported that the old NFS server did not set uio_td == NULL 2014-04-24 20:47:58 +00:00
nlm Correct a typo in nlm_find_host_by_addr(): the intention of the 2014-03-11 00:25:55 +00:00
ofed - Fix out of range shifting bug in bitops.h. 2014-06-12 13:33:01 +00:00
opencrypto allow the kern.cryptodevallowsoft sysctl to enable symetric/hashes too... 2014-03-11 01:45:46 +00:00
pc98 lindev(4): finish the partial commit in r265212 2014-05-02 07:14:22 +00:00
pci Fix various NIC drivers to properly cleanup static DMA resources. 2014-06-11 14:53:58 +00:00
powerpc Commit the rest of the changes that were intended to be part of r266826. 2014-05-29 01:42:22 +00:00
rpc Fix race in r267221. 2014-06-09 15:00:43 +00:00
security audit: plug FILEDESC_LOCK leak in audit_canon_path. 2014-03-21 01:30:33 +00:00
sparc64 Restore comments accidentally removed. 2014-06-06 04:08:55 +00:00
sys Initialize sysctl OID structure by record. 2014-06-19 05:28:42 +00:00
teken Fix typo. 2014-02-06 13:28:06 +00:00
tools Call cpp with -P to avoid printing line markings. 2014-06-10 06:24:01 +00:00
ufs In msdosfs_setattr(), add a check for result of the utimes(2) 2014-06-17 07:11:00 +00:00
vm When MAP_STACK_GROWS_{DOWN,UP} are passed to vm_map_insert() set the 2014-06-19 16:26:16 +00:00
x86 Fix compile warning: Remove duplicate external declaration. 2014-06-19 05:06:24 +00:00
xdr
xen xen: add missing files 2014-06-16 08:54:04 +00:00
Makefile Reorganize this Makefile so that all the bsd.*.mk bits are in one 2014-05-29 16:03:08 +00:00