Received: by 2002:a05:7412:b795:b0:e2:908c:2ebd with SMTP id iv21csp337594rdb; Thu, 2 Nov 2023 05:24:39 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFVVT4idMoNNmg1biR/5Xlg+vCwucGMOOZwPxJGc+IROX9lEic/I97lh1XdPM6iOtfU+sd/ X-Received: by 2002:a17:902:a510:b0:1bb:b855:db3c with SMTP id s16-20020a170902a51000b001bbb855db3cmr12401830plq.41.1698927878814; Thu, 02 Nov 2023 05:24:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698927878; cv=none; d=google.com; s=arc-20160816; b=biaRI0rf7Gaoj/OmfjQAyd/qldN8WAvGBz/3JklFL6nCnaMYOHFwJ7FSVYvgdV2osA JPYogEQmoK/EcyuO6xJtQYQf5KcaUazkWYB0zq2+hniA2DvHZqoiGhsG7JukQlBv90p+ ilLLCAtDGpYAnv1PecDozYrGS1CMhIHL0Vf2nl4f9bIMKdxn/XZst6JoB6k3plADOLRe O/ac4AzB4IWWeKSJHGPYbMHfOHZTxQ0GQ78Oj5lVT9e/U7dhiClM/tLiGrJ/uax/kxhh qpYr8JGChvVmEovB6iNAKha1+2mr7mYVqSgFEfj1dMtzcYntP2+lN485G3hmC1J1q95V qq0A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-id:mime-version:references:message-id :in-reply-to:subject:cc:to:from:date:dkim-signature; bh=i4lqXqU4eGVHctbtbkvh9MEgkVxuZ20KFF/cPuY+2Us=; fh=ghPtoNG7Qvr9hZ8NoLQmZ0WY3ZVhJx67MY6riM9xi+k=; b=OFqqx4TnLdM73ES3SKIrQdH/5vEgP9Do2W8caFF718n7SqEEkl+iUznOO3w3Wg5k/5 qy7wmw3O39cXmO2Gk4cuwTGrmgdltVjQmvokIS5n9Sx+vLdCNgIqMiseQUElsnR29/H8 1rpOSAKF/Y3uRlg6/ArQo2DA1gfwyQ4E5c4P0xP9EZGdXwmjtSkX9/jqztXkLlf6TBeM 3nnSNAKEfZ+79lrDH72NSeJELRAmgM1upEyF5qHnNU6l6Vc0YK0MEiTqD/5ALvNJaBzJ MMuo/NIq3mCmxmW3me2QVkBgn9RPoyip4P0cYprT7CZRF2MpCQU9rh7Mm6LFv7cHzakn y2XQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Zu2OGUil; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id ij7-20020a170902ab4700b001c9c83947d1si4787658plb.645.2023.11.02.05.24.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 Nov 2023 05:24:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Zu2OGUil; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id AAA978028BB6; Thu, 2 Nov 2023 05:24:22 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346548AbjKBMYW (ORCPT + 52 others); Thu, 2 Nov 2023 08:24:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35588 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229806AbjKBMYW (ORCPT ); Thu, 2 Nov 2023 08:24:22 -0400 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.9]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0F612112; Thu, 2 Nov 2023 05:24:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1698927854; x=1730463854; h=date:from:to:cc:subject:in-reply-to:message-id: references:mime-version:content-id; bh=Hn3HxLIchr3g7rx6JvOiqgfPvzN/KUrJgEv9IL8moEQ=; b=Zu2OGUilRUEJA+Te4WPvqSffFzvSwG0MsE2OEIZKbXvJWnq4n2MeAu6g pARWg1MBBo6D2UGGFtjclSrRT9FSdURMqMxRoWSj9lo9LjE1P1CY8iah8 mrRZZudvj5oR3He03L9b4rfbIwq6hmHgkwE0s1eWeJeUrffnkNmzLEVN9 cjcAYC0H5oA/OH7b35txgJ5Fxtl+9Id3KHnpwj5S+2zt1zeoTEEnFNMtT vK22KWoR7WxQr+3YBA8hN4422lKgFoM7RiGNPvl4Jf9ARoZhiVbfx9H77 +o/BTEp/OHL5K8dqg/spGrGKgA6ZJrvOZxkwofnTnsDKM+kRwcYYe5STf w==; X-IronPort-AV: E=McAfee;i="6600,9927,10881"; a="7340674" X-IronPort-AV: E=Sophos;i="6.03,271,1694761200"; d="scan'208";a="7340674" Received: from fmviesa002.fm.intel.com ([10.60.135.142]) by orvoesa101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Nov 2023 05:24:13 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.03,271,1694761200"; d="scan'208";a="2523649" Received: from sdsadara-mobl.ger.corp.intel.com ([10.251.215.6]) by fmviesa002-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Nov 2023 05:24:09 -0700 Date: Thu, 2 Nov 2023 14:24:06 +0200 (EET) From: =?ISO-8859-15?Q?Ilpo_J=E4rvinen?= To: Johannes Berg cc: Ma Jun , amd-gfx@lists.freedesktop.org, lenb@kernel.org, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, alexander.deucher@amd.com, Lijo.Lazar@amd.com, mario.limonciello@amd.com, Netdev , linux-wireless@vger.kernel.org, LKML , linux-doc@vger.kernel.org, platform-driver-x86@vger.kernel.org, majun@amd.com, Evan Quan Subject: Re: [Patch v13 4/9] wifi: mac80211: Add support for WBRF features In-Reply-To: Message-ID: References: <20231030071832.2217118-1-Jun.Ma2@amd.com> <20231030071832.2217118-5-Jun.Ma2@amd.com> <5b8ea81c-dd4c-7f2a-c862-b9a0aab16044@linux.intel.com> MIME-Version: 1.0 Content-Type: multipart/mixed; BOUNDARY="8323329-387861400-1698927329=:2124" Content-ID: <8f10c3aa-da5e-8e6-b212-dcb8f7f64325@linux.intel.com> X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email 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 (groat.vger.email [0.0.0.0]); Thu, 02 Nov 2023 05:24:22 -0700 (PDT) This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --8323329-387861400-1698927329=:2124 Content-Type: text/plain; CHARSET=ISO-8859-15 Content-Transfer-Encoding: 8BIT Content-ID: <163c94a-bfac-2984-64c1-1c2281e27410@linux.intel.com> On Thu, 2 Nov 2023, Johannes Berg wrote: > On Thu, 2023-11-02 at 13:55 +0200, Ilpo J?rvinen wrote: > > > > +static void get_chan_freq_boundary(u32 center_freq, u32 bandwidth, u64 *start, u64 *end) > > > +{ > > > + bandwidth = MHZ_TO_KHZ(bandwidth); > > > + center_freq = MHZ_TO_KHZ(center_freq); > > > > Please use include/linux/units.h ones for these too. > > Now we're feature creeping though - this has existed for *years* in the > wireless stack with many instances? We can convert them over, I guess, > but not sure that makes much sense here - we'd want to add such macros > to units.h, but ... moving them can be independent of this patch? What new macros you're talking about? Nothing new needs to be added as there's already KHZ_PER_MHZ so these would just be: bandwidth *= KHZ_PER_MHZ; center_freq *= KHZ_PER_MHZ; Everything can of course be postponed by the argument that some subsystem specific mechanism has been there before the generic one but the end of that road won't be pretty... What I was trying to do here was to point out the new stuff introduced by this series into the direction of the generic thing. -- i. --8323329-387861400-1698927329=:2124--