]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
iwlwifi: dbg: disable ini debug in 9000 family and below
authorMukesh Sisodiya <mukesh.sisodiya@intel.com>
Sun, 11 Apr 2021 10:25:44 +0000 (13:25 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 14 May 2021 08:50:10 +0000 (10:50 +0200)
[ Upstream commit 7c81a025054cd0aeeeaf17aba2e9757f0a6a38a1 ]

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: Mukesh Sisodiya <mukesh.sisodiya@intel.com>
Fixes: b0d8d2c27007 ("iwlwifi: yoyo: enable yoyo by default")
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Link: https://lore.kernel.org/r/iwlwifi.20210411132130.805401a1b8ec.I30db38184a418cfc1c5ca1a305cc14a52501d415@changeid
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/wireless/intel/iwlwifi/iwl-dbg-tlv.c

index a80a35a7740f38927f431d27764669647e6ab9ec..900bf546d86ed3c079976e92ccdeffbefc318449 100644 (file)
@@ -1,6 +1,6 @@
 // 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 "iwl-drv.h"
@@ -424,7 +424,8 @@ void iwl_dbg_tlv_load_bin(struct device *dev, struct iwl_trans *trans)
        const struct firmware *fw;
        int res;
 
-       if (!iwlwifi_mod_params.enable_ini)
+       if (!iwlwifi_mod_params.enable_ini ||
+           trans->trans_cfg->device_family <= IWL_DEVICE_FAMILY_9000)
                return;
 
        res = firmware_request_nowarn(&fw, "iwl-debug-yoyo.bin", dev);