]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
iwlwifi: consolidate hw scheduler configuration code
authorAvri Altman <avri.altman@intel.com>
Mon, 14 Jul 2014 06:40:27 +0000 (09:40 +0300)
committerEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Wed, 3 Sep 2014 19:49:00 +0000 (22:49 +0300)
commit680073b78a5ac2b559bb7315528aa9f95e57ae24
tree9816d75444d71b477425291e878b8339c2b8771b
parentd20d37bc39766ecc31e68bc9cf238eab27a4157b
iwlwifi: consolidate hw scheduler configuration code

Configuring the hw scheduler during queue enablement is done by
writing the appropriate values to the scheduler peripherals, and
it is essentially the same for all buses.

Whenever writing is done via the standard iwl_write_prph, we can
avoid duplicating the code for each bus. Those operations are
queue deactivation, RA/TID mapping, chain-building settings,
enabling/disabling aggregations and activating/deactivating the
TX FIFOs.

Consolidate this code using static inlines in a new header file.

Signed-off-by: Avri Altman <avri.altman@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
drivers/net/wireless/iwlwifi/iwl-scd.h [new file with mode: 0644]
drivers/net/wireless/iwlwifi/pcie/tx.c