Received: by 2002:a05:7412:3784:b0:e2:908c:2ebd with SMTP id jk4csp2018448rdb; Tue, 3 Oct 2023 08:01:48 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGViGZuAB1csRJCjD1RkMYCYu+VPOCJ7OEsYBoAgvdnA6CPiyfLdx2WcusTwuzSKSuDkam7 X-Received: by 2002:a05:6a00:23ce:b0:68e:42c9:74e0 with SMTP id g14-20020a056a0023ce00b0068e42c974e0mr14478103pfc.3.1696345308134; Tue, 03 Oct 2023 08:01:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696345308; cv=none; d=google.com; s=arc-20160816; b=eEQU1g/4Y+fjvAUB0F54m4XrpFr51r8v1Aj+5+yslZQqfCCvXqH87Ud93fkvJVoIIq F/UD2AopMijPOlAuXvgCkn6qiLnSIX349UfR9DQChXfUL6B0F3RTvMRunw0LE17300xo 8mcET3KriYsqE51aILjJuQWS1VMEto7X1yvx3v40kQiKW1QVz6BWjZUc1TQadCpXdODB 1pbzvQl1X7MbSdddYbMeWTE5oMjMgHuaa4fEokulpv2vSh/3eECgJiHb5SMJidtbWB+3 bqJPmHJPOcytlq7S1fePTE6S7WP1/rnT7w2c655rvitylfThHpn6XwX5EQ0oedMT2+Tc kvGw== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=uaHp7Ci7L7pI9dUPTHwpeaus1JOihZHte9oMY0a9RDQ=; fh=unOd+iR/s4g3ccNRscfqoIvCvfbfQt24cpkffWnNbx8=; b=Vj6yDC/VxyOx2CsjN0dV0pmWatNGG74+0AB8dNaTDwVcsDggczALrDg4HPwB/IlJw7 OJsTBEffUs1JH+JrkvZLuyHYHxH2uOiHUCk50utIfL/ngR6CgkFOnFNRZAoi26suAJjC rxtoPHEDen64S/s2fOk5H6wESlAdGlKnbDeryn/7R3qrpEWekx2ajmQvDnp6lAKwRw8L 55cDcQLe+FJf3kIgAdD6CM1Yh10DGEvxEh8lP0JLV4iFeKUoKnfd+IcS9Bgq1pshfAbF dF0nRieJbiiad/wR2t/HHRtvvcSjHD0tNes5wSHTcPsU4G/ehCPQNAW1YAw6SM8UK/W7 v4ew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="CbosmV/b"; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id z27-20020a056a001d9b00b00690d55d630dsi1575624pfw.274.2023.10.03.08.01.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Oct 2023 08:01:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="CbosmV/b"; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id BAAD182A8570; Tue, 3 Oct 2023 08:01:46 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240226AbjJCPBr (ORCPT + 53 others); Tue, 3 Oct 2023 11:01:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43402 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240576AbjJCPBi (ORCPT ); Tue, 3 Oct 2023 11:01:38 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BF561A1 for ; Tue, 3 Oct 2023 08:01:35 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C42EFC433C8; Tue, 3 Oct 2023 15:01:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1696345295; bh=lVcxIOxipF//JQsTO3JXp6HIOgSsOIh5C2sbfnSbzhw=; h=From:To:Cc:Subject:Date:From; b=CbosmV/bZL50DTPQD2iDFbm5HTNgTYuN+ab+ixJKEwcM+u+cR+KHKfBIeN9oEEgjf XA/6a1P/Uu1grtQofMTDJdoAQNlUxfi4iG27XZ311+OrDw58TG76/lSiqh4Cwkmjl/ EXqZZuYp/tdGT/TZKdYNRfreKj08WhMr2kwNl5TcXxoPNxdmtM2GY7beJv8FZoB01L 5Vb8F/lBuolgH1MIVNeejOtrxiwiVwywZfoUeoyQO3zNXX86aZ60RwUOJlj9r/rmgF R8ZrPkk2rQuTGYebnJfYec7QK+FGQq8q80KvIQ1IPsfJht4EXJ4Gwt+/pPliNoT+dO QsOt1idAOdg8Q== From: Kalle Valo To: ath12k@lists.infradead.org Cc: linux-wireless@vger.kernel.org Subject: [PATCH] wifi: ath12k: fix debug messages Date: Tue, 3 Oct 2023 18:01:32 +0300 Message-Id: <20231003150132.187875-1-kvalo@kernel.org> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Tue, 03 Oct 2023 08:01:47 -0700 (PDT) From: Kalle Valo In ath12k the debug messages were broken, no matter setting what value to the debug_mask module parameter would not get the debug messages printed. The issue is that __ath12k_dbg() uses dev_dbg() to print the debug messages which requires either enabling CONFIG_DYNAMIC_DEBUG or DEBUG symbol in the driver. ath12k is supposed to use debug_mask module to control whether debug messages are printed or not. Using both CONFIG_DYNAMIC_DEBUG and debug_mask parameter does not make any sense so switch to using dev_printk(), just like ath11k does. Now it's enough just to debug_mask module parameter to get the debug messages. Tested-on: QCN9274 hw2.0 PCI WLAN.WBE.1.0.1-00029-QCAHKSWPL_SILICONZ-1 Signed-off-by: Kalle Valo --- drivers/net/wireless/ath/ath12k/debug.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/ath/ath12k/debug.c b/drivers/net/wireless/ath/ath12k/debug.c index 67893923e010..45d33279e665 100644 --- a/drivers/net/wireless/ath/ath12k/debug.c +++ b/drivers/net/wireless/ath/ath12k/debug.c @@ -64,7 +64,7 @@ void __ath12k_dbg(struct ath12k_base *ab, enum ath12k_debug_mask mask, vaf.va = &args; if (ath12k_debug_mask & mask) - dev_dbg(ab->dev, "%pV", &vaf); + dev_printk(KERN_DEBUG, ab->dev, "%pV", &vaf); /* TODO: trace log */ base-commit: 140accd3f29eee6507f8a51bc38e85c119aedf14 -- 2.39.2