Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp3196742rdh; Mon, 27 Nov 2023 08:22:00 -0800 (PST) X-Google-Smtp-Source: AGHT+IFnXKtoUHfkoYbZjwT7da3L0hflBj179RJor1/d3aROu9IxHbBKuckEjwNupsyXGBYnkpHh X-Received: by 2002:a17:903:1207:b0:1ce:5f67:cfd3 with SMTP id l7-20020a170903120700b001ce5f67cfd3mr11658225plh.18.1701102120204; Mon, 27 Nov 2023 08:22:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701102120; cv=none; d=google.com; s=arc-20160816; b=zVT8iPcCPZ/yD6lkTZa7yNG8cpp57Jg0cqjTX+/w2UB32ky4kYbFByH5QG3QyGz71d OtnQCOsTfoMd3c/tW8e81A1+o9DTP2GTV5Y4RRQ2u5RT7TAZHteJ5IwUlztMqSBM15ax c6IdkMXORh3qcfi9mG2S2mBMAAxCDO5Rz9eLk46GdVou5alqXOBI5IolqrAaSJQ4bKRA 5mA83kyKDuMX2yMsW80r0OYMfnOYSAco6k54lBVBAgj4DUdBts4T1Zfu6V5OtWiB7koL WHNbZ0XZncAu8g/dQp7yhTXvurnBJLGlWKeho6ThtZCaQhpcwUgPkewd+cXaGRLCrVQb GLnQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=e2ej03UTHi15SZY3bIvuru57JSRtRrK30huYiFKC530=; fh=DsmpQugfDyHzy3r7IhaRWgu+h4RwOFD/lORqFRmQRCg=; b=LSbcyaiLiwE9NiQKaRgcKkHDglclHpsJ4HPgLYMxg5zseVvhowg1Td6AjpbGyaF/ZP diNebxpFSd5WtMiHWr6IBgWnT/6vvfCUo9JEt18NCWLV4gUACzc+cFy69St7ygNrOSA6 q3PyG/XoH3BiEXJaZo3nq0lz4PQ63JPOecLyk3/65xguz8pLW6RGHqfQ7MHmcO3F1IVL X34jIwdDjXhpZk7g1v/otf2ezpht3fuPxqtvAcJ1K2yQJfnxQcUciYaHxc3FplI8fbEg QiOUpYVjenY6l8GZSawJ5n4hElTrpaPMjl3ModODZbQnZ+VF51DKQgizhdYD3N7Nke+m EV1w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="dDte25c/"; spf=pass (google.com: domain of linux-wireless+bounces-113-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-113-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id h11-20020a170902f7cb00b001c3886b091asi9377109plw.127.2023.11.27.08.21.59 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Nov 2023 08:22:00 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless+bounces-113-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="dDte25c/"; spf=pass (google.com: domain of linux-wireless+bounces-113-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-113-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id BB01FB2170C for ; Mon, 27 Nov 2023 16:21:00 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3E9883717C; Mon, 27 Nov 2023 16:20:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="dDte25c/" X-Original-To: linux-wireless@vger.kernel.org Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1E4E8364B2; Mon, 27 Nov 2023 16:20:33 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 10ABCC433CA; Mon, 27 Nov 2023 16:20:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1701102032; bh=jnbhwmRl5zZlAGHpkM5vY+jFOya5KqTgBO3ldORwj7c=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=dDte25c/awNiRJwP+2/pSDXAAOOgEj04pV3I73rdGLt6puSaQ4kcF0CoDWBp55WbG jTLKWaBbB8QkzG+sBAHNS38VkGqmzP1kOI0w3+v/q4Pq+oiMuA10Zibi/9z78h0fTD HjzpWZsBdtBNzkFAI1ds9sIRhWNFcQeMz4oiZCUHjOQyGNx7BJkQg+f/N8hYJXuoGj TKmfy95UoKFuTrazxW22ax7QX3vBwwQhTBs1hncfIr/6YiOxnn5qy6Y63r7rOrzy9z 5G/MeBe5DQaK4lL0iHeMlAKAw3WvjrqtJRbjrWQHWjn0CI3BAXAxypwDxw3Kf8IOun EFHO/TQ7Htc6g== From: Kalle Valo To: mhi@lists.linux.dev Cc: ath11k@lists.infradead.org, linux-wireless@vger.kernel.org Subject: [PATCH RFC v2 6/8] wifi: ath11k: fix warning on DMA ring capabilities event Date: Mon, 27 Nov 2023 18:20:20 +0200 Message-Id: <20231127162022.518834-7-kvalo@kernel.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20231127162022.518834-1-kvalo@kernel.org> References: <20231127162022.518834-1-kvalo@kernel.org> Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Baochen Qiang We are seeing below warning in both reset and suspend/resume scenarios: [69663.691847] ath11k_pci 0000:02:00.0: Already processed, so ignoring dma ring caps This is because ab->num_db_cap is not cleared in ath11k_wmi_free_dbring_caps(), so clear it to avoid such warnings. Tested-on: WCN6855 hw2.0 PCI WLAN.HSP.1.1-03125-QCAHSPSWPL_V1_V2_SILICONZ_LITE-3.6510.30 Signed-off-by: Baochen Qiang Signed-off-by: Kalle Valo --- drivers/net/wireless/ath/ath11k/wmi.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/wireless/ath/ath11k/wmi.c b/drivers/net/wireless/ath/ath11k/wmi.c index 2845b4313d3a..b73d4286f7d3 100644 --- a/drivers/net/wireless/ath/ath11k/wmi.c +++ b/drivers/net/wireless/ath/ath11k/wmi.c @@ -4786,6 +4786,7 @@ static void ath11k_wmi_free_dbring_caps(struct ath11k_base *ab) { kfree(ab->db_caps); ab->db_caps = NULL; + ab->num_db_cap = 0; } static int ath11k_wmi_tlv_dma_ring_caps(struct ath11k_base *ab, -- 2.39.2