From patchwork Fri Oct 20 08:47:24 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Raag Jadav X-Patchwork-Id: 15660 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:2010:b0:403:3b70:6f57 with SMTP id fe16csp913651vqb; Fri, 20 Oct 2023 01:48:26 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGokRs+yl8Wps00sNfWQb2INXmESWsyQDnTTPpV3N6aGqR0Agcrx7IxYLCCdTVRpUgRNsnK X-Received: by 2002:a67:e0d1:0:b0:457:c725:4bdb with SMTP id m17-20020a67e0d1000000b00457c7254bdbmr1199927vsl.28.1697791705865; Fri, 20 Oct 2023 01:48:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697791705; cv=none; d=google.com; s=arc-20160816; b=Xf7mOUKCaMA09fj/GXloVqCO5KKUWn8eGVs+SiXT0TkZVcXX4s+V00E4R+H5Sc5yY0 5jreZKpiW3iXDm9K2bfNwWDpauPbV0aoCyZ8u2uUoIwTCDB1xMsKNSCiSavipgDQYTVm y9BAomBQZ8MBWzR2a/FHnupXRqBOIfSEeWcOXJxk3bU3lj13eEecDIDlSX75EIT7ivtu n4OP7MvPgwr8ZHWj8hcm+zmO5V2MFOq3q37gaeYSPrC+E/bArqD/jgS6gNUh/uB61HM7 cWd1lrs57TufOUrEjWIaunB6c4L+qBeurOKjOsazqHyr9mZiJkpaXsqbF9zPUQl+9kkZ I4iQ== 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=KFZ+DBhl0YVGTuCm3huxF9+2cqOdSRv2BTFxfwLvo9k=; fh=WAU8dvHbCVEKt7PKP55MCP59DfghQ92mfS2Ma7uEses=; b=cSI7f+cXfLGfk7T5T/CztKMn+IEqvWnORZjjYL/Folayu2TkFRoc9K+wuUU86X8Vub A6f1AncOy11O3T1SxNL9WKbVgpmBcYrF3TEvVMXQuctuMGbqcvr+EYXL97BjRDOOzWlS 6rhMTCwSKhZ8OrkJ4y2TyWhnW907fy0jJrYq4XMKCI0hsmE7jOKiblzlO/u546clE2Ig KUT5zLIJ14rQiw/PYkeWmMic6+fXBc8zcVeHnRz6tU2e/RTpuBr8Myvltvp8BB8tqmv2 M2Q1RTpoYq1rd5noj8waSdsMSUbt8ru0eQiho/Usc57WextJCWqcaxeNNXQh5nvSBHzm ha3A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=LiGzTaeP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 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 morse.vger.email (morse.vger.email. [2620:137:e000::3:1]) by mx.google.com with ESMTPS id cb21-20020a056a02071500b0057777451a91si1580105pgb.581.2023.10.20.01.48.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Oct 2023 01:48:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) client-ip=2620:137:e000::3:1; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=LiGzTaeP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 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 morse.vger.email (Postfix) with ESMTP id 0DA1383BDCCA; Fri, 20 Oct 2023 01:48:23 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1376486AbjJTIsP (ORCPT + 25 others); Fri, 20 Oct 2023 04:48:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33876 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1376474AbjJTIsM (ORCPT ); Fri, 20 Oct 2023 04:48:12 -0400 Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.31]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AAD331A8; Fri, 20 Oct 2023 01:48:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1697791690; x=1729327690; h=from:to:cc:subject:date:message-id; bh=55kFwQ1dJ+2JNO1s52sQQCyE+DnzabG8i8c9Ir2rEwI=; b=LiGzTaePRnnr4rShhjxisC82fwc5QWFK7iH60WI7wDsDQxYZIi4C5Iss jbH/dQj37MTs3XoswEZ9ZxafNXhCb50UvA3ZElVtKjmfCOskiv0imFWZM ChMIz1KO5Zt7Y4rr67VUuNj2ix03/uA92fHBPh/wzmQ3sajZtzwM5Ifhq OXYFxzB6UI+J3km9MWKyAVgQJEAzCv3zqEhSUqMqFQDYaLm+ByE1547JT WQ1bfkz6NBxM57+rHKRMSkXFLG6In+2BvCPTG5k+63bUBqvxTVrDfTI6z 8oWlgemlrLmZ1Oh4YPiN0GDAlTxvma9MM5fX15VSKgITEoSFXy+rZB3bR w==; X-IronPort-AV: E=McAfee;i="6600,9927,10868"; a="450683485" X-IronPort-AV: E=Sophos;i="6.03,238,1694761200"; d="scan'208";a="450683485" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Oct 2023 01:48:09 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10868"; a="873832155" X-IronPort-AV: E=Sophos;i="6.03,238,1694761200"; d="scan'208";a="873832155" Received: from inlubt0316.iind.intel.com ([10.191.20.213]) by fmsmga002.fm.intel.com with ESMTP; 20 Oct 2023 01:47:42 -0700 From: Raag Jadav To: rafael@kernel.org, len.brown@intel.com, robert.moore@intel.com, mika.westerberg@linux.intel.com, andriy.shevchenko@linux.intel.com, mark.rutland@arm.com, will@kernel.org, linux@roeck-us.net Cc: linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org, acpica-devel@lists.linuxfoundation.org, linux-gpio@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-hwmon@vger.kernel.org, mallikarjunappa.sangannavar@intel.com, bala.senthil@intel.com, Raag Jadav Subject: [PATCH v1 0/8] Refine _UID references across kernel Date: Fri, 20 Oct 2023 14:17:24 +0530 Message-Id: <20231020084732.17130-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 autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.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 (morse.vger.email [0.0.0.0]); Fri, 20 Oct 2023 01:48:23 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1780263635982092024 X-GMAIL-MSGID: 1780263635982092024 This series refines _UID references across kernel by: - Extracting _UID matching functionality from acpi_dev_hid_uid_match() helper and introducing it as a separate acpi_dev_uid_match() helper. - Converting manual _UID references to use standard ACPI helpers. Raag Jadav (8): ACPI: utils: Introduce acpi_dev_uid_match() for matching _UID pinctrl: intel: use acpi_dev_uid_match() for matching _UID ACPI: sysfs: use acpi_device_uid() for fetching _UID ACPI: utils: use acpi_dev_uid_match() for matching _UID ACPI: x86: use acpi_dev_uid_match() for matching _UID perf: qcom: use acpi_device_uid() for fetching _UID hwmon: nct6775: use acpi_dev_hid_uid_match() for matching _HID and _UID perf: arm_cspmu: use acpi_dev_hid_uid_match() for matching _HID and _UID drivers/acpi/device_sysfs.c | 6 ++-- drivers/acpi/utils.c | 43 +++++++++++++++++++++------ drivers/acpi/x86/utils.c | 3 +- drivers/hwmon/nct6775-platform.c | 4 +-- drivers/perf/arm_cspmu/arm_cspmu.c | 8 ++--- drivers/perf/qcom_l3_pmu.c | 4 +-- drivers/pinctrl/intel/pinctrl-intel.c | 2 +- include/acpi/acpi_bus.h | 1 + include/linux/acpi.h | 5 ++++ 9 files changed, 51 insertions(+), 25 deletions(-) base-commit: 9bc2fb9a7e41542a193658deff3df572fa24cb68