• Ben Cahill's avatar
    iwlwifi: remove power-wasting calls to apm_ops.init() · 88521364
    Ben Cahill authored
    To save power, don't run apm_ops.init() until needed at "up" time.
    
    EEPROM (5000 and earlier devices) may be read without running apm_ops.init(),
    but OTP reads (6000 and newer devices) require a powered-up chip.
    Therefore, remove apm_ops.init() from the general path in XXXX_pci_probe(),
    and call it only if device uses OTP.  Once done with OTP read, call
    apm_ops.stop() to reset chip and save power until "up" time comes around.
    
    NOTE:  This patch depends on removal of priv->lock from iwl_apm_stop();
    lock does not get initialized until later in flow.  See patch
    "remove unneeded locks from apm_stop()".
    Signed-off-by: default avatarBen Cahill <ben.m.cahill@intel.com>
    Signed-off-by: default avatarReinette Chatre <reinette.chatre@intel.com>
    Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
    88521364
iwl3945-base.c 119 KB