Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp7222316rwr; Tue, 25 Apr 2023 09:42:28 -0700 (PDT) X-Google-Smtp-Source: AKy350bWO3ftbr+wj0gx3+PPlMG6R+wbEu6am6gBdnEl1AAU0OH3D5XFHnYSvwPBwuhABJ14FhI6 X-Received: by 2002:a17:90a:bb96:b0:23f:6edd:41da with SMTP id v22-20020a17090abb9600b0023f6edd41damr18263185pjr.29.1682440948426; Tue, 25 Apr 2023 09:42:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682440948; cv=none; d=google.com; s=arc-20160816; b=ob2MVgVlnEbnZbCMLvpHW00KMnB6z86mvKObT9eVhPGEx2q6uKVH61HaoVFthbQB9Z h4CNjqiGmJ4ThfXM70lgJdV6btDsyF2YaS4EzijwqxQAjWPsW7JVyKVZrqw7DKhM1IO7 ekGFuKp5exA+2YymfCQs6LvncLb8rTHSh/ilUOAnhDGKN69Q62l8E096HfhSXgLZ3EED RsvUqxNIf7AdE3jg1HNU9pe5fbXSlaWAoIceThVuU9FRiqDAEZUu2rgZc/eGEQMpCYQQ Ic1tnMrbKuHuhi0DQCRX9LEKTTGBoAyz9klqM5FWLDuyvVRI60+TJWoV04+8b/ybdfcn WPlg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=KkiBjG/U2iaSLLFqUrRMoqsUKvV+THkYT/zZJXbPjSQ=; b=x59WWIeHFIhb2OXaq2FgBgLhqz6UQPH44iKGtwgUhIuqpDNLhsqsHe47jvp+kJnAuY yo1EpkumPOz/wr6zFSdgOXO0+mwwgyEWLM37y2Pj85e81c6wCRbzmJ4RQJCNd2kpdLuX BsR1H40p2TfZUitxT3arBHUdrr7dHmMUY2pdBwS2e4je7+SnhHnldQmDJxMCJlcD0yeK a18TJF1q/+asub721e4KrtPStoPXJJtulqqNSx1A93jOMKf/TovzGnegU0j1LTBgpJSt UvLTS2B7znm6eyu8NYrjLNaypB/zDZxsuR5FW2Hfa54OyRU6IZZ9v4BtPrC3jichcRoQ v3+A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=QBCpzd0q; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id mq11-20020a17090b380b00b002474fcf3bdasi15434381pjb.146.2023.04.25.09.42.16; Tue, 25 Apr 2023 09:42:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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=@redhat.com header.s=mimecast20190719 header.b=QBCpzd0q; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234621AbjDYQbo (ORCPT + 99 others); Tue, 25 Apr 2023 12:31:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33326 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234377AbjDYQbm (ORCPT ); Tue, 25 Apr 2023 12:31:42 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C1F699022 for ; Tue, 25 Apr 2023 09:30:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1682440255; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=KkiBjG/U2iaSLLFqUrRMoqsUKvV+THkYT/zZJXbPjSQ=; b=QBCpzd0qC63ggfQxkt5aUUvfCQ/8bvY6chQZjd/hXm5jZtZMj+RC8Z7iSIrIkGTK5GtjfE fBJaLamE1PA8bFUulq3vQ9V9oQYbYBQ0RzdPn7+DEjsQOatfaiH6URitstWcs4UAe5rK5O mOvmqIrdFfuDANTru2Rfx9VJ2p6N0WU= Received: from mail-ej1-f70.google.com (mail-ej1-f70.google.com [209.85.218.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-138-QYr1_mVOPg29K3LzFcCLFg-1; Tue, 25 Apr 2023 12:30:54 -0400 X-MC-Unique: QYr1_mVOPg29K3LzFcCLFg-1 Received: by mail-ej1-f70.google.com with SMTP id a640c23a62f3a-94ec76d7a26so551743066b.1 for ; Tue, 25 Apr 2023 09:30:53 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682440253; x=1685032253; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=KkiBjG/U2iaSLLFqUrRMoqsUKvV+THkYT/zZJXbPjSQ=; b=ijTdwJ5DqoQGm8uNobv5PXHU43RRPNBza9vLJbC/mQVLkLA6F2BZkjXvVJqgw9XOPT GxtwHnRk4oHa1/XXpL+d6P06ZkrPQJvOniXgPO7KGnYJGK30kQZSeAJ9tYt2a5Bfiopc TGugeS4La0ai1HMFZFb6tRKWXSxT/GtpUXwLDOdGjG5mpWzy22eY8dZ0Po4sey37AlDJ VYXQ6LI9ey4e4yhFFuPhLRojb7WVnfdhWwhLvjlUeXS8V1rOvbb6hixnrp/Wk3uzV8LQ KbFF0wKBtfkDmz0vIl+SvasUC2/zYcI9buS96F/hqvcTpoXr7apBXEVBmq2xcgiaIN1c wNFw== X-Gm-Message-State: AAQBX9dYzuMCwvzVjUJDMspMWQ4JdhSSjztlr15T+4yMasqektF7XHrE 9YXWaSpPYeE7XW++z+5YjWzHB3zJgPLcltLQ9jieSodIbdWvh71bQlYm3m7pVvyrMjEYBYJQsCm flsZx2QaBhvorTEtydMZCo44m X-Received: by 2002:a17:907:80c5:b0:94a:a887:c29f with SMTP id io5-20020a17090780c500b0094aa887c29fmr14393045ejc.68.1682440253105; Tue, 25 Apr 2023 09:30:53 -0700 (PDT) X-Received: by 2002:a17:907:80c5:b0:94a:a887:c29f with SMTP id io5-20020a17090780c500b0094aa887c29fmr14393026ejc.68.1682440252805; Tue, 25 Apr 2023 09:30:52 -0700 (PDT) Received: from ?IPV6:2001:1c00:2a07:3a01:67e5:daf9:cec0:df6? (2001-1c00-2a07-3a01-67e5-daf9-cec0-0df6.cable.dynamic.v6.ziggo.nl. [2001:1c00:2a07:3a01:67e5:daf9:cec0:df6]) by smtp.gmail.com with ESMTPSA id s22-20020aa7cb16000000b00509e3053b66sm2169795edt.90.2023.04.25.09.30.51 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 25 Apr 2023 09:30:52 -0700 (PDT) Message-ID: <1b68caa2-3c4a-1f47-6409-5ebfd34e431f@redhat.com> Date: Tue, 25 Apr 2023 18:30:51 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.7.1 Subject: Re: [PATCH v2 3/4] platform/x86: wmi: Add documentation Content-Language: en-US To: Randy Dunlap , Armin Wolf , markgross@kernel.org Cc: corbet@lwn.net, linux-doc@vger.kernel.org, platform-driver-x86@vger.kernel.org, linux-kernel@vger.kernel.org References: <20230424222939.208137-1-W_Armin@gmx.de> <20230424222939.208137-4-W_Armin@gmx.de> From: Hans de Goede In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE, T_SCC_BODY_TEXT_LINE 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-kernel@vger.kernel.org Hi All, Armin thank you very mich for the WMI documentation work, this is much appreciated! On 4/25/23 05:07, Randy Dunlap wrote: > Hi-- > > On 4/24/23 15:29, Armin Wolf wrote: >> Add documentation for the WMI subsystem. The documentation describes >> both the ACPI WMI interface and the driver API for interacting with >> the WMI driver core. The information regarding the ACPI interface >> was retrieved from the Ubuntu kernel references and the Windows driver >> samples available on GitHub. The documentation is supposed to help >> driver developers writing WMI drivers, as many modern machines designed >> to run Windows provide an ACPI WMI interface. >> >> Signed-off-by: Armin Wolf >> --- >> Documentation/driver-api/index.rst | 1 + >> Documentation/driver-api/wmi.rst | 21 ++++++ >> Documentation/subsystem-apis.rst | 1 + >> Documentation/wmi/acpi-interface.rst | 96 ++++++++++++++++++++++++++++ >> Documentation/wmi/index.rst | 18 ++++++ >> MAINTAINERS | 2 + >> 6 files changed, 139 insertions(+) >> create mode 100644 Documentation/driver-api/wmi.rst >> create mode 100644 Documentation/wmi/acpi-interface.rst >> create mode 100644 Documentation/wmi/index.rst >> > >> diff --git a/Documentation/driver-api/wmi.rst b/Documentation/driver-api/wmi.rst >> new file mode 100644 >> index 000000000000..6ca58c8249e5 >> --- /dev/null >> +++ b/Documentation/driver-api/wmi.rst >> @@ -0,0 +1,21 @@ >> +.. SPDX-License-Identifier: GPL-2.0-or-later >> + >> +============== >> +WMI Driver API >> +============== >> + >> +The WMI driver core supports a more modern bus-based interface for interacting >> +with WMI devices, and an older GUID-based interface. The latter interface is >> +considered to be deprecated, so new WMI drivers should generally avoid it since >> +it has some issues with multiple WMI devices and events sharing the same GUIDs >> +and/or notification IDs. The modern bus-based interface instead maps each >> +WMI device to a :c:type:`struct wmi_device `, so it supports >> +WMI devices sharing GUIDs and/or notification IDs. Drivers can then register >> +a :c:type:`struct wmi_driver `, which will be bound to compatible >> +WMI devices by the driver core. >> + >> +.. kernel-doc:: include/linux/wmi.h >> + :internal: > > There are no kernel-doc comments in include/linux/wmi.h, so this > causes a kernel-doc warning: > > ../include/linux/wmi.h:1: warning: no structured comments found > > Otherwise this all looks good. So what is the plan here, is there something we can do to fix this new warning and should I expect a v3? Or shall I merge this as is ? Regards, Hans > > > Tested-by: Randy Dunlap > Acked-by: Randy Dunlap > > thanks.