Received: by 2002:a05:7412:40d:b0:e2:908c:2ebd with SMTP id 13csp939782rdf; Wed, 22 Nov 2023 00:39:24 -0800 (PST) X-Google-Smtp-Source: AGHT+IEFOVP5nNSMpXK3Kl04F4sXalgyljQg/gAefA//l8Qr2dhbPG22LvHG4L+rIGr8yiRwiXBe X-Received: by 2002:a17:90b:38ca:b0:27d:f711:112e with SMTP id nn10-20020a17090b38ca00b0027df711112emr1887959pjb.45.1700642363929; Wed, 22 Nov 2023 00:39:23 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1700642363; cv=pass; d=google.com; s=arc-20160816; b=YgpJCTtmYuSxsBGYUWg+606Q5hRbLVl6RBkpMJKKj2b4WyJRAa7bvyQCXS4b+9lZN1 +tljbCktqivRzGaprmJYs/ngIpQhlIAT+R4XJNED1SZhDS2pL1zIiEIFArkvdbUNA8q/ +ewnktau4vSdv6XC7gCEEq61dJxVd5IgleBkD7P3s+E80sdwjOfy+gbyvp/O1lC20S6K CW53vLJeMpPUjb4ze9ZJqhJvW1eEUomVn5faKPw35fUXANDv1MEdhrU+hcxonBgUsc1c ZTfaNwsSPDPO49FNig8luteQi+Gr+JDFsDQqsby/DIc1r/r7BxxL93gPqYkuAtajk54X cGRA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :in-reply-to:from:content-language:references:to:subject:cc :user-agent:date:message-id:dkim-signature; bh=O7257h+R0o/o6ytyI4blx00DiIxKkZCHIKnHK+3OHe4=; fh=b8nU6GZNWD7UMrJk9LIqFEY9M/tpVmc61KL7EAgKTtk=; b=siM1Ji1vvjb7Mb6nLM0w1jmvnDt8vr2r+3iDJGNoMK67xeMzzTsRHipH/+MNVnWZju IKmfeZ/k/bXvJtxzKq3GmtAMIrcI2zU68adet8KU39YnKeEuWaHDenCYJTJFui+S/+0o M8Aa/uIz2Ni+eEw9OhTJ5g5i4vDNJ2lCA6hlaHs1gj7AirLNDv+yqAa38p18SqC2OipK cVP5VDm0z1/ZadNKpohXzfrYSSizPew1KbZaC3IP6njoSjhECpzEKTiIm07DKMMJhR0Q /swe/MU6HkSiCsSiKPBAqUADY8WyVIKDWoDn5Ba1TuHgqpe3XG7FON2SLnpJbclu4H2N NDjw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=slRkge7a; arc=pass (i=1 spf=pass spfdomain=amd.com dkim=pass dkdomain=amd.com dmarc=pass fromdomain=amd.com); spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id x11-20020a17090abc8b00b00285495a3168si985587pjr.50.2023.11.22.00.39.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Nov 2023 00:39:23 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=slRkge7a; arc=pass (i=1 spf=pass spfdomain=amd.com dkim=pass dkdomain=amd.com dmarc=pass fromdomain=amd.com); spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 6F95481B6A86; Wed, 22 Nov 2023 00:37:14 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235087AbjKVIhP (ORCPT + 54 others); Wed, 22 Nov 2023 03:37:15 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38794 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235056AbjKVIhO (ORCPT ); Wed, 22 Nov 2023 03:37:14 -0500 Received: from NAM10-MW2-obe.outbound.protection.outlook.com (mail-mw2nam10on2075.outbound.protection.outlook.com [40.107.94.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0E5EC1A8; Wed, 22 Nov 2023 00:37:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Vy7HXgGKiu5PHGt/lRu7enMMMadvKNVcB8ccEOdrUL+0PeYO8By+TNP35bEVCT0nuiUmD5vqlqxH7JjanhyKesqF1rVCZjcW0rapGILkaSybndGqW0crn0zSxwEvNKU4TxidmfLYof+b+DcBFtDFDSamZozV7B3KekZtqXj0g+Cb8ujBe4uY45OnulGjC5P9+HyxHaXW3Ry2DVr9YTKbpZapWbWfHToyljn1PD9JVp1tJbHGt/+aRpNXDQcsGv/3ysKsavOZsDNBbgUGI4/DD40DKhdzNFaCgou6Vuw/3JDr5dqIShr0vRKDABLxZLAe7hp51Ivp7Gt92gqNx/TFgw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=O7257h+R0o/o6ytyI4blx00DiIxKkZCHIKnHK+3OHe4=; b=AOncMu9JgF2kj2pt9GtBdt49B+KfzwvQfA3HPdP+oD8yBJwtLmXpQWjsSOIy3/kRGDYaU2kZ0gPggEpsyAVD7ttPX3ThKXdxnXSPp6dNSUgBJM2BjeeefNtnR3xdZaHXv2ETgny6yOpdD5YiDFgqeHu5Z1bFZFKw14STVPw9561n51X6a7E2onFaeYxAh/y0EzMzzQyPrBVX/pH2AkuaOtUiY62kZZ/Q8Dup7DYMB/pg2DWVKO7PNuze9+KesFWa+d+HMB7DTac+hgtijhu1QYkqY189ugnI4NyhRX3kNL3Br5vPp6oLBYF6xlPniEFppXqj0xYwlZg73MSApHuHbQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=amd.com; dmarc=pass action=none header.from=amd.com; dkim=pass header.d=amd.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=O7257h+R0o/o6ytyI4blx00DiIxKkZCHIKnHK+3OHe4=; b=slRkge7aCCeqkPu5yDNlHzdlW4TJ8actLvPPg6TL/AXaDD/HunI/dWAcOUSHeWOlnnn1oSybIvj1l9s/nxPkskWZhRM9ToYHVN0t4/e1HsA4HMsGppCx3bhqibVPtwPYgueyetgBFqpfjHNNih7zbSTTTRmiS5ZIkKw2IicHUpo= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=amd.com; Received: from DM4PR12MB6351.namprd12.prod.outlook.com (2603:10b6:8:a2::6) by DM6PR12MB4957.namprd12.prod.outlook.com (2603:10b6:5:20d::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7002.28; Wed, 22 Nov 2023 08:37:03 +0000 Received: from DM4PR12MB6351.namprd12.prod.outlook.com ([fe80::5287:5f3:34f:4402]) by DM4PR12MB6351.namprd12.prod.outlook.com ([fe80::5287:5f3:34f:4402%7]) with mapi id 15.20.7025.017; Wed, 22 Nov 2023 08:37:03 +0000 Message-ID: <9608a9aa-26d2-4d27-b9b7-31f643307d2d@amd.com> Date: Wed, 22 Nov 2023 16:36:47 +0800 User-Agent: Mozilla Thunderbird Cc: majun@amd.com, 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 Subject: Re: [Patch v13 1/9] Documentation/driver-api: Add document about WBRF mechanism To: =?UTF-8?Q?Ilpo_J=C3=A4rvinen?= , Ma Jun References: <20231030071832.2217118-1-Jun.Ma2@amd.com> <20231030071832.2217118-2-Jun.Ma2@amd.com> <3e18c716-4c1b-ea3-ede3-5a67555f5e72@linux.intel.com> Content-Language: en-US From: "Ma, Jun" In-Reply-To: <3e18c716-4c1b-ea3-ede3-5a67555f5e72@linux.intel.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-ClientProxiedBy: KU1PR03CA0040.apcprd03.prod.outlook.com (2603:1096:802:19::28) To DM4PR12MB6351.namprd12.prod.outlook.com (2603:10b6:8:a2::6) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DM4PR12MB6351:EE_|DM6PR12MB4957:EE_ X-MS-Office365-Filtering-Correlation-Id: f67f7244-989b-48a4-95b3-08dbeb363390 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: RwQrJIteUGFwIDktNL6QEG349gWTk/m3Rbiz6Gna+tES/9VFUwDzJ6b8Q7bRoNcWkGecqiVDfjbsghdB65UIc2TINnW1GNegSOwZ6HYG36rNzUwgOtIwwRTjONUWS08ht73Ezd+cMkFZbu58c/fjIPwBpjuxxaAvDGdamhxc30lC9+AA/SanA7RriO+Qg4sLncgbGjatTyzqBOCOy2bsQjoytSCJXBsPoHgWxD5OmrT5ty/MM9FmVFoI2ZbMonCazJcM0i06UA+M28MKj4b6Y3reTXqn5RiTAtqOtD8TtRswT4+3inVddTNSjW6HB0l+MNSusKv2XLL8e4/Ds9Raan7sITAtl2nMexdjBoBrGbYuBRIaP0P8Gl9vvnmXcswYs83QhDphD4CMsCZd1WugCgC7CZr355x2T+mmkQxw4acSzPm7Pxns+7EgXVYyUFP2QsVtpi5QiPjQdahgggHRVIWd0qkuCCt5/O8HeOffSc53vUzXdW2vxszpCQpi5mILh1e62p08rE2SwSivIAuFUKNupe/3hwOq8KzgB+liV2JwatGpRK9Ms+mdc90gXDjjsiXwrO1qHwIveLjEzMPvKb/ViAVvYoVKEa8qqm7mZWQ8NpC9Fo2cTbQ6M71vK3CA/YqkBkXlVIQCKMHQEplxHA== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DM4PR12MB6351.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(376002)(396003)(136003)(39860400002)(346002)(366004)(230922051799003)(451199024)(186009)(1800799012)(64100799003)(83380400001)(66574015)(53546011)(7416002)(26005)(38100700002)(6512007)(4326008)(8676002)(41300700001)(5660300002)(2906002)(478600001)(8936002)(6506007)(6486002)(54906003)(6636002)(316002)(110136005)(66946007)(66556008)(66476007)(6666004)(36756003)(31696002)(31686004)(2616005)(43740500002)(45980500001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?c3loc2JSeDFuVEI3VlhwT0hLSnIzTmswRWhOcEx3SndJdk1EckVIaWlERUNv?= =?utf-8?B?RWtWU0tyVGQ4Zmo2Zm1mcTZzcUpLZE1rcCt3bnRFSlF5ajEvL252clUxdFR6?= =?utf-8?B?RjN5TTc3R0tQaUVuVzlnZDg3VndGRUlpS1FvZkVVd05SMG1IUmlCL0JnZjNZ?= =?utf-8?B?WkFPUnpxSnIxamVMUUg4WjY1Ym5XL2Q1WXlwc0JaaEFjMGJUWDZMek1tc01r?= =?utf-8?B?SHRxYjR0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jajNXSW5RamdiSUpiYVFMRkxh?= =?utf-8?B?WllzZDNsS0E2TzUxU1NSWlc1OUVKanA5Z2gwYXVnbEE2TzM2WnIyUTNiSEox?= =?utf-8?Q?dA3E3d2TnkTDQHlAmFQeMrljn?= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: f67f7244-989b-48a4-95b3-08dbeb363390 X-MS-Exchange-CrossTenant-AuthSource: DM4PR12MB6351.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Nov 2023 08:37:03.2815 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: agl4SkjmmP/r/Hela79FNAXVgg8PKMqBFbv0SAoKVStV+/02cZSmItJSnePaYPqt X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR12MB4957 X-Spam-Status: No, score=-1.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FORGED_SPF_HELO, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_NONE, T_SCC_BODY_TEXT_LINE autolearn=no 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 (snail.vger.email [0.0.0.0]); Wed, 22 Nov 2023 00:37:14 -0800 (PST) Hi llpo, Thanks for review, I'll fix the format issue in the next version. Regards, Ma Jun On 11/20/2023 7:59 PM, Ilpo Järvinen wrote: > 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. >