From patchwork Thu Nov 23 10:06:12 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Raag Jadav X-Patchwork-Id: 16989 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:ce62:0:b0:403:3b70:6f57 with SMTP id o2csp338103vqx; Thu, 23 Nov 2023 02:07:52 -0800 (PST) X-Google-Smtp-Source: AGHT+IHgf0I2sLucADw7l5pCZidRAgmV0RaeNPjiQFO09rOvSqRYsdkOGAJ5/X56Hz4sqezLApQ1 X-Received: by 2002:a05:6e02:2189:b0:359:4fde:6294 with SMTP id j9-20020a056e02218900b003594fde6294mr7197574ila.23.1700734072554; Thu, 23 Nov 2023 02:07:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700734072; cv=none; d=google.com; s=arc-20160816; b=V9oSqLj+dKTlOskWkXSqW680lyxZycmg6rTf31fO6gz4VDYo3lSTfRUhprvVwP0S/P Ht1p/ffOktVhh5fAhcm9R4qoEmanm7zySvXxdq20nXtWd05h/5G613BgPf7qsyNm0oYH gHNHPA6TlEnzLPfG+9O/d3RCUglyeT+ku7+CvlUuSzpMX7SZUU8SupHKXWdyykzVAA6s EyJ5tukbwpc32lDgrB2W18fkR6LFKziGI3D4iFTEWVZ0DfQIq0LO3Z5v5xUgMdrHhJMs iascLHS4955kRimK+eypuYg+p7gljMYz5WfB6i/dHFP2jWKVQVjmkwOrljYrcmUta/2+ jNWA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from :dkim-signature; bh=t4bQCbXQlzxxazB7XfhZqpv/hagHRwnwrWHPBqCXiUE=; fh=LrjGCQr9k+7CYyd6XEdJgJkCFIUW/cPwqK3zW8PbdHI=; b=yF9Lfz1XIdPC/A/J+lMvIqLXI3kgtKpQ1GQccZWzxsuM9pCyVtXnYQLjcdjGLgyhn4 NhkJp102Qzvgl+pZC2NKTPDVpW7Rs1yBLiS5y6MuLcgkq6/hIw8NrOxYRB6Ri2HtJMhY GEKscKAviVmjnV6xb+e39k832zLCdh5QeFT63h8gQ5K0Df1cSgWZ6qaj8WSS/jnRRMUK X6L5ekPOmsYjMvsrW43viO5eHglc60lsNtgjUokz7y8GGTxRizKr9gWyl6+DFYExdHad OGge+gt7GAoo+bOEclajRxheDLuAPWGJWX43yLJMmgQFr2OF6kN6USlL16nJxcoMBbSA vqJQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=DqPTqpN5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id f18-20020a056a0022d200b0068fe0f46f27si982577pfj.171.2023.11.23.02.07.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Nov 2023 02:07:52 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=DqPTqpN5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 5045280737FC; Thu, 23 Nov 2023 02:07:45 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234686AbjKWKHT (ORCPT + 99 others); Thu, 23 Nov 2023 05:07:19 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32888 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235335AbjKWKHK (ORCPT ); Thu, 23 Nov 2023 05:07:10 -0500 Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.31]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DEEDB10F2; Thu, 23 Nov 2023 02:07:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1700734028; x=1732270028; h=from:to:cc:subject:date:message-id; bh=E/GNlBnsRoIGgHD6OlYnLt2vW4tbci5Zhdk7KhH8jlc=; b=DqPTqpN51taxpHBWLAjn5Q5xdMcAmbohYBp/IgpQkPc59q4b3lTERgBR vtyTdDmBJIY0ndMnydDKLX04vdJJ17+Ymgt4OExv4uBDKMSvyHHJ8SJxp xHAQCsdjMpscYAS+aQiCxp/0CtWbm1WradtlLH2hFHEAs4/zAbn6bgYcX b2XmdGPuFl89kqK90BZ1EtT6g113XYLua8Ybmt1LEtETH2zYRbFK+wV/k 8GsV92RYn8KgqLrg/xu9y0cL2KJVC0ct6WJTA0Boj3xOYVRc/OnKp6HPV RIPd9yzrhE50IyLK4kHMjWpGllKtktl+5ROJCKS2kG447FWGdqS8nyE/u g==; X-IronPort-AV: E=McAfee;i="6600,9927,10902"; a="456576372" X-IronPort-AV: E=Sophos;i="6.04,221,1695711600"; d="scan'208";a="456576372" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Nov 2023 02:07:07 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10902"; a="767160407" X-IronPort-AV: E=Sophos;i="6.04,221,1695711600"; d="scan'208";a="767160407" Received: from inlubt0316.iind.intel.com ([10.191.20.213]) by orsmga002.jf.intel.com with ESMTP; 23 Nov 2023 02:07:02 -0800 From: Raag Jadav To: mika.westerberg@linux.intel.com, andriy.shevchenko@linux.intel.com, rafael@kernel.org, lenb@kernel.org, robert.moore@intel.com, ardb@kernel.org, will@kernel.org, mark.rutland@arm.com Cc: linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org, acpica-devel@lists.linuxfoundation.org, linux-efi@vger.kernel.org, linux-arm-kernel@lists.infradead.org, mallikarjunappa.sangannavar@intel.com, bala.senthil@intel.com, Raag Jadav Subject: [PATCH v3 0/5] Support _UID matching for integer types Date: Thu, 23 Nov 2023 15:36:12 +0530 Message-Id: <20231123100617.28020-1-raag.jadav@intel.com> X-Mailer: git-send-email 2.17.1 X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on howler.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Thu, 23 Nov 2023 02:07:45 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1783348930152916228 X-GMAIL-MSGID: 1783348930152916228 This series updates the standard ACPI helpers to support _UID matching for both integer and string types, and uses them in a couple of places. Changes since v2: - Drop __builtin functions to reduce complexity (Rafael) - Update tags Changes since v1: - Fix build errors Raag Jadav (5): ACPI: bus: update acpi_dev_uid_match() to support multiple types ACPI: bus: update acpi_dev_hid_uid_match() to support multiple types ACPI: LPSS: use acpi_dev_uid_match() for matching _UID efi: dev-path-parser: use acpi_dev_uid_match() for matching _UID perf: arm_cspmu: drop redundant acpi_dev_uid_to_integer() drivers/acpi/acpi_lpss.c | 16 ++----- drivers/acpi/utils.c | 48 ------------------- drivers/firmware/efi/dev-path-parser.c | 7 +-- drivers/perf/arm_cspmu/arm_cspmu.c | 4 +- include/acpi/acpi_bus.h | 65 +++++++++++++++++++++++++- include/linux/acpi.h | 15 ++---- 6 files changed, 74 insertions(+), 81 deletions(-) base-commit: accf6bb711d6819cce89a122ccde4811c58c160e