Received: by 2002:ab2:69cc:0:b0:1f4:be93:e15a with SMTP id n12csp28810lqp; Fri, 12 Apr 2024 09:36:02 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUQbYK/u58hgDao4ql6mf6xSG4QLP49JI4425ooX/cYQt/V8FohoBYglSXiT7bGVk56kU1+7ft1A1eMKj9a4rCpjpx2eq/Q39VA5kN9Kg== X-Google-Smtp-Source: AGHT+IFERvBKbLNgIhaUvTNcxZ0IVkdHoz/ZoqwI1zb/B8ucuVHav7xPmJLXDeT5WsrBYmLNwLW3 X-Received: by 2002:a05:6a00:22cf:b0:6ed:88e5:53d4 with SMTP id f15-20020a056a0022cf00b006ed88e553d4mr2961453pfj.8.1712939761757; Fri, 12 Apr 2024 09:36:01 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712939761; cv=pass; d=google.com; s=arc-20160816; b=rw04JqfzU5ywMfom1H3KAGXGDZl0cHeyqxtcyoR+qOXkeJAYqyLXKhuI+3J81B6V+q +LEBNVX/jQS8WnrTXrC4ahgIJbrenUm6/gYVLwQ6zROj6MFRffm5Ibq8hO/tuE1yBeto /DZAGE4X8JVgiXDV3OHgi8iXTHxOsL45RzcIEVPQE71WUgpegFdNEFV5WUQVmL5y3Fpd nmWoWHklfuhUySIP8boDx+boAQUoY1S8WFyCBTM9E3tBoDVaJwNL1Y7OGZG59xFVigLF 8axeO6cWRlIOOss6HPWnePbmCmiUV/8N3LE2LpwrdjpP3HDtMDDqt8DWoc6YZ/5w0Wtk yqVg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from; bh=R9KEJRCT/c550GWTj91qaZeZugtcfn32GYGrSn6DJIU=; fh=22aR/NFsCqnOGZIQzPDG1h79gcfY6gTV1vkpxQGj2A0=; b=Ko5wnecWnBvcZ3fqHn3gL7ZYmMJqqg6Dg3EP8obYAJnUg2vH/9CgqVXov2bovYZX9a JwtAkF5RiXR/i/CyTwfdJ2wuJiYXE5yOwXx53KWMeEDklPtGnnTLa5/bU+pC3h5SXaOS qQeYiUmN8nqkndCcrNadxQoKQKIWObS5mI1LC7rGUkmbt3kvCZhNFp1FIgXk5L571MYW x+pgLpb9ErXoHzp1XC93nszPyJrDRXhCyO1Cdk22+P8FBMOIjv6jYvkMyVhPDVLJyJTL TQkvJd595VH0YL1W+L10sUzRvUCeL2mNiuxjuC3xFPu4XZB8jdkQYqOXvG5zZjoSgJHG TR0A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=huawei.com dmarc=pass fromdomain=huawei.com); spf=pass (google.com: domain of linux-kernel+bounces-143050-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-143050-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id g10-20020a636b0a000000b005dc927ee2fasi3385410pgc.710.2024.04.12.09.36.01 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Apr 2024 09:36:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-143050-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=huawei.com dmarc=pass fromdomain=huawei.com); spf=pass (google.com: domain of linux-kernel+bounces-143050-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-143050-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id D1385B2418E for ; Fri, 12 Apr 2024 16:20:29 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2595E148FEE; Fri, 12 Apr 2024 16:19:13 +0000 (UTC) Received: from frasgout.his.huawei.com (frasgout.his.huawei.com [185.176.79.56]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8F2BD148FF1; Fri, 12 Apr 2024 16:19:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.176.79.56 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712938752; cv=none; b=j3lMToRfzgmU+sHzzSVWckvwVubZ1kNprJFmy68DRmj7llRMqKnfSbBlBeYZ9bLi2V3CYk/9Gv6XuSIkHp20SGYwp0iyXRA2pM81NcxcGbpfuhdigUw5O2DwqnKg0R3JziKaojOY4MKMlY/cFqOGtzjRcFp6jIpB2PeqJsH++gU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712938752; c=relaxed/simple; bh=fBqKn3F0hECA/34VGzLhkMczx7aDfFIGTgTWwzLDA2w=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=dDOFzJMpuk4d79wMOz0821Nk86YRFkHnUR9S8bnT6mviI9+DPzLuWKe992lz0Hmj7GoLU1KmjjB+/rc9pYPa5h13NXH+A2FkXRIQQXuxOkGh9YOb2z3AdMEujMtTDwumDaTIXgRKO8AGOcx22kbUe3XMTi/H6Yu9OT/qfsnNImY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com; spf=pass smtp.mailfrom=huawei.com; arc=none smtp.client-ip=185.176.79.56 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=huawei.com Received: from mail.maildlp.com (unknown [172.18.186.231]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4VGMCk6spfz67gNC; Sat, 13 Apr 2024 00:17:22 +0800 (CST) Received: from lhrpeml500005.china.huawei.com (unknown [7.191.163.240]) by mail.maildlp.com (Postfix) with ESMTPS id 745EA1400CF; Sat, 13 Apr 2024 00:19:07 +0800 (CST) Received: from SecurePC-101-06.china.huawei.com (10.122.247.231) by lhrpeml500005.china.huawei.com (7.191.163.240) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.35; Fri, 12 Apr 2024 17:19:06 +0100 From: Jonathan Cameron To: Mark Rutland , Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Will Deacon , , , CC: , Shaokun Zhang , Yicong Yang , Jiucheng Xu , Khuong Dinh , Atish Patra , Anup Patel , Andy Gross , Bjorn Andersson , Frank Li , Shuai Xue , Vineet Gupta , Shawn Guo , Fenghua Yu , Dave Jiang , Wu Hao , Tom Rix , , Suzuki K Poulose , Liang Kan Subject: [PATCH v2 16/30] perf/arm_pmu: Assign parents for event_source devices Date: Fri, 12 Apr 2024 17:10:43 +0100 Message-ID: <20240412161057.14099-17-Jonathan.Cameron@huawei.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240412161057.14099-1-Jonathan.Cameron@huawei.com> References: <20240412161057.14099-1-Jonathan.Cameron@huawei.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: lhrpeml100003.china.huawei.com (7.191.160.210) To lhrpeml500005.china.huawei.com (7.191.163.240) Currently the PMU device appears directly under /sys/devices/ Only root busses should appear there, so instead assign the pmu->dev parent to be the platform device. Link: https://lore.kernel.org/linux-cxl/ZCLI9A40PJsyqAmq@kroah.com/ Signed-off-by: Jonathan Cameron --- drivers/perf/arm_pmu_platform.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/perf/arm_pmu_platform.c b/drivers/perf/arm_pmu_platform.c index 3596db36cbff..4b1a9a92ea11 100644 --- a/drivers/perf/arm_pmu_platform.c +++ b/drivers/perf/arm_pmu_platform.c @@ -196,6 +196,7 @@ int arm_pmu_device_probe(struct platform_device *pdev, if (!pmu) return -ENOMEM; + pmu->pmu.parent = &pdev->dev; pmu->plat_device = pdev; ret = pmu_parse_irqs(pmu); -- 2.39.2