mirror of
https://github.com/opnsense/src.git
synced 2026-04-14 22:07:34 -04:00
* 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
|
||
|---|---|---|
| .. | ||
| if_iwm.c | ||
| if_iwm_7000.c | ||
| if_iwm_8000.c | ||
| if_iwm_binding.c | ||
| if_iwm_binding.h | ||
| if_iwm_config.h | ||
| if_iwm_constants.h | ||
| if_iwm_debug.h | ||
| if_iwm_fw.c | ||
| if_iwm_fw.h | ||
| if_iwm_led.c | ||
| if_iwm_led.h | ||
| if_iwm_mac_ctxt.c | ||
| if_iwm_mac_ctxt.h | ||
| if_iwm_notif_wait.c | ||
| if_iwm_notif_wait.h | ||
| if_iwm_pcie_trans.c | ||
| if_iwm_pcie_trans.h | ||
| if_iwm_phy_ctxt.c | ||
| if_iwm_phy_ctxt.h | ||
| if_iwm_phy_db.c | ||
| if_iwm_phy_db.h | ||
| if_iwm_power.c | ||
| if_iwm_power.h | ||
| if_iwm_scan.c | ||
| if_iwm_scan.h | ||
| if_iwm_sf.c | ||
| if_iwm_sf.h | ||
| if_iwm_sta.c | ||
| if_iwm_sta.h | ||
| if_iwm_time_event.c | ||
| if_iwm_time_event.h | ||
| if_iwm_util.c | ||
| if_iwm_util.h | ||
| if_iwmreg.h | ||
| if_iwmvar.h | ||