Received: by 2002:a05:7412:b130:b0:e2:908c:2ebd with SMTP id az48csp2159849rdb; Mon, 20 Nov 2023 04:00:01 -0800 (PST) X-Google-Smtp-Source: AGHT+IHmwWdXxXPpnCfInBByI+1YfklFgQu/q4dpEe0EKHyjeQRZtKOL3DKUQW8o3c3rnXq77Zqx X-Received: by 2002:a9d:6e01:0:b0:6d5:4daf:9894 with SMTP id e1-20020a9d6e01000000b006d54daf9894mr8817397otr.7.1700481600765; Mon, 20 Nov 2023 04:00:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700481600; cv=none; d=google.com; s=arc-20160816; b=DPDLGdogw+VX4lTXMIllXuVWMnDazi39Jy3/vfDPmA1BEtr8Qts+zCan0/G991+qKD Ez63/k9i4A+Z67gIbZbP7ISbPw6yCcwOzTzN7AavFOkT38c2rjpJ/5eOuN6EiG7mT9Ax jam7lvjY49ttbvY6RaI4rdI7kGY9cKPoGrO3GH8vl8uPmAWKOfPv9dNGBy66lgtl0KrZ HMkmHG9g60VU/N/4gzKo4EDWnDSFP+njT1kcE4iw3xN7LlN/OhoqilPZTTfC6LupEEhz 44gekT5XpOWugvNG3n/3WonGNHah9B6PRA52U0untorWVIqfOoqTHuzGT5InwiCDLf/C 4HfA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:message-id:in-reply-to :subject:cc:to:from:date:dkim-signature; bh=cstDyt5/q2k6by6HPVaQeGnAP1UH3/a2zQXUJbqiLQ0=; fh=/QqhFCsfwzRky2/oSjRFAoCRoxVZgRVeLAEuSp8Nhkg=; b=h+n5QLRKdcjNZHSXIQ5omFgE8ukVtLHd9ePBtle889St7vhLNiX7ccv6PKqz9xesUk DqpfcAKSQzwXxSU7VYRqjzc7xyoe/vqDRHWrz74UIKDG7UGYkVHRjNCE9lJuGtPREL/Y 9Yuypmc4uRnSR9uaRhLHYRTezZ6Ce8iI1iROEl5PU1BQaOPUWrM1TrA+kBDEg1L4qRWY ONVEtLyOy3xLdx1U/HEkAdsStmKFkbhtt2thQRTOTGQLxo1O8+QSVpaRiLT0NKBvDma4 Dn6iED3H9twJQqQnivbOdnHQm7+EX6ZRkNUHojJq3AvMuDdKvhJiwPFoAMNLctjTEMn7 4kdA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=QG4MuOWw; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::3:2 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 agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id cb21-20020a056a02071500b005bd04d27b69si8797297pgb.725.2023.11.20.04.00.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Nov 2023 04:00:00 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=QG4MuOWw; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::3:2 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 agentk.vger.email (Postfix) with ESMTP id 74B8E8042399; Mon, 20 Nov 2023 03:59:55 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232139AbjKTL74 (ORCPT + 54 others); Mon, 20 Nov 2023 06:59:56 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56604 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229635AbjKTL7z (ORCPT ); Mon, 20 Nov 2023 06:59:55 -0500 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.8]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0261E8E; Mon, 20 Nov 2023 03:59:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1700481592; x=1732017592; h=date:from:to:cc:subject:in-reply-to:message-id: references:mime-version; bh=hLlgtN7e+i6tZI3bxI8GySjeZu1w9pcdPAelbmCT79A=; b=QG4MuOWwVP+8bUeng02gZgltJNjHZDQMfBq6u1toMHwe0trieqn/jsNa V7eZzusbDLPbjP78BkuMz2pN8uj7GGoy9kFU6wLdBAjeOLdhaZMxWP06b DHOvmcOhLBm+2v4NvuMzI+D0T3qP2W3NkUCLJn6qbKQwHngHhV/XqRt83 6Rcxzrv5zeBq+bV+bzTaBcnmtPAAsWdV5Igcs8ppqOZL3x56m2u7t4c9s 7p81jNNSe3Whk7ZoLNUTh6T6ZsirKJ+ir4L29y8TCLKmmw9OBhzLA+raP uZv8Og2P4HbjLYmsd3SPskBFJtG3mTBwtqhl3VwEo5yo3uJq9zmQxdZs6 w==; X-IronPort-AV: E=McAfee;i="6600,9927,10899"; a="4723173" X-IronPort-AV: E=Sophos;i="6.04,213,1695711600"; d="scan'208";a="4723173" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmvoesa102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Nov 2023 03:59:52 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10899"; a="766253122" X-IronPort-AV: E=Sophos;i="6.04,213,1695711600"; d="scan'208";a="766253122" Received: from akeren-mobl.ger.corp.intel.com ([10.252.40.26]) by orsmga002-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Nov 2023 03:59:46 -0800 Date: Mon, 20 Nov 2023 13:59:44 +0200 (EET) From: =?ISO-8859-15?Q?Ilpo_J=E4rvinen?= To: Ma Jun cc: amd-gfx@lists.freedesktop.org, lenb@kernel.org, johannes@sipsolutions.net, 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 Subject: Re: [Patch v13 1/9] Documentation/driver-api: Add document about WBRF mechanism In-Reply-To: <20231030071832.2217118-2-Jun.Ma2@amd.com> Message-ID: <3e18c716-4c1b-ea3-ede3-5a67555f5e72@linux.intel.com> References: <20231030071832.2217118-1-Jun.Ma2@amd.com> <20231030071832.2217118-2-Jun.Ma2@amd.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Spam-Status: No, score=-0.8 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 autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.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 (agentk.vger.email [0.0.0.0]); Mon, 20 Nov 2023 03:59:55 -0800 (PST) On Mon, 30 Oct 2023, Ma Jun wrote: > Add documentation about AMD's Wifi band RFI mitigation (WBRF) mechanism > explaining the theory and how it is used. > > Signed-off-by: Ma Jun > --- > Documentation/driver-api/wbrf.rst | 76 +++++++++++++++++++++++++++++++ > 1 file changed, 76 insertions(+) > create mode 100644 Documentation/driver-api/wbrf.rst > > +Driver programming interface > +============================ > +.. kernel-doc:: drivers/platform/x86/amd/wbrf.c > + > +Sample Usage > +============= A lot better but you missed adding newlines here for this and previous section title. > +The expected flow for the producers: > +1). During probe, call `acpi_amd_wbrf_supported_producer` to check if WBRF > + can be enabled for the device. > +2). On using some frequency band, call `acpi_amd_wbrf_add_remove` with 'add' > + param to get other consumers properly notified. > +3). Or on stopping using some frequency band, call > + `acpi_amd_wbrf_add_remove` with 'remove' param to get other consumers notified. > + > +The expected flow for the consumers: > +1). During probe, call `acpi_amd_wbrf_supported_consumer` to check if WBRF > + can be enabled for the device. > +2). Call `amd_wbrf_register_notifier` to register for notification > + of frequency band change(add or remove) from other producers. > +3). Call the `amd_wbrf_retrieve_freq_band` intentionally to retrieve > + current active frequency bands considering some producers may broadcast > + such information before the consumer is up. > +4). On receiving a notification for frequency band change, run > + `amd_wbrf_retrieve_freq_band` again to retrieve the latest > + active frequency bands. > +5). During driver cleanup, call `amd_wbrf_unregister_notifier` to > + unregister the notifier. The correct kerneldoc format should be without the closing parenthesis: 1. Text here that spills to second line. 2. Second entry. -- i.