Message ID | 20230424222939.208137-1-W_Armin@gmx.de |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp3047708vqo; Mon, 24 Apr 2023 15:53:57 -0700 (PDT) X-Google-Smtp-Source: AKy350bszWU0UcuJ2R9NTgvohEuKIcnr0LqYHPV3Hnp74bP/WxkltDj0kdUmxYnq9s5zKJmLjFR9 X-Received: by 2002:a05:6a00:1823:b0:63b:4313:f8b5 with SMTP id y35-20020a056a00182300b0063b4313f8b5mr21935692pfa.23.1682376837488; Mon, 24 Apr 2023 15:53:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682376837; cv=none; d=google.com; s=arc-20160816; b=lgnyVCweTSTZoNOQE93999jIZS3tu+dc1Q9wSWs4vw7IrpKN+9aLKEsVgNkUt92O8S dYOxoNiJmpVd6VWfPq/Jxr5AZsq+UifIhRXoHTS7D7neCUddzWcp86juFwI6loBJVjSE z47sJN0a2FiKtaotO1q88UcFNW9I8CecbukvlpzHtiU/V4N2zTbWDnmrLc1xlG0V+KO6 DgJN9Thb06nNzchM/svS1NJnQYdTy+pxb795bES1DUyljYWd4aOvalgTMsbCx6n+Zgim rO/Yf8iCjqadd7GSg3SDOcdZQLEGN7MHJyHK8VzwpKPSKrDC0MUk/2c4LnzGJf65fmnO hI0w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:ui-outboundreport:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from:dkim-signature; bh=UU9TFoob0wQoNZHycxe4S92Smk2W9d+GkKjXnnrINOQ=; b=c0ltA+75ZPWVkYIYNrzv2+rvagy0pkBg320dNyr9wnMbG3CZtjylbN3itK8NT3Pcl0 vzA0l79Zt5Dut+esS1pwzenhvIwJ82hE49osZGzZzYXbQnN3C2dSxtt2Xh7/N0SYoKwR 0SIWVYows1UZTT931EJkfhcelx5DTLCelqXguDyRv/dJnY/27B4o8WuwivY1QUlW5MFQ uf+0WjFJlPuZubMwuPUlnR48LGPksSKfxDPt390wcgOxo/rRtbn2LPz/ujvDyR3aLG90 Nw6gbNF6DSD9VXDLXOyTZ02chSoBp7oh3vodsUumXi0eRmjOvnJU5JrRJatY2xMrx567 86IQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmx.de header.s=s31663417 header.b="PBfY6K/I"; 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=gmx.de Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 33-20020a631361000000b00503059b8b2fsi11901284pgt.220.2023.04.24.15.53.40; Mon, 24 Apr 2023 15:53:57 -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=@gmx.de header.s=s31663417 header.b="PBfY6K/I"; 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=gmx.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232896AbjDXWac (ORCPT <rfc822;fengqi706@gmail.com> + 99 others); Mon, 24 Apr 2023 18:30:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47122 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232399AbjDXWaI (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 24 Apr 2023 18:30:08 -0400 Received: from mout.gmx.net (mout.gmx.net [212.227.17.20]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0855F61B3; Mon, 24 Apr 2023 15:30:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.de; s=s31663417; t=1682375389; i=w_armin@gmx.de; bh=acj7MjZssQd6iVJtWK9G4mZt4XTGSOZZ6U7g33Agxrc=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date; b=PBfY6K/IqJ15g6IEF24HH+VQKVu0Smlie9233P7abZlCuMsD98yhjtHsrsCYZUp4o MD7LUx4c7jA5pIRlH+oGU/C8fBjTXhvzgNl1BSsJUWHykMgATj5NeaIeg61Y9HBMpt d2iXG+pHLcrIBKokhe4UhDFUcSTWd0bggKeaoNmGoxLAKVDSX1qip+YqhIZ7va7Cui XaTpomlndPc5wtn5gc19L+jMjw/Nv3f+2O931siC/k2BZeb0lVE+a2aueAXX47JNX4 3aN/rVZRjMMlr1zFkaHV8P9COsuPEQuidVJpWaCvREAhbJgmQP/91RhVDDbDEwMIY+ x7WWle1t4B3NA== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from esprimo-mx.users.agdsn.de ([141.30.226.129]) by mail.gmx.net (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1M3DNt-1pruhU1NmP-003fuD; Tue, 25 Apr 2023 00:29:49 +0200 From: Armin Wolf <W_Armin@gmx.de> To: hdegoede@redhat.com, markgross@kernel.org, rdunlap@infradead.org Cc: corbet@lwn.net, linux-doc@vger.kernel.org, platform-driver-x86@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 0/4] platform/x86: wmi: Add subsystem documentation Date: Tue, 25 Apr 2023 00:29:35 +0200 Message-Id: <20230424222939.208137-1-W_Armin@gmx.de> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:bCiOkL9kSiizjHyxEVl+fhG2Do4FjhanHynhIPahm4cxFRkVQh4 gmjvc1pC2ofyc8LjqiMusLebOPN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L7OrYjfcZYqWRXSLcyshEh/C6iXF2rwuQ2vZLoSoDv2IsIUfCOju+mz63Mz7SgyzGim4 uRk7mjK8/CDTFz+c4gwAP4K9NLc= X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS,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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1764099974391558671?= X-GMAIL-MSGID: =?utf-8?q?1764099974391558671?= |
Series |
platform/x86: wmi: Add subsystem documentation
|
|
Message
Armin Wolf
April 24, 2023, 10:29 p.m. UTC
Currently, there is no recent documentation available for writing WMI drivers using the modern bus-based interface. This leads to developers using the deprecated GUID-based interface when developing new drivers, causing issues with notification handling when multiple WMI devices sharing the same notification ID are present. There is also no way for WMI drivers to add device specific documentation at the moment. Add documentation for the WMI subsystem to solve those issues. The device specific documentation currently onyl include documentation for the wmi-bmof driver, but more is expected to follow. --- Changes in v2: - spelling fixes - tell readers that MOF means Managed Object Format - 80-cloumn limit Armin Wolf (4): platform/x86: wmi: Add kernel doc comments platform/x86: wmi: Mark GUID-based WMI interface as deprecated platform/x86: wmi: Add documentation platform/x86: wmi: Add device specific documentation .../ABI/stable/sysfs-platform-wmi-bmof | 7 ++ 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/devices/index.rst | 22 +++++ Documentation/wmi/devices/wmi-bmof.rst | 25 +++++ Documentation/wmi/index.rst | 19 ++++ MAINTAINERS | 9 ++ drivers/platform/x86/Kconfig | 4 +- drivers/platform/x86/wmi.c | 63 +++++++++--- include/linux/wmi.h | 41 +++++++- 12 files changed, 289 insertions(+), 20 deletions(-) create mode 100644 Documentation/ABI/stable/sysfs-platform-wmi-bmof create mode 100644 Documentation/driver-api/wmi.rst create mode 100644 Documentation/wmi/acpi-interface.rst create mode 100644 Documentation/wmi/devices/index.rst create mode 100644 Documentation/wmi/devices/wmi-bmof.rst create mode 100644 Documentation/wmi/index.rst -- 2.30.2
Comments
Hi Armin, On 4/25/23 00:29, Armin Wolf wrote: > Currently, there is no recent documentation available for writing WMI > drivers using the modern bus-based interface. This leads to developers > using the deprecated GUID-based interface when developing new drivers, > causing issues with notification handling when multiple WMI devices sharing > the same notification ID are present. There is also no way for WMI > drivers to add device specific documentation at the moment. > Add documentation for the WMI subsystem to solve those issues. The > device specific documentation currently onyl include documentation for > the wmi-bmof driver, but more is expected to follow. Thank you for your patch series, I've applied this series to my review-hans branch: https://git.kernel.org/pub/scm/linux/kernel/git/pdx86/platform-drivers-x86.git/log/?h=review-hans Note it will show up in my review-hans branch once I've pushed my local branch there, which might take a while. Patches which are added to review-hans now are intended for the next rc1. This branch will get rebased to the next rc1 when it is out and after the rebasing the contents of review-hans will be pushed to the platform-drivers-x86/for-next branch. Regards, Hans > --- > Changes in v2: > - spelling fixes > - tell readers that MOF means Managed Object Format > - 80-cloumn limit > > Armin Wolf (4): > platform/x86: wmi: Add kernel doc comments > platform/x86: wmi: Mark GUID-based WMI interface as deprecated > platform/x86: wmi: Add documentation > platform/x86: wmi: Add device specific documentation > > .../ABI/stable/sysfs-platform-wmi-bmof | 7 ++ > 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/devices/index.rst | 22 +++++ > Documentation/wmi/devices/wmi-bmof.rst | 25 +++++ > Documentation/wmi/index.rst | 19 ++++ > MAINTAINERS | 9 ++ > drivers/platform/x86/Kconfig | 4 +- > drivers/platform/x86/wmi.c | 63 +++++++++--- > include/linux/wmi.h | 41 +++++++- > 12 files changed, 289 insertions(+), 20 deletions(-) > create mode 100644 Documentation/ABI/stable/sysfs-platform-wmi-bmof > create mode 100644 Documentation/driver-api/wmi.rst > create mode 100644 Documentation/wmi/acpi-interface.rst > create mode 100644 Documentation/wmi/devices/index.rst > create mode 100644 Documentation/wmi/devices/wmi-bmof.rst > create mode 100644 Documentation/wmi/index.rst > > -- > 2.30.2 >