• Johannes Berg's avatar
    iwlwifi: refactor EEPROM reading/parsing · 26a7ca9a
    Johannes Berg authored
    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: default avatarEmmanuel Grumbach <emmanuel.grumbach@intel.com>
    Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
    26a7ca9a
main.c 59.8 KB