Message ID | 20231020084732.17130-7-raag.jadav@intel.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:2010:b0:403:3b70:6f57 with SMTP id fe16csp913746vqb; Fri, 20 Oct 2023 01:48:46 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFPAfWy7/O9+WE/MUYiXzG8TC7rYf9OxkiOggOMPOmZ0zlhTWxabd6ezFxq0uwQfbBMFBJb X-Received: by 2002:a17:903:186:b0:1b6:bced:1dc2 with SMTP id z6-20020a170903018600b001b6bced1dc2mr1136004plg.0.1697791726109; Fri, 20 Oct 2023 01:48:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697791726; cv=none; d=google.com; s=arc-20160816; b=fz4VnA5GdMOraph5pCsdSeZyaEmZMnhDkFut11gPj3QLbFZcFhDPWFf8Hfkli1md8A BhpHZF6KcBoFVRkWpMSSG9mv8tEKBugDUbgDFvmQS0FpmPxXrr5YTP9GHJSgjY/7JFQp 65p0qL9pQVsXs7nIhJbK4EI2mImDouXRjlQWMFQQF4hdmBYXvWTfi2c9OwlYT33i9XMO TiT3ghpZQRXvVi9TcX/gG61aEAb6vQZ11qEuzy0ceEOEQHBzPX51iCl2txsMn2yH8ond CgMRYYojFIZGhWamlps8TbV+gz3FVYCfzmUPbJu7pxBg3zBkulXpl4uMnKAy86Da4CjO 8lZA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from:dkim-signature; bh=Xz86ManxGp4kN1wQCNLv8x0ISNN1HHYKkGJa9r9OkXs=; fh=WAU8dvHbCVEKt7PKP55MCP59DfghQ92mfS2Ma7uEses=; b=n9QRIiepbTmPq45H78f+evdlMDGLUMubLeaWMM2C48/BDzz9rGKNFI+4Zji1F5PLoH qKsU/1dsudj+DJZg3/DKwn0GTY2PnOD068yxCde1alP1sArBOKl495csP2b9R7EZ7qGD V44kyAmpDPjY99kehdZALCN6Vw9oXUTlZenZEoKbls3lrvrvO9PUjHxAnaHNCZzCcwoC dguJ/i6KuPLBEdapuGpeoZdIvS7tfU8iKkGC4TZCbxwKOdqYf6+WeLjBUQf1uR+V1faX P0V06FlDI7SBfiVjpGE1KRKX0axyLvSV6u7QHPpMiAJmyh3iK0Fx/93h6Mg096BddCD8 zp/w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Dipm04id; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 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 fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id z7-20020a1709028f8700b001c9c89fd36dsi1300871plo.203.2023.10.20.01.48.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Oct 2023 01:48:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Dipm04id; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 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 fry.vger.email (Postfix) with ESMTP id B9BED82B9D4A; Fri, 20 Oct 2023 01:48:43 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1376574AbjJTIsd (ORCPT <rfc822;lkml4gm@gmail.com> + 25 others); Fri, 20 Oct 2023 04:48:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44550 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1376541AbjJTIsS (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 20 Oct 2023 04:48:18 -0400 Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.31]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8C313D46; Fri, 20 Oct 2023 01:48:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1697791696; x=1729327696; h=from:to:cc:subject:date:message-id:in-reply-to: references; bh=rSipyHhM4gYIUQSn5eaLq9kVKKAAb0HFtJJ9r0gwffo=; b=Dipm04idYkMzuxfKEQvNTRUbQWb2ofdTihZCQQj2sc6TfyIXHrgtj07j niId35sdlDZojEhH7IIj6anL8A5+17T1e0sEgCUF5qNhnhKi3zMwIteTz Iajuxz2WXrCqx/xLvXl8lEYikhG6R5eBb2YvjTMz8pXtqukDo6HwwTseJ CZRmJr58cLmyW9tLGosDD25+YhqSZVyIozYeO8G6VJJ/sIkxzHM3QcFUu KLLGXVO9v2laRFdNkTAIHec9rFcj/7bRCnVRKtI+2Iyc6MmB81pQ93vOD onaDFmBgBtlNSQOUdMU14QfYM+mezRiTjSL5disOSBKjztHHRTk9NlVBE g==; X-IronPort-AV: E=McAfee;i="6600,9927,10868"; a="450683586" X-IronPort-AV: E=Sophos;i="6.03,238,1694761200"; d="scan'208";a="450683586" 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:16 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10868"; a="873832186" X-IronPort-AV: E=Sophos;i="6.03,238,1694761200"; d="scan'208";a="873832186" Received: from inlubt0316.iind.intel.com ([10.191.20.213]) by fmsmga002.fm.intel.com with ESMTP; 20 Oct 2023 01:48:11 -0700 From: Raag Jadav <raag.jadav@intel.com> 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 <raag.jadav@intel.com> Subject: [PATCH v1 6/8] perf: qcom: use acpi_device_uid() for fetching _UID Date: Fri, 20 Oct 2023 14:17:30 +0530 Message-Id: <20231020084732.17130-7-raag.jadav@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20231020084732.17130-1-raag.jadav@intel.com> References: <20231020084732.17130-1-raag.jadav@intel.com> 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 fry.vger.email Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Fri, 20 Oct 2023 01:48:43 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1780263657238807674 X-GMAIL-MSGID: 1780263657238807674 |
Series |
Refine _UID references across kernel
|
|
Commit Message
Raag Jadav
Oct. 20, 2023, 8:47 a.m. UTC
Convert manual _UID references to use standard ACPI helpers.
Signed-off-by: Raag Jadav <raag.jadav@intel.com>
---
drivers/perf/qcom_l3_pmu.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
Comments
On Fri, Oct 20, 2023 at 10:48 AM Raag Jadav <raag.jadav@intel.com> wrote: > > Convert manual _UID references to use standard ACPI helpers. > > Signed-off-by: Raag Jadav <raag.jadav@intel.com> > --- > drivers/perf/qcom_l3_pmu.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/perf/qcom_l3_pmu.c b/drivers/perf/qcom_l3_pmu.c > index 2887edb4eb0b..f16783d03db7 100644 > --- a/drivers/perf/qcom_l3_pmu.c > +++ b/drivers/perf/qcom_l3_pmu.c > @@ -742,8 +742,8 @@ static int qcom_l3_cache_pmu_probe(struct platform_device *pdev) > > l3pmu = devm_kzalloc(&pdev->dev, sizeof(*l3pmu), GFP_KERNEL); > name = devm_kasprintf(&pdev->dev, GFP_KERNEL, "l3cache_%s_%s", > - acpi_dev_parent(acpi_dev)->pnp.unique_id, > - acpi_dev->pnp.unique_id); > + acpi_device_uid(acpi_dev_parent(acpi_dev)), > + acpi_device_uid(acpi_dev)); > if (!l3pmu || !name) > return -ENOMEM; > > -- Applied as 6.7 material. QCom perf maintainers, if you'd rather take this yourselves, please let me know. Thanks!
diff --git a/drivers/perf/qcom_l3_pmu.c b/drivers/perf/qcom_l3_pmu.c index 2887edb4eb0b..f16783d03db7 100644 --- a/drivers/perf/qcom_l3_pmu.c +++ b/drivers/perf/qcom_l3_pmu.c @@ -742,8 +742,8 @@ static int qcom_l3_cache_pmu_probe(struct platform_device *pdev) l3pmu = devm_kzalloc(&pdev->dev, sizeof(*l3pmu), GFP_KERNEL); name = devm_kasprintf(&pdev->dev, GFP_KERNEL, "l3cache_%s_%s", - acpi_dev_parent(acpi_dev)->pnp.unique_id, - acpi_dev->pnp.unique_id); + acpi_device_uid(acpi_dev_parent(acpi_dev)), + acpi_device_uid(acpi_dev)); if (!l3pmu || !name) return -ENOMEM;