• Johannes Berg's avatar
    iwlagn: avoid hangs when restarting device · 9d39e5ba
    Johannes Berg authored
    If a device error happens while the uCode is
    being loaded or initialised, we will attempt
    to restart the device (which will likely fail
    again, but that's not the issue here). During
    this new restart, we turn off the device, but
    as the uCode failed to initialise it already
    is turned off. As a consequence, grabbing NIC
    access will fail and cause excessive messages
    and hangs.
    
    To fix this issue, introduce a new status bit
    and only attempt to reprogram the device when
    it isn't already disabled.
    Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
    Signed-off-by: default avatarWey-Yi Guy <wey-yi.w.guy@intel.com>
    9d39e5ba
iwl-agn-lib.c 68.9 KB