Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp276141pxx; Wed, 28 Oct 2020 04:47:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx/yRAH/DFT16zV7aLZKe6x7P71uliTNG/xlUbq3L2nBc7qWI1l70LKH42SPaXWb0+9WrZF X-Received: by 2002:a17:906:a1d4:: with SMTP id bx20mr6968272ejb.262.1603885643760; Wed, 28 Oct 2020 04:47:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603885643; cv=none; d=google.com; s=arc-20160816; b=MYiKn5vUOZ4KHpQ/UFhY3anbN0JcY69Q1/cMK1dQB2E0E1K4RjZIhoUgZ0n74uMAnW FbGSmftmcmPjhUhBcV4aUEWV942INOYz4367TCMPqzn2aF+kTkUznGwYaSMdY9v9FvZY Fmj0Vr4rYDxobUn0fUlIIfgVwRvv1GUKmzluYWmF9rXwqCDuWV4njkUhk0MVlpxPadvX 9OfUQ5VLG/0Q/fWPKX+fbpClhNERLhufr30Xmqox391Atq8HLDvC9++Kv5spYynugNcn rF9ur4sa7p/f224n/Z7BfzkprLrEbEa7/rY3E5DC2yb7OmMFfYW3p7js4ZpnIWpXo3pj 6GrA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=DV1O6xBLrMCrx/Zjyp/oP+3366EafbKWwa11oCqK880=; b=OlR8f81Mfy35o1sqGvgx2kYZp0Hg38mSNhE5JHt5Q15TAYKilWfEy6bzyEgPBdLaF+ vUhDwlHp4b6HlzznNhbJLHCYSTN7CXtOk0WV0jXZY83pnRn+TQGo9L4oEmnZbdhlzFdh 3beBb39fm3K3O77QWQJVxHHznaIa+63vftBsWInOo8GcYAqGotbxylh94CyKnoVCgy3g q7YmOUkFenyxWcgMMaP2KBvGq6jnK88vZKP+EJY7FgiRl7VwMogTrooXmxgFr7V/Jswa nxx4nItTsj1TGMbn/TDMLfJrTKc9fZLOrypmBQeKvq9DErNT7cEp9cfbQlTItsLa3keL CpLw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=neuKJWM2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l12si2820211edk.163.2020.10.28.04.47.00; Wed, 28 Oct 2020 04:47:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=neuKJWM2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1794464AbgJ0PL5 (ORCPT + 99 others); Tue, 27 Oct 2020 11:11:57 -0400 Received: from mail.kernel.org ([198.145.29.99]:35128 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1783122AbgJ0PBV (ORCPT ); Tue, 27 Oct 2020 11:01:21 -0400 Received: from localhost (83-86-74-64.cable.dynamic.v4.ziggo.nl [83.86.74.64]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 7D53122281; Tue, 27 Oct 2020 15:01:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1603810880; bh=6yKgwq8e8HHq/+1ESZe2uSaLfiZHyPcJfeyMHTAD5qI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=neuKJWM2+13mJDK/VV0ABbAosu/rNwR6fDjmeBKL4IM8s65alSW2+8Rwx+huUzDTq 926xg/Kagxpbjgc+r1zQEtid5YWxtYAmRWtdxGA3hkpbRYQMHI1IQobBS53nPsfrWz +QsA4CW85CerHoAnJaQ+XiLT5pvICs12/tie9Yic= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Mordechay Goodstein , Luca Coelho , Sasha Levin Subject: [PATCH 5.8 296/633] iwlwifi: dbg: run init_cfg function once per driver load Date: Tue, 27 Oct 2020 14:50:39 +0100 Message-Id: <20201027135536.554247155@linuxfoundation.org> X-Mailer: git-send-email 2.29.1 In-Reply-To: <20201027135522.655719020@linuxfoundation.org> References: <20201027135522.655719020@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Mordechay Goodstein [ Upstream commit 42f8a2735cc218b6b372134684d4cd3c1423f123 ] Every time we call init_cfg driver appends the enabled triggers to the active triggers while this should be done only once per driver load. Signed-off-by: Mordechay Goodstein Fixes: 14124b25780d ("iwlwifi: dbg_ini: implement monitor allocation flow") Signed-off-by: Luca Coelho Link: https://lore.kernel.org/r/iwlwifi.20200930161256.79bd622e604a.Ie0f79d2ea90ca5cdf363f56194ead81b0a2c6202@changeid Signed-off-by: Luca Coelho Signed-off-by: Sasha Levin --- drivers/net/wireless/intel/iwlwifi/iwl-dbg-tlv.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/net/wireless/intel/iwlwifi/iwl-dbg-tlv.c b/drivers/net/wireless/intel/iwlwifi/iwl-dbg-tlv.c index 641da49b1b86e..48269a4cf8964 100644 --- a/drivers/net/wireless/intel/iwlwifi/iwl-dbg-tlv.c +++ b/drivers/net/wireless/intel/iwlwifi/iwl-dbg-tlv.c @@ -1011,6 +1011,9 @@ static void iwl_dbg_tlv_init_cfg(struct iwl_fw_runtime *fwrt) enum iwl_fw_ini_buffer_location *ini_dest = &fwrt->trans->dbg.ini_dest; int ret, i; + if (*ini_dest != IWL_FW_INI_LOCATION_INVALID) + return; + IWL_DEBUG_FW(fwrt, "WRT: Generating active triggers list, domain 0x%x\n", fwrt->trans->dbg.domains_bitmap); -- 2.25.1