Fix the resume code path in iwm(4) to no longer call iwm_stop() before
authorstsp <stsp@openbsd.org>
Fri, 9 Jun 2017 13:46:15 +0000 (13:46 +0000)
committerstsp <stsp@openbsd.org>
Fri, 9 Jun 2017 13:46:15 +0000 (13:46 +0000)
commite334da63d12bb3af6867952b4220c42f98b81824
tree7814e495e1ab6db73b9c8640951d1eca1a77c130
parenta20837a7327f617f02374787c41f6dd0c116fb1c
Fix the resume code path in iwm(4) to no longer call iwm_stop() before
initializing the hardware. Prevents "acquiring device failed" messages
during resume. Also, start the hardware up in DVACT_RESUME already and
verify that it has started by the time we reach DVACT_WAKEUP, before
scheduling the iwm_init_task which loads firmware etc.
With help from deraadt@
test & ok tb@
sys/dev/pci/if_iwm.c