iwlwifi: refactor EEPROM reading/parsing

The EEPROM reading/parsing code is all mixed in
the driver today, and the EEPROM is parsed only
when we access data from it. This is problematic
because the NVM needs to be parsed and that is
independent of reading it. Also, the NVM format
for new devices will be different and probably
require a new parser.

Therefore refactor the reading and parsing and
create two independent components. Reading the
EEPROM requires direct hardware accesses and
therefore access to the transport, but parsing
is independent and can be done on an NVM blob.

Reviewed-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
This commit is contained in:
Johannes Berg
2012-05-21 11:55:54 +02:00
parent 08838cdeca
commit 26a7ca9a71
32 ha cambiato i file con 1855 aggiunte e 1997 eliminazioni

Vedi File

@@ -36,7 +36,6 @@
#include "iwl-modparams.h"
#include "iwl-debug.h"
#include "agn.h"
#include "eeprom.h"
#include "dev.h"
#include "commands.h"
#include "tt.h"