git: if_iwm - Move iwm_read_firmware() call into iwm_attach().
ivadasz at crater.dragonflybsd.org
Sat Nov 12 05:13:34 PST 2016
Author: Imre VadÃ¡sz <imre at vdsz.com>
Date: Sat Nov 12 13:41:49 2016 +0100
if_iwm - Move iwm_read_firmware() call into iwm_attach().
* We should load the firmware exactly once before the driver really
initializes the hardware the first time, and unload it at detach time.
There is no need to retrieve the firmware during execution of
iwm_mvm_load_ucode_wait_alive(), we should make sure we already have the
firmware data at hand before that.
* The existing sc_preinit_hook code fails to deal with the case where
if_iwm is loaded by the loader (or is statically linked) and the
firmware needs to be loaded from disk. So we can just call
iwm_read_firmware() from iwm_attach() directly.
* A separate solution will have to be added to properly defer the firmware
loading during bootup, until the necessary filesystem is mounted.
Summary of changes:
sys/dev/netif/iwm/if_iwm.c | 115 ++++++++++++++++--------------------------
sys/dev/netif/iwm/if_iwmvar.h | 10 ----
2 files changed, 44 insertions(+), 81 deletions(-)
DragonFly BSD source repository
More information about the Commits