freebsd-dev/sys/dev/iwm
Bjoern A. Zeeb b294eac56b Fix logic errors in iwm_pcie_load_firmware_chunk introduced in r314065.
* There's no reason to have a while() loop here, because:
    - if msleep returns 0, that means we were woken up by the interrupt handler,
      and we are going to exit immediately as sc_fw_chunk_done will now be 1
      (there is nothing else that sleeps on sc_fw.)
    - if msleep doesn't return 0 (i.e. it returned ETIMEDOUT) then we will
      exit immediately because of the if-test.
   So, just use a single msleep() and then check sc_fw_chunk_done as before.
 * The comment said we were sleeping for 5 seconds, but the msleep was only
   for 1. Before r314065, this was 1 second and so was the comment,
   and in that commit the comment was changed and the function call wasn't.

Possibly fixes failures to initialize uCode on certain devices.

Submitted by:	Augustin Cavalier (waddlesplash gmail.com)
Obtained from:	Haiku 132990ecdcb072f2ce597b5d497ff3e5b1f09c20
MFC after:	10 days
2019-01-26 17:52:12 +00:00
..
if_iwm_7000.c [iwm] Add support for iwm 3168 cards 2018-03-28 07:59:16 +00:00
if_iwm_8000.c Add support for Intel 8265 WiFi 2017-10-09 15:48:56 +00:00
if_iwm_binding.c [iwm] Move Smart Fifo handling into if_iwm_sf.c, sync with Linux iwlwifi. 2017-06-04 21:05:58 +00:00
if_iwm_binding.h [if_iwm] Partly sync if_iwm_binding.c to Linux iwlwifi code. 2017-05-12 05:19:08 +00:00
if_iwm_config.h if_iwm - Add firmware API definitions for TX power commands. 2019-01-24 03:45:24 +00:00
if_iwm_constants.h [iwm] Add basic powermanagement support via ifconfig wlan0 powersave. 2017-05-09 04:15:07 +00:00
if_iwm_debug.h iwm - Improve firmware Time Event handling. 2019-01-24 03:47:04 +00:00
if_iwm_fw.c iwm - Reduce gratuitous differences with Linux iwlwifi in struct naming. 2019-01-24 03:43:45 +00:00
if_iwm_fw.h iwm - Reduce gratuitous differences with Linux iwlwifi in struct naming. 2019-01-24 03:43:45 +00:00
if_iwm_led.c iwm - Fix race during detach, where a callout is left after driver is gone. 2019-01-24 03:49:11 +00:00
if_iwm_led.h
if_iwm_mac_ctxt.c iwm - Track firmware state better, and improve handling in iwm_newstate(). 2019-01-24 03:45:55 +00:00
if_iwm_mac_ctxt.h [iwm] Properly implement iwm_wme_update callback function. 2017-05-12 05:50:38 +00:00
if_iwm_notif_wait.c
if_iwm_notif_wait.h
if_iwm_pcie_trans.c if_iwm - Configure the PCIe LTR, fix PCI express capability accesses. 2019-01-24 03:44:48 +00:00
if_iwm_pcie_trans.h
if_iwm_phy_ctxt.c [iwm] Allow listening on both chains/atennas to get diversity. 2017-05-09 05:31:38 +00:00
if_iwm_phy_ctxt.h
if_iwm_phy_db.c iwm - Reduce gratuitous differences with Linux iwlwifi in struct naming. 2019-01-24 03:43:45 +00:00
if_iwm_phy_db.h
if_iwm_power.c [iwm] Make powersaving more similar to Linux iwlwifi behaviour. 2017-05-12 06:31:57 +00:00
if_iwm_power.h [iwm] Switch arguments from iwm_node* to iwm_vap* in if_iwm_power.c. 2017-05-12 06:30:06 +00:00
if_iwm_scan.c iwm - Reduce gratuitous differences with Linux iwlwifi in struct naming. 2019-01-24 03:43:45 +00:00
if_iwm_scan.h
if_iwm_sf.c [iwm] Set correct state in smart-fifo configuration. 2017-06-04 21:12:11 +00:00
if_iwm_sf.h [iwm] Move Smart Fifo handling into if_iwm_sf.c, sync with Linux iwlwifi. 2017-06-04 21:05:58 +00:00
if_iwm_sta.c iwm - Track firmware state better, and improve handling in iwm_newstate(). 2019-01-24 03:45:55 +00:00
if_iwm_sta.h [iwm] Adjust if_iwm_sta.h prototypes, don't pass iwm_node to rm_sta(). 2017-05-12 06:33:07 +00:00
if_iwm_time_event.c iwm - Clear Time Event active state, when receiving End Notification. 2019-01-24 03:47:47 +00:00
if_iwm_time_event.h iwm - Clear Time Event active state, when receiving End Notification. 2019-01-24 03:47:47 +00:00
if_iwm_util.c [iwm] Add iwm_mvm_send_lq_cmd() from Linux iwlwifi to if_iwm_util.c. 2017-07-26 05:51:31 +00:00
if_iwm_util.h [iwm] Add iwm_mvm_send_lq_cmd() from Linux iwlwifi to if_iwm_util.c. 2017-07-26 05:51:31 +00:00
if_iwm.c Fix logic errors in iwm_pcie_load_firmware_chunk introduced in r314065. 2019-01-26 17:52:12 +00:00
if_iwmreg.h iwm - Remove unused TX_CMD_NEXT_FRAME_* 2019-01-24 03:50:27 +00:00
if_iwmvar.h iwm - Update alive response handling, add v4 and remove old versions. 2019-01-24 03:49:35 +00:00