Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp6015218rwl; Tue, 4 Apr 2023 06:51:14 -0700 (PDT) X-Google-Smtp-Source: AKy350YlewLFXEXwt7liu/sL759V6udSGWMpSIoLj635g19PgxGq85CNlXIT7CpYr/f54bE1e6OX X-Received: by 2002:a17:906:1248:b0:8f2:62a9:6159 with SMTP id u8-20020a170906124800b008f262a96159mr2105106eja.2.1680616274313; Tue, 04 Apr 2023 06:51:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680616274; cv=none; d=google.com; s=arc-20160816; b=ZPFGHSR5grh371Cfn6w3Dq21b1NsXgnw7BbIb3MP0TKsAt4FKRojNJlPTj7iyNvJeN j9SuTeJv9UuxZW0gMdYljV+UMJC2M4B3fuo6iaMUWbrCshL10SlKEcoFUtYSjdS4Gz9L Lx91v/5Y9w1+szRNlNWCmP1rU7nXmZpWND+/BSgCO7hvEKfCPMbLhjaooOZg1UxUP/wB 7bpmoBhgV5dkD1a6+Di52MkgduUDzzIrWaiE4T2+fJ9mTCQHszPMzqqLIx4/Nlt2yYF8 w/fv4mZBGbKC4rP2HsbOy7ugdc7nCcLYpk+qOXn1WuyECTuIRLbo/sQdGM+HEVv3DP6n hk4Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=zGPKunwj88dZGaGqhFTgXuCI4ohOTCzdB4ZLOVkulak=; b=kcswH9OvNyA6ZorftqngteL/hyYYPqZZ6rEDo7z1IxCeWc/7v0AdhKgkBVSZgsoW84 ntubsnFDhqtcxV4kQr1VUulQFOBLJ5McCfr92WygZzXv0tQbyqi7pAowOPaoT72IQvBK 8YxJWIUo/mAG2qhKQ6dSBshJ/OQBOBDdBoAWuHihgA+5hDQViu7ZDKOL/89PKj5RZDd9 AXqIFpNoCIlPDBQG1/fXjVKbaoo/It2RF9m4i25cFAAk31BaNDP35yZprxP6ADIkKLkw 2QJtZfKnLbLItjLzCjR+AiAA8nlyWz2G4lHEzTTyoGPmFHdz7iAXBKL6H9hUG/hoilgm +I2w== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o1-20020aa7c7c1000000b005002c6f2f0asi1050126eds.124.2023.04.04.06.50.49; Tue, 04 Apr 2023 06:51: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; 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=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235182AbjDDNq0 (ORCPT + 99 others); Tue, 4 Apr 2023 09:46:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37650 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235153AbjDDNqL (ORCPT ); Tue, 4 Apr 2023 09:46:11 -0400 Received: from frasgout.his.huawei.com (frasgout.his.huawei.com [185.176.79.56]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3608B469A; Tue, 4 Apr 2023 06:45:55 -0700 (PDT) Received: from lhrpeml500005.china.huawei.com (unknown [172.18.147.206]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4PrTWH59hHz6J745; Tue, 4 Apr 2023 21:43:55 +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_128_GCM_SHA256) id 15.1.2507.23; Tue, 4 Apr 2023 14:45:52 +0100 From: Jonathan Cameron To: Mark Rutland , Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Will Deacon , , , CC: , Dan Williams , Shaokun Zhang , Yicong Yang , Jiucheng Xu , Khuong Dinh , Robert Richter , 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 07/32] perf/amlogic: Assign parents for event_source devices Date: Tue, 4 Apr 2023 14:42:00 +0100 Message-ID: <20230404134225.13408-8-Jonathan.Cameron@huawei.com> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20230404134225.13408-1-Jonathan.Cameron@huawei.com> References: <20230404134225.13408-1-Jonathan.Cameron@huawei.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.122.247.231] X-ClientProxiedBy: lhrpeml500003.china.huawei.com (7.191.162.67) To lhrpeml500005.china.huawei.com (7.191.163.240) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-2.3 required=5.0 tests=RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H2,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 lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Currently all these devices appear directly under /sys/devices/ Only root busses should appear there, so instead assign the pmu->dev parents to be the platform device. Link: https://lore.kernel.org/linux-cxl/ZCLI9A40PJsyqAmq@kroah.com/ Cc: Jiucheng Xu Signed-off-by: Jonathan Cameron --- drivers/perf/amlogic/meson_ddr_pmu_core.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/perf/amlogic/meson_ddr_pmu_core.c b/drivers/perf/amlogic/meson_ddr_pmu_core.c index b84346dbac2c..e0d3e87457e0 100644 --- a/drivers/perf/amlogic/meson_ddr_pmu_core.c +++ b/drivers/perf/amlogic/meson_ddr_pmu_core.c @@ -490,6 +490,7 @@ int meson_ddr_pmu_create(struct platform_device *pdev) *pmu = (struct ddr_pmu) { .pmu = { .module = THIS_MODULE, + .parent = &pdev->dev, .capabilities = PERF_PMU_CAP_NO_EXCLUDE, .task_ctx_nr = perf_invalid_context, .attr_groups = attr_groups, -- 2.37.2