]> git.baikalelectronics.ru Git - kernel.git/commit
iwlwifi: load firmware in chunks
authorJohannes Berg <johannes.berg@intel.com>
Mon, 10 Sep 2012 09:50:18 +0000 (11:50 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 10 Sep 2012 17:14:30 +0000 (19:14 +0200)
commit564bc00fa7a29e7d34a44b7f92bf0f21310a9ff9
treefb2f84fa74450f89cbb429a7457ff0e80ece35b7
parent37cc2b8568385de65af5e5b4c723ba8d95b16b49
iwlwifi: load firmware in chunks

Instead of allocating one big chunk of DMA-coherent
memory for the firmware and keeping it around, only
vmalloc() the firmware and copy it into a single
page of DMA-coherent memory for the upload.

The advantage is that we don't need DMA memory for
the firmware image that is stored while the driver
is operating, we only need it while uploading.

This will make it easier for the driver to work if
the system has fragmented memory.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/iwlwifi/dvm/ucode.c
drivers/net/wireless/iwlwifi/iwl-drv.c
drivers/net/wireless/iwlwifi/iwl-fw.h
drivers/net/wireless/iwlwifi/pcie/trans.c