]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
iwlwifi: mvm/api: define system control command
authorJohannes Berg <johannes.berg@intel.com>
Sat, 4 Dec 2021 15:49:34 +0000 (17:49 +0200)
committerLuca Coelho <luciano.coelho@intel.com>
Tue, 7 Dec 2021 18:06:45 +0000 (20:06 +0200)
The firmware is exposing a new system features control command,
define the necessary data structures etc. Rename "soc.h" to
"system.h" since the SoC command is also in the system group
and adding another file for just one more struct seemed like a
waste of files.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Link: https://lore.kernel.org/r/iwlwifi.20211204174545.94a120687887.I79acffcf0793ea9e4ddec24b06420961bfb4fe94@changeid
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
drivers/net/wireless/intel/iwlwifi/fw/api/commands.h
drivers/net/wireless/intel/iwlwifi/fw/api/system.h [moved from drivers/net/wireless/intel/iwlwifi/fw/api/soc.h with 70% similarity]
drivers/net/wireless/intel/iwlwifi/fw/init.c
drivers/net/wireless/intel/iwlwifi/mvm/fw-api.h
drivers/net/wireless/intel/iwlwifi/mvm/ops.c

index 2792fd5d9c9b51d2c52cff378c5679ec8484eea0..dab02a6a2622f8bebd9ab58b8ce3dd23a9a7153b 100644 (file)
@@ -614,6 +614,11 @@ enum iwl_system_subcmd_ids {
         * @RFI_GET_FREQ_TABLE_CMD: &struct iwl_rfi_config_cmd
         */
        RFI_GET_FREQ_TABLE_CMD = 0xc,
+
+       /**
+        * @SYSTEM_FEATURES_CONTROL_CMD: &struct iwl_system_features_control_cmd
+        */
+       SYSTEM_FEATURES_CONTROL_CMD = 0xd,
 };
 
 #endif /* __iwl_fw_api_commands_h__ */
similarity index 70%
rename from drivers/net/wireless/intel/iwlwifi/fw/api/soc.h
rename to drivers/net/wireless/intel/iwlwifi/fw/api/system.h
index c5df1171462bcf202f0434a09b55b5df923e631d..acf5d4b9a2141142aae0219a49ec78d34ad7b30c 100644 (file)
@@ -1,11 +1,11 @@
 /* SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause */
 /*
- * Copyright (C) 2012-2014, 2019-2020 Intel Corporation
+ * Copyright (C) 2012-2014, 2019-2021 Intel Corporation
  * Copyright (C) 2013-2015 Intel Mobile Communications GmbH
  * Copyright (C) 2016-2017 Intel Deutschland GmbH
  */
-#ifndef __iwl_fw_api_soc_h__
-#define __iwl_fw_api_soc_h__
+#ifndef __iwl_fw_api_system_h__
+#define __iwl_fw_api_system_h__
 
 #define SOC_CONFIG_CMD_FLAGS_DISCRETE          BIT(0)
 #define SOC_CONFIG_CMD_FLAGS_LOW_LATENCY       BIT(1)
@@ -32,4 +32,12 @@ struct iwl_soc_configuration_cmd {
             * SOC_CONFIGURATION_CMD_S_VER_2
             */
 
-#endif /* __iwl_fw_api_soc_h__ */
+/**
+ * struct iwl_system_features_control_cmd - system features control command
+ * @features: bitmap of features to disable
+ */
+struct iwl_system_features_control_cmd {
+       __le32 features[4];
+} __packed; /* SYSTEM_FEATURES_CONTROL_CMD_API_S_VER_1 */
+
+#endif /* __iwl_fw_api_system_h__ */
index 566957ac45393ccdbc71bc81c494302c7533a854..139ece879fab59d81342da83b34001bb5b8e9f0a 100644 (file)
@@ -8,7 +8,7 @@
 #include "dbg.h"
 #include "debugfs.h"
 
-#include "fw/api/soc.h"
+#include "fw/api/system.h"
 #include "fw/api/commands.h"
 #include "fw/api/rx.h"
 #include "fw/api/datapath.h"
index 73a82f07dc594960f04903bf89693b163774e908..083f86fa501754957207b8a81a31b6a76cb6968f 100644 (file)
@@ -15,7 +15,7 @@
 #include "fw/api/datapath.h"
 #include "fw/api/phy.h"
 #include "fw/api/config.h"
-#include "fw/api/soc.h"
+#include "fw/api/system.h"
 #include "fw/api/alive.h"
 #include "fw/api/binding.h"
 #include "fw/api/cmdhdr.h"
index 9e53769b800aa5ede096ba348ae1c27053369b13..8056018600add7637ed5c9a9545583589defe3a1 100644 (file)
@@ -500,6 +500,7 @@ static const struct iwl_hcmd_names iwl_mvm_system_names[] = {
        HCMD_NAME(FW_ERROR_RECOVERY_CMD),
        HCMD_NAME(RFI_CONFIG_CMD),
        HCMD_NAME(RFI_GET_FREQ_TABLE_CMD),
+       HCMD_NAME(SYSTEM_FEATURES_CONTROL_CMD),
 };
 
 /* Please keep this array *SORTED* by hex value.