]> Pileus Git - ~andy/linux/commitdiff
iwlwifi: reverse DATA/INST section order
authorJohannes Berg <johannes.berg@intel.com>
Wed, 15 May 2013 11:05:25 +0000 (13:05 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Thu, 16 May 2013 21:14:24 +0000 (23:14 +0200)
As the new MVM firmware files package the DATA section
first, and debugfs files want to access the DATA and
not INST section, reverse the order here. This is only
relevant for debugfs code that accesses the SRAM DATA
section and uses this constant to access the section.

Reviewed-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/iwlwifi/iwl-fw.h

index c4c446d41eb081bf0f7eb37034a3137faf5a281e..f844d5c748c09ef49418cf6c7999e0146a188a77 100644 (file)
@@ -106,11 +106,14 @@ enum iwl_ucode_type {
 
 /*
  * enumeration of ucode section.
- * This enumeration is used for legacy tlv style (before 16.0 uCode).
+ * This enumeration is used directly for older firmware (before 16.0).
+ * For new firmware, there can be up to 4 sections (see below) but the
+ * first one packaged into the firmware file is the DATA section and
+ * some debugging code accesses that.
  */
 enum iwl_ucode_sec {
-       IWL_UCODE_SECTION_INST,
        IWL_UCODE_SECTION_DATA,
+       IWL_UCODE_SECTION_INST,
 };
 /*
  * For 16.0 uCode and above, there is no differentiation between sections,