]> www.infradead.org Git - users/jedix/linux-maple.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)
committerLuca Coelho <luciano.coelho@intel.com>
Wed, 14 Apr 2021 09:07:21 +0000 (12:07 +0300)
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>
drivers/net/wireless/intel/iwlwifi/iwl-dbg-tlv.c

index 579bc81cc0ae2ca5039aae459c2cbc33261c7054..4cd8c39cc3e95e197a2c5a822d1f3261076864aa 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"
@@ -426,7 +426,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);