1. 03 11月, 2009 4 次提交
    • B
      iwlwifi: remove power-wasting calls to apm_ops.init() · 88521364
      Ben Cahill 提交于
      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: NBen Cahill <ben.m.cahill@intel.com>
      Signed-off-by: NReinette Chatre <reinette.chatre@intel.com>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      88521364
    • B
      iwlwifi: remove unneeded locks from apm_stop() and stop_master() · 5220af0c
      Ben Cahill 提交于
      Since priv->reg_lock was added to keep multi-access register manipulation
      atomic, priv->lock protection is no longer needed.  Remove this from
      iwl_apm_stop_master() and iwl_apm_stop().
      
      Add warning of timeout when polling for busmaster disablement confirmation,
      and some comments.
      
      NOTE:  This is needed to enable use of apm_ops.stop() within iwl_eeprom_init();
      priv->lock does not get initialized until after this flow.  See patch
      "remove power-wasting calls to apm_ops.init()"
      Signed-off-by: NBen Cahill <ben.m.cahill@intel.com>
      Signed-off-by: NReinette Chatre <reinette.chatre@intel.com>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      5220af0c
    • R
      iwlwifi: provide firmware version · 5ebeb5a6
      Reinette Chatre 提交于
      By setting the firmware version in wiphy it is possible to obtain this
      information via ethtool. Some examples,
      
      	    # ethtool -i wlan1
      	    driver: iwlagn
      	    version: 2.6.32-rc5-wl-56840-g26d8540
      	    firmware-version: 228.57.2.23
      	    bus-info: 0000:03:00.0
      	    # ethtool -i wlan0
      	    driver: iwl3945
      	    version: 2.6.32-rc5-wl-56840-g26d8540
      	    firmware-version: 15.28.2.8
      	    bus-info: 0000:02:00.0
      Signed-off-by: NReinette Chatre <reinette.chatre@intel.com>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      5ebeb5a6
    • A
      libertas: remove internal buffers from GSPI driver · 86c34fe8
      Andrey Yurovsky 提交于
      This patch removes the internal command and data buffers that the GSPI driver
      maintained and instead relies on the Libertas core to synchronize access
      to the command and data ports as with the other interface drivers.  This
      cleanup reduces the GSPI driver's memory footprint and should improve
      performance by removing the need to copy to these internal buffers.
      This also simplifies the bottom half of the interrupt handler.
      
      This is an incremental cleanup: after removing the redundant buffers, we
      can further improve the driver to use a threaded IRQ handler instead of
      maintaining its own thread.  However I would like a few folks to test
      the buffer removal first and make sure that I'm not introducing
      regressions.
      
      Tested on Blackfin BF527 with DMA disabled due to an issue with the SPI
      host controller driver in the current bleeding-edge Blackfin kernel.  I
      would appreciate it if someone with working DMA could test this patch
      and provide feedback.
      Signed-off-by: NAndrey Yurovsky <andrey@cozybit.com>
      Tested-by: NGeorge Shore <george.shore@imgtec.com>
      Acked-by: NDan Williams <dcbw@redhat.com>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      86c34fe8
  2. 31 10月, 2009 32 次提交
  3. 28 10月, 2009 4 次提交