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
if_iwm_binding.c
if_iwm_binding.h
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
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
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
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
if_iwm_power.h
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
if_iwm_sf.h
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
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
if_iwm_util.h
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