Commit 7c81a025 authored by Mukesh Sisodiya's avatar Mukesh Sisodiya Committed by Luca Coelho

iwlwifi: dbg: disable ini debug in 9000 family and below

Yoyo based debug is not applicable to old devices.  As init debug is
enabled by default in the driver, it needs to be disabled to work the
old debug mechanism in old devices.
Signed-off-by: default avatarMukesh Sisodiya <mukesh.sisodiya@intel.com>
Fixes: b0d8d2c2 ("iwlwifi: yoyo: enable yoyo by default")
Signed-off-by: default avatarLuca Coelho <luciano.coelho@intel.com>
Link: https://lore.kernel.org/r/iwlwifi.20210411132130.805401a1b8ec.I30db38184a418cfc1c5ca1a305cc14a52501d415@changeidSigned-off-by: default avatarLuca Coelho <luciano.coelho@intel.com>
parent 8932abef
// SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause // SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause
/* /*
* Copyright (C) 2018-2020 Intel Corporation * Copyright (C) 2018-2021 Intel Corporation
*/ */
#include <linux/firmware.h> #include <linux/firmware.h>
#include "iwl-drv.h" #include "iwl-drv.h"
...@@ -426,7 +426,8 @@ void iwl_dbg_tlv_load_bin(struct device *dev, struct iwl_trans *trans) ...@@ -426,7 +426,8 @@ void iwl_dbg_tlv_load_bin(struct device *dev, struct iwl_trans *trans)
const struct firmware *fw; const struct firmware *fw;
int res; int res;
if (!iwlwifi_mod_params.enable_ini) if (!iwlwifi_mod_params.enable_ini ||
trans->trans_cfg->device_family <= IWL_DEVICE_FAMILY_9000)
return; return;
res = firmware_request_nowarn(&fw, "iwl-debug-yoyo.bin", dev); res = firmware_request_nowarn(&fw, "iwl-debug-yoyo.bin", dev);
......
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