Received: by 2002:a05:7412:b795:b0:e2:908c:2ebd with SMTP id iv21csp333359rdb; Thu, 2 Nov 2023 05:17:03 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEqjI+5ejeA+u86DOJ6UEiGaJu+rivpxGj0fWlUIGzJT8It4auzDtHqAYVVj+ITxV3f93kh X-Received: by 2002:a17:902:d1cc:b0:1cc:2469:f2ff with SMTP id g12-20020a170902d1cc00b001cc2469f2ffmr15719014plb.9.1698927422885; Thu, 02 Nov 2023 05:17:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698927422; cv=none; d=google.com; s=arc-20160816; b=b2tP5UzNt6kWLgpyGx8lHruwFbPFn/dyBGSV7u08U5QsxdcPvJJ58FI1UCEMRKwgDl WdY8FiD86xTzjoOC99CD5b3w6ehPw/jZGgQOXgHWy+2ptXLVbIiQU+efHEPlKwx14OC5 e30dg9047bjdPFsKfRPZtzqQ4cA56ZQQy87tcheMUOcNGPuVrA7B2cnFr3DlIqiYBRHn GMGpF+TY0APl6xqJAmCaqyZc/6EmVlau8l6FqDV/Hy4jxF50ntDYLQboqrpNaACh58zA THl9yVSerl+sCPPWBp5i2piPxCvbXhPu/XUt6rBznrftL2toku86AeJIU3py0s7Denw3 YbTg== 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 :content-transfer-encoding:references:in-reply-to:date:cc:to:from :subject:message-id:dkim-signature; bh=HntS3je0QXLdwZ1+s0cY5G8BrYYXr4+VZLC8JT4/rII=; fh=/SuwUnqdKwDwB0CbThh+7n9SRoWWOh/eqGbtv89dwq8=; b=HktZt67BSjpdO6f7d9IClkUIH72mznpoxgT79UbOpDvK9CaAO9d0yOSvxU4QYBdJbA qyEmm09GQzgVHZKdrvFx8euAdBF+1h8es5sFHBG6og03M8LafrNryhJZ29h+9WFFayiV w8Ul51UpxEOarstyyp5fbkGwYMJgoZPnd54vfZb65tQ1pvIDBVgJ5QdVHaQ6i24CqBSR 8+X4FYxXUa90+E3SNkUkFmUAaq2E4CwYVI1U4liYwkMUbuhLdpxU4d5KFvmmF5F32P6v s/AnblWpURd2lzc/HMoUJifCyT3D+h2N0eRNVKgF+klEDz+1YkuOrjRLGcCQhjlfPpSo +e/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sipsolutions.net header.s=mail header.b=NKDhxjaA; 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=REJECT dis=NONE) header.from=sipsolutions.net Return-Path: Received: from groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id f12-20020a170903104c00b001c9af06686dsi4631413plc.166.2023.11.02.05.17.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 Nov 2023 05:17:02 -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=@sipsolutions.net header.s=mail header.b=NKDhxjaA; 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=REJECT dis=NONE) header.from=sipsolutions.net Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id AE37A80298B5; Thu, 2 Nov 2023 05:16:48 -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 S235207AbjKBMQs (ORCPT + 52 others); Thu, 2 Nov 2023 08:16:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42546 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235163AbjKBMQi (ORCPT ); Thu, 2 Nov 2023 08:16:38 -0400 Received: from sipsolutions.net (s3.sipsolutions.net [IPv6:2a01:4f8:242:246e::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 70DBDD4A; Thu, 2 Nov 2023 05:05:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sipsolutions.net; s=mail; h=MIME-Version:Content-Transfer-Encoding: Content-Type:References:In-Reply-To:Date:Cc:To:From:Subject:Message-ID:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-To: Resent-Cc:Resent-Message-ID; bh=HntS3je0QXLdwZ1+s0cY5G8BrYYXr4+VZLC8JT4/rII=; t=1698926705; x=1700136305; b=NKDhxjaAUuI3JDJyd63RPVH0Ptk1lRm3c4N4FLFL7HCbwP3 qad+oA1OBfZi6Pky9vv3z6SziT5Tjd9TVHB6nWBQzJsYWyHLEgeudp2iHvbLjgYVtS/7eXlPXj4xU y2BFi3iZAJqmM7w/HILq0SawjaPkjJj1vYppozyY40oCM8NsShLWFSKrP+rfTNL0h/sQygkK1Ztqm ok/jOPXAeC3/fv6jn2QJHUAK2Mr5zgxFFmBJUtf+gTO9UQxwAkQQJtSSdUwnW9oyCN+Pd2BLl7PSH iptIrFL3Erv1RKZ17+aJNFvRfKnL0vEGabYlOX21LpETe+MKUKWLvjqe/qRHcUSw==; Received: by sipsolutions.net with esmtpsa (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.97-RC1) (envelope-from ) id 1qyWRS-0000000BHyX-0ieC; Thu, 02 Nov 2023 13:04:54 +0100 Message-ID: Subject: Re: [Patch v13 4/9] wifi: mac80211: Add support for WBRF features From: Johannes Berg To: Ilpo =?ISO-8859-1?Q?J=E4rvinen?= , Ma Jun Cc: 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 Date: Thu, 02 Nov 2023 13:04:52 +0100 In-Reply-To: <5b8ea81c-dd4c-7f2a-c862-b9a0aab16044@linux.intel.com> References: <20231030071832.2217118-1-Jun.Ma2@amd.com> <20231030071832.2217118-5-Jun.Ma2@amd.com> <5b8ea81c-dd4c-7f2a-c862-b9a0aab16044@linux.intel.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.48.4 (3.48.4-1.fc38) MIME-Version: 1.0 X-malware-bazaar: not-scanned X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, 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:16:48 -0700 (PDT) On Thu, 2023-11-02 at 13:55 +0200, Ilpo J=C3=A4rvinen wrote: [please trim your quotes] > > +static void get_chan_freq_boundary(u32 center_freq, u32 bandwidth, u64= *start, u64 *end) > > +{ > > + bandwidth =3D MHZ_TO_KHZ(bandwidth); > > + center_freq =3D MHZ_TO_KHZ(center_freq); >=20 > 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? johannes