Commit 2b0ceda9 authored by Mike Golant's avatar Mike Golant Committed by Luca Coelho

iwlwifi: pcie: add jacket bit to device configuration parsing

Some devices have same HW ID's and the only way to differentiate them is
by checking the jacket bit.
Signed-off-by: default avatarMike Golant <michael.golant@intel.com>
Signed-off-by: default avatarLuca Coelho <luciano.coelho@intel.com>
Link: https://lore.kernel.org/r/iwlwifi.20211210090244.cffa843734d3.I01963e494c459efde5d909c1085cd561e0df9df9@changeidSigned-off-by: default avatarLuca Coelho <luciano.coelho@intel.com>
parent 15664c1c
...@@ -448,6 +448,9 @@ struct iwl_cfg { ...@@ -448,6 +448,9 @@ struct iwl_cfg {
#define IWL_CFG_NO_CDB 0x0 #define IWL_CFG_NO_CDB 0x0
#define IWL_CFG_CDB 0x1 #define IWL_CFG_CDB 0x1
#define IWL_CFG_NO_JACKET 0x0
#define IWL_CFG_IS_JACKET 0x1
#define IWL_SUBDEVICE_RF_ID(subdevice) ((u16)((subdevice) & 0x00F0) >> 4) #define IWL_SUBDEVICE_RF_ID(subdevice) ((u16)((subdevice) & 0x00F0) >> 4)
#define IWL_SUBDEVICE_NO_160(subdevice) ((u16)((subdevice) & 0x0200) >> 9) #define IWL_SUBDEVICE_NO_160(subdevice) ((u16)((subdevice) & 0x0200) >> 9)
#define IWL_SUBDEVICE_CORES(subdevice) ((u16)((subdevice) & 0x1C00) >> 10) #define IWL_SUBDEVICE_CORES(subdevice) ((u16)((subdevice) & 0x1C00) >> 10)
...@@ -462,6 +465,7 @@ struct iwl_dev_info { ...@@ -462,6 +465,7 @@ struct iwl_dev_info {
u8 no_160; u8 no_160;
u8 cores; u8 cores;
u8 cdb; u8 cdb;
u8 jacket;
const struct iwl_cfg *cfg; const struct iwl_cfg *cfg;
const char *name; const char *name;
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment