if_iwm - Add some pcie device stop code from iwlwifi. Adjust a delay.
authorImre Vadász <imre@vdsz.com>
Sun, 24 Jul 2016 18:54:35 +0000 (20:54 +0200)
committerImre Vadász <imre@vdsz.com>
Sun, 28 Aug 2016 19:34:25 +0000 (21:34 +0200)
commit2427de166a76b82b8388c371c073111082acfa83
tree7d15763e54adc44a7c7eac42afbd2a53cc820581
parent5df2bc4977fd0112ec12c8b8632ac083f288136d
if_iwm - Add some pcie device stop code from iwlwifi. Adjust a delay.

* Make iwm_apm_stop put the device in Uninitialized state, like in iwlwifi.

* Add a device reset from iwlwifi to iwm_apm_stop, and make the DELAY
  after device reset in iwm_apm_init match the duration in iwlwifi.

* Swap iwm_disable_interrupts() and on-board processor reset in
  iwm_stop_device() corresponding to Linux git commit
  03d6c3b0fa4f5f0379cede079ec828a6c999fe43.

Taken-From: Linux iwlwifi
sys/dev/netif/iwm/if_iwm.c
sys/dev/netif/iwm/if_iwm_pcie_trans.c