Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp1394565rwr; Wed, 26 Apr 2023 14:31:14 -0700 (PDT) X-Google-Smtp-Source: AKy350Y0m71rQpw6op7ydxXLgvu7NfXYKMU+xGh2AkRz1tnXNyfE7CHyI2eoOT/Nd1EKEo3gB2ZS X-Received: by 2002:a17:90a:c241:b0:246:b038:2f53 with SMTP id d1-20020a17090ac24100b00246b0382f53mr23330883pjx.24.1682544674069; Wed, 26 Apr 2023 14:31:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682544674; cv=none; d=google.com; s=arc-20160816; b=NYB/Rv/OtnsCSZ0Kj7PAVRJ3MkzN9r1QHOZ5a6SO433D+A5kHfpAu72l5PbfPfimlh otwAPt0b/3XaDEelYS+rvtY6n3P9WCR2ria3fKJAE7p7X2lAjcrtZmnevtDqGgvyAMQ8 tPmCcnEMr7W1//9BepUvZPQBX+9PwY33b1LyuhaEeZyaNnHikCfNnVhbiqwt/EiTxbxB ZUkprFi7fmBIsST8iN7glfvoyPyfzvcxe7uVO1g3QgoHw62vGuXrWOgNe5VzXeO57ypp 249efCH0HvuE1kjZzi3iePjBdDB+33GNAuS9i7G/McHa9wKdZOXdHbKVDm08l2AsOr6I 9Y6g== 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=IdXfPgqsk4OZGl9ZGk8noKegKjlnPU70bQbZ3U6LL6g=; b=RaSBELUdfKt5qCj7ziI53NT1FBvdMeDMqSxxHgaCOIYkrKMRfaIbfWkntmvEqnz/Y+ GHWcECngW5fL+RFWL18jL8KRW1fqSvxcmPN+2URfnIf8bPY7umZ7TD9BpzuOCh1cyPRB Ueq7HjocbkW6H/a6GzKv+WHy5tu9oYWKBMxm+dYlTH+h34eHCDgwiEd0CPqxUJWOhrKm Tya4BXhJG881vZjZuMqegSKUpusc5PiitlvJLuFra2fvcOJf26L59Wph5WxmQDDJpsDE b/Liba73590wmnO5Fiy+SgKknp18v4btx7jXeai0CCWFKLaNCMr9UGy46J/2vxaxvO56 ILuQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmx.de header.s=s31663417 header.b=MEcVvoC2; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k3-20020a63ba03000000b0051b6bda1a81si17145256pgf.597.2023.04.26.14.31.00; Wed, 26 Apr 2023 14:31:14 -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=MEcVvoC2; 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 S239925AbjDZV31 (ORCPT + 99 others); Wed, 26 Apr 2023 17:29:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51916 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239398AbjDZV3X (ORCPT ); Wed, 26 Apr 2023 17:29:23 -0400 Received: from mout.gmx.net (mout.gmx.net [212.227.15.15]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2FC3C40E8; Wed, 26 Apr 2023 14:29:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.de; s=s31663417; t=1682544536; i=w_armin@gmx.de; bh=oufZCIe50wgKuLFQDyobMgjM8pxGO6eD46RTeNyc1co=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date; b=MEcVvoC2Z7eVXYp+ULDxvM3CMO897WOcSY8vckUQGvHi35Gh35q0odgwj9eL9hhCj FoWSpn6xCb6pptJywqk9qjmHlZN5a6mgXNlJACwyFoGecJkgi0ctSBnfHrt2I3VzzZ ohxPQUx1Aaw84qDNppzGoRRPH6sjbjXtgWi7ySxiKrQanRHFnn8BqBeU1dEDAO1Una 9oEfX4hitelWAvi1qY0KnDnfRpxYMnsXYL7LzAwKom6VVgYzTL+QUEz+ghSwsxG3Xc iBaWmlbafNkODWxooQQeRp+vDV+QgsqqOg0eLXvfpkQ3egLmoSPCsREqg4h8dLC20k jFyAg3HlB5ZKA== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from esprimo-mx.users.agdsn.de ([141.30.226.129]) by mail.gmx.net (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MAwbz-1py9QU3EjZ-00BO1I; Wed, 26 Apr 2023 23:28:55 +0200 From: Armin Wolf 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: [RFC v2 0/2] platform/x86: Allow retrieving the number of WMI object instances Date: Wed, 26 Apr 2023 23:28:46 +0200 Message-Id: <20230426212848.108562-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:UK4stO+HSR03CMHiOIHSzBpN810UxiBA1BOVuHh6Gx67kvtz0t8 tfLUMcsT0JLww9ZIZHk6HTTtvFBkGKifpLNLwbDYZ5GLVNx7knozxsglYVs+WPSebCT6FJH GmGarmFyhmhERzF/O45eNZhEOPPEPjnVD9gzFmwiBcxp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v6K9BMbcirbZ43e5b57k= 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, URIBL_BLOCKED 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 This experimental patch series allows WMI drivers to retrieve the number of WMI object instances. This functionallity 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. 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 | 15 ++++--- drivers/platform/x86/wmi.c | 40 +++++++++++++++++++ include/linux/acpi.h | 2 + include/linux/wmi.h | 2 + 4 files changed, 51 insertions(+), 8 deletions(-) =2D- 2.30.2