Message ID | 20230430203153.5587-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 b10csp2320198vqo; Sun, 30 Apr 2023 13:47:39 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ74UkWqhkCFUIOqFsbzEkvRLPKuF62PHdvjD9uYy8t4J04zmfQ9rV4wEu3DJHYfqi9ISADt X-Received: by 2002:a17:903:22c8:b0:1a6:9ec2:a48f with SMTP id y8-20020a17090322c800b001a69ec2a48fmr14418606plg.34.1682887659446; Sun, 30 Apr 2023 13:47:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682887659; cv=none; d=google.com; s=arc-20160816; b=q8siv19y84eYFukHJ3RIS9Wo+HnzYYjxfthPA0rU9/W2FFtrHJ8ufjBFxYzLV+YcRi Mz9jjlSSMrImBphIufd9UsBSDMNpiHPRr06DlwQMsIX1iVhcKKZkbXboUQuS8+73CT6G S9MXzJtIXeTRrDgHLy5MR+Uw14IRSnANp7/s/I6Mg9dzeoP6jmCaKQQERljZZL5M6rCH M8IyWOuGVykzerCdDIGEGcm9nZDZTpCwvBRpU6MiDXC1SFIyGcZcO+B4OaTAiYFWZnRH G6adgeAClAHasZ7TzJxq+va9bdOLlqtK13R+1Ot/IuKN5PsUGj9UiWriBiBl09jmTw2b hK/Q== 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=gexUVs5VEJxmYHTLa0vEpXCUpKOaRlgFUQ0X/5qDORY=; b=eEoY1dpi1rff64rAAgyy/q7RCewggC/3eTO3gI4oQEvks7ZYTW4qurw5X2reAEAulZ xPgiAU6/c5qM1+Bh5VQalmI9DIPrfK9RL2mG6hVt7EFhZlaapsDUtJ/hoBTY7C+r0RLQ sOBEJ4sx8xPd45FxDuCFEtPH3OJU9MgN6XQavVTXOv2q2SsJK7Aenb25DDtAyVqRn7oH 9hkpSKvZdJ9ka60yewigrXuOxI6RJvCYmkBGTj7e/+3zKCitt/tTN9L3bKorxM8Rb2ZI eBD3jEY/2VP2cjQcQIChqaWK+Tsd7ZZPIRB+4S/5sX6MkW0EDOxmx5sriP8guVqB2X74 tXBQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmx.de header.s=s31663417 header.b=NT5mEF2N; 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 kb14-20020a170903338e00b001a8096ef2bfsi25045146plb.34.2023.04.30.13.47.23; Sun, 30 Apr 2023 13:47:39 -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=NT5mEF2N; 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 S232122AbjD3UcZ (ORCPT <rfc822;rbbytesnap@gmail.com> + 99 others); Sun, 30 Apr 2023 16:32:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58788 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232086AbjD3UcV (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Sun, 30 Apr 2023 16:32:21 -0400 Received: from mout.gmx.net (mout.gmx.net [212.227.15.15]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1966AE76; Sun, 30 Apr 2023 13:32:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.de; s=s31663417; t=1682886717; i=w_armin@gmx.de; bh=1iVtXdw2HihhlcV6imnqHABioEJXOGklEJ+NVAHrz0k=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date; b=NT5mEF2NNSh5y6UPC4T+ULzfufgyhcHwYM092pNQ/6ahrlmSfpm8sUBOvu7q4tOXd 0zHzaeu2CuFvSP4VT/BwpdTLpdcdxX/nhWoeOTb7rJJTZ0K24CnYzm0od8xW7FRkfF UNsGV3OBnk6t9Ot4drNNhUrjlyx6ALYRN/Sqmlu72aIfrJ3yJyd2mlbYDRqNMQ08BT UHkySnW4tyez3GlbgUgHLCqx8G1DizeDMz4LwL1/GpvwckvRDJzHDmSnTmV3P5BYOy DOo8SBfaFQMBPdIVbeMHAaVvZPH00A/7QAHxe5y/S4cLRREWd160gReQK0pejJ+Xj+ Z5YHKRM1v+1IA== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from esprimo-mx.users.agdsn.de ([141.30.226.129]) by mail.gmx.net (mrgmx005 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MBDnI-1pyDdy3jdW-00CkSa; Sun, 30 Apr 2023 22:31:57 +0200 From: Armin Wolf <W_Armin@gmx.de> To: hdegoede@redhat.com, markgross@kernel.org Cc: Mario.Limonciello@amd.com, prasanth.ksr@dell.com, jorgealtxwork@gmail.com, james@equiv.tech, Dell.Client.Kernel@dell.com, platform-driver-x86@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 0/2] platform/x86: Allow retrieving the number of WMI object instances Date: Sun, 30 Apr 2023 22:31:51 +0200 Message-Id: <20230430203153.5587-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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/WgcP/Dx5c NAXq1n12Ftyjxlh9/BzhX/QVWrsSUrTFVZgq1mpCFrmNd6yX64GnlcBlIQge7ri9qAKfbECDQ JNZYFp1E6iQnIfenzGzvX3BzI01y/bON/hOYyw/2BWvKcxxKsN0iE6lV3VDg1l3+eEgLnWPkR BGrpQA/yDCn0GcUDDclUUlgrErg= 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?1764635610273782290?= X-GMAIL-MSGID: =?utf-8?q?1764635610273782290?= |
Series |
platform/x86: Allow retrieving the number of WMI object instances
|
|
Message
Armin Wolf
April 30, 2023, 8:31 p.m. UTC
This patch series allows WMI drivers to retrieve the number of WMI object instances. This functionality benefits several current and upcoming WMI drivers, the dell-wmi-sysman driver is converted to use this new API as an example. The changes are compile-tested only, the change to the dell-wmi-sysman driver also needs to be tested on real hardware. Changes since RFC v2: - modify wmi_instance_count() to return an integer Armin Wolf (2): platform/x86: wmi: Allow retrieving the number of WMI object instances platform/x86: dell-sysman: Improve instance detection .../x86/dell/dell-wmi-sysman/sysman.c | 13 +++--- drivers/platform/x86/wmi.c | 41 +++++++++++++++++++ include/linux/acpi.h | 2 + include/linux/wmi.h | 2 + 4 files changed, 50 insertions(+), 8 deletions(-) -- 2.30.2
Comments
Hi, On 4/30/23 22:31, Armin Wolf wrote: > This patch series allows WMI drivers to retrieve the number of > WMI object instances. This functionality benefits several current > and upcoming WMI drivers, the dell-wmi-sysman driver is converted > to use this new API as an example. > > The changes are compile-tested only, the change to the dell-wmi-sysman > driver also needs to be tested on real hardware. > > Changes since RFC v2: > - modify wmi_instance_count() to return an integer Thank you for your patch-series, I've applied the 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. Once I've run some tests on this branch the patches there will be added to the platform-drivers-x86/for-next branch and eventually will be included in the pdx86 pull-request to Linus for the next merge-window. Regards, Hans > Armin Wolf (2): > platform/x86: wmi: Allow retrieving the number of WMI object instances > platform/x86: dell-sysman: Improve instance detection > > .../x86/dell/dell-wmi-sysman/sysman.c | 13 +++--- > drivers/platform/x86/wmi.c | 41 +++++++++++++++++++ > include/linux/acpi.h | 2 + > include/linux/wmi.h | 2 + > 4 files changed, 50 insertions(+), 8 deletions(-) > > -- > 2.30.2 >