Revert "wifi: iwlwifi: remove fw_running op"
This reverts commit 16883bf3ae
.
This commit is contained in:
parent
254706192f
commit
dd0cd80967
3 changed files with 9 additions and 1 deletions
|
@ -275,7 +275,8 @@ static ssize_t iwl_dbgfs_send_hcmd_write(struct iwl_fw_runtime *fwrt, char *buf,
|
|||
.data = { NULL, },
|
||||
};
|
||||
|
||||
if (!iwl_trans_fw_running(fwrt->trans))
|
||||
if (fwrt->ops && fwrt->ops->fw_running &&
|
||||
!fwrt->ops->fw_running(fwrt->ops_ctx))
|
||||
return -EIO;
|
||||
|
||||
if (count < header_size + 1 || count > 1024 * 4)
|
||||
|
|
|
@ -72,6 +72,7 @@
|
|||
struct iwl_fw_runtime_ops {
|
||||
int (*dump_start)(void *ctx);
|
||||
void (*dump_end)(void *ctx);
|
||||
bool (*fw_running)(void *ctx);
|
||||
int (*send_hcmd)(void *ctx, struct iwl_host_cmd *host_cmd);
|
||||
bool (*d3_debug_enable)(void *ctx);
|
||||
};
|
||||
|
|
|
@ -577,6 +577,11 @@ static void iwl_mvm_fwrt_dump_end(void *ctx)
|
|||
mutex_unlock(&mvm->mutex);
|
||||
}
|
||||
|
||||
static bool iwl_mvm_fwrt_fw_running(void *ctx)
|
||||
{
|
||||
return iwl_mvm_firmware_running(ctx);
|
||||
}
|
||||
|
||||
static int iwl_mvm_fwrt_send_hcmd(void *ctx, struct iwl_host_cmd *host_cmd)
|
||||
{
|
||||
struct iwl_mvm *mvm = (struct iwl_mvm *)ctx;
|
||||
|
@ -597,6 +602,7 @@ static bool iwl_mvm_d3_debug_enable(void *ctx)
|
|||
static const struct iwl_fw_runtime_ops iwl_mvm_fwrt_ops = {
|
||||
.dump_start = iwl_mvm_fwrt_dump_start,
|
||||
.dump_end = iwl_mvm_fwrt_dump_end,
|
||||
.fw_running = iwl_mvm_fwrt_fw_running,
|
||||
.send_hcmd = iwl_mvm_fwrt_send_hcmd,
|
||||
.d3_debug_enable = iwl_mvm_d3_debug_enable,
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue