Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp2468071rwi; Fri, 21 Oct 2022 04:20:07 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5BmfQBxPeHiNnwMEKki95icOTW9LoTg0LouP2O7giXisR+dy1uMWBQM/HhDZhNbdJ/MYvZ X-Received: by 2002:a17:902:f710:b0:178:a692:b1f7 with SMTP id h16-20020a170902f71000b00178a692b1f7mr19071369plo.112.1666351196092; Fri, 21 Oct 2022 04:19:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666351196; cv=none; d=google.com; s=arc-20160816; b=X/TPKhPZi0BUrO0WQ8xxOPoGG9uyWvorc6fkdCztfyKuOsnqFo6TS3XE7S5bqQV3Ro PQzd99GxrNbM8ouThyogHXimjb+TA9rx3i4Ar2N8Qa+GFGKweylioQ7cUkc6RDY+HXpL JwmHbNGOVgWHuwJx+kyAwfjS3VswTBp752rbdb/SvsjdNsj5y3aT+BeMT2+3/Zfj1Iv+ Mx8SmPs30IIXD45Nhz4TWrpneY7vT2dDN5OVZFpUuRSL9eVkT4hX8zX9SmudFAoHttBu ArLAFZbmtOjwzHelFycVYU3y8YoC83E1aVTNwr6rk32/Kmg1AIY0ItSn20bcTovweU6A U7Rw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:message-id:in-reply-to :date:references:subject:cc:to:from:dkim-signature; bh=qy87HHOitXb1mlCQlfrcrYrb3tQWoU+ox6LUe2pf0W0=; b=Qsxd66PP45107DBmBFtvQeQQ6L21ku5GVy/sdWZZvowu+7d8QisGGBkhR1tWdKUJ0Y Xv+yplI8F0CYLf0XzKnNVvCArxLy8Slv/hnT9ECoc65HJEd7KnNnWPZCeMwFbI4y2kTY rXUTbfs1M4kpC5t8RJmhhJLXxUjPsa7VnQY93JQVv9lw/cyiSq5BX+Czv+qP5vGopxHa Ra43iByecpVuO5a7EbghB+Ch0r9rXsuB+mAs3dqhp0I4S9RewENTpU3rr8kew7vPTg77 n1cntEgHMniFAv0P3/Auzyhs39sy92nTs4XwgNgKmW8F4w20q2drhHEhUToPUpwNeTZX EmoQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=rMsfyNxU; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 19-20020a170902c21300b001867a6a1791si1471675pll.426.2022.10.21.04.19.47; Fri, 21 Oct 2022 04:19:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=rMsfyNxU; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229478AbiJULTL (ORCPT + 65 others); Fri, 21 Oct 2022 07:19:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50272 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230139AbiJULS6 (ORCPT ); Fri, 21 Oct 2022 07:18:58 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 66546261086 for ; Fri, 21 Oct 2022 04:18:57 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id C8923B82A05 for ; Fri, 21 Oct 2022 11:18:53 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id AD2C6C433D7; Fri, 21 Oct 2022 11:18:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1666351132; bh=3ChRpt1xyFjKJVHC5jnaDEZiz50ObF+BIKimx31ihV8=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=rMsfyNxURen6SpN37CZF454omBkEDH8/h2gG67o55Ej1+E/BHmkE7nMV1qciQIaBz f9fdISqF+CrQCBXu5zH8Tbru/wUyD9Rzjmg0tRoI52jy9fl4HkJ4Ti0bO3J7cCWCFQ xL6C+tPp9gXHg6mbof5nh6hrZkrGOEocL6vMpd2DFudAYnnEz23M+S3okBjoXzW+y7 6jj9rmoLAPH0DpgxzkNXK0mGh9KMxlIlN6e+J44rjY6IU9gUv44F4fSg9Omo0RiA44 9BHvGlq7QCqvSWXc9rHvwdjr+MkCy1l6YWJ21dWCrcxgbFguLxA0FEqMqB7sM3qdco L1z3yw9B2/Upw== From: Kalle Valo To: Jeff Johnson Cc: , Subject: Re: [PATCH 10/50] wifi: ath12k: add debug.h References: <20220812161003.27279-1-kvalo@kernel.org> <20220812161003.27279-11-kvalo@kernel.org> <8b456221-07aa-2620-784f-ae44ed2aa431@quicinc.com> Date: Fri, 21 Oct 2022 14:18:49 +0300 In-Reply-To: <8b456221-07aa-2620-784f-ae44ed2aa431@quicinc.com> (Jeff Johnson's message of "Mon, 15 Aug 2022 13:11:21 -0700") Message-ID: <87ilkdjug6.fsf@kernel.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-7.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 Jeff Johnson writes: > On 8/12/2022 9:09 AM, Kalle Valo wrote: > >> From: Kalle Valo >> >> (Patches split into one patch per file for easier review, but the final >> commit will be one big patch. See the cover letter for more info.) >> >> Signed-off-by: Kalle Valo [...] >> +enum ath12k_debug_mask { >> + ATH12K_DBG_AHB = 0x00000001, >> + ATH12K_DBG_WMI = 0x00000002, >> + ATH12K_DBG_HTC = 0x00000004, >> + ATH12K_DBG_DP_HTT = 0x00000008, >> + ATH12K_DBG_MAC = 0x00000010, >> + ATH12K_DBG_BOOT = 0x00000020, >> + ATH12K_DBG_QMI = 0x00000040, >> + ATH12K_DBG_DATA = 0x00000080, >> + ATH12K_DBG_MGMT = 0x00000100, >> + ATH12K_DBG_REG = 0x00000200, >> + ATH12K_DBG_TESTMODE = 0x00000400, >> + ATH12K_DBG_HAL = 0x00000800, >> + ATH12K_DBG_PCI = 0x00001000, >> + ATH12K_DBG_DP_TX = 0x00001000, > > duplicate assignments above Praneesh fixed this: c8bd8aa45f6a ath12k: fix ATH12K_DBG_DP_TX value in ath12k_debug_mask > would using BIT() help here? > or does having the hex masks make it easier for folks generating the > masks Back in the early ath10k days these enums were actually usign BIT() but someone suggested to switch using hex numbers directly, just because it's faster to calculate the debug mask. And I have to agree with that, it's a lot easier when these are in hex. >> +#ifdef CONFIG_ATH12K_DEBUG >> +__printf(3, 4) void __ath12k_dbg(struct ath12k_base *ab, >> + enum ath12k_debug_mask mask, >> + const char *fmt, ...); >> +void ath12k_dbg_dump(struct ath12k_base *ab, >> + enum ath12k_debug_mask mask, >> + const char *msg, const char *prefix, >> + const void *buf, size_t len); >> +#else /* CONFIG_ATH12K_DEBUG */ >> +static inline int __ath12k_dbg(struct ath12k_base *ab, > > should be a void function with an empty body to match the signature of > the real function Praneesh fixed in: c568d8bc26de ath12k: convert payload[0] to payload[], use ab variable and fix __ath12k_dbg() signature -- https://patchwork.kernel.org/project/linux-wireless/list/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches