Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp6017237rwl; Tue, 4 Apr 2023 06:52:57 -0700 (PDT) X-Google-Smtp-Source: AKy350Yq2Aff0xakrEptT0bmVq6lssKiUEnxyaYRefkhv+ATB3gXZnGgRNTMcoPeKdL9y3sf6KeH X-Received: by 2002:a17:906:26c4:b0:933:130e:e81a with SMTP id u4-20020a17090626c400b00933130ee81amr18495156ejc.32.1680616376836; Tue, 04 Apr 2023 06:52:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680616376; cv=none; d=google.com; s=arc-20160816; b=NEjPIQquNgCVOup2BzmeUOAtD82aXj1nTuONKoCKSdY62hGMFtnQ/EwG9HoLbsclXo Q5JOL0ui1LfRuJck53h/Zbs1GLok2BUYdCBxNczQSn1R4i/g1lHNgj3KP49Ls0MHu2qE rprHRlYW/Uy8fjovdL8rq7NVxt34hMf0QH2MrYEUSI//2NHCNm4jmqhlClwbL/L4xoEz H+kEK+jb8CPhobe0gqWuv4TWYSyQuzpsWA0UJjp2krvdIdGt3YrgVeiXfhrsvjm7N+30 MxOtq5MIcVJcjJ4BncUG3z+RqUY7LYVYR8S7GvdkinuzuoiRT2yABTWnxPVbCmKlb24p MXUw== 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=DQU2+ygb3WG9CSUnx6d4trGI6PXksQDIi6/HOSfo08s=; b=rftJsn4y8erou1CXRn0MSU0COEdSkvt62hpF9JZVRx2JyqZdboNwmAWqVo6AfcQtvJ rzIUMF7GFE3Xrb0m3Xe0k244MV6Kho1MJPrWvC4h1GK9MAJAZv6rkl9LIHv7LiCqoF7o EmfT9SkznT0JYH7CPak00hnYpEFzEr0Nd3FPhgPSdrKD8VpEgDoOZ3RxnaVq4rEH2wzk ecpdZpZwX2A8OyyGkTT5YIaNC+0kNbpgrwmzCT3/PdaDWe9IVMIClNKQjk6qHJSfQW0Z 5/xtUdNgr4YaxMotxnyGNSIe5jWEvAHlhr5Pv4KFaM1WmhX2/MZW1A8QLcoZUsMJrtBc bgBg== 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 u26-20020a056402065a00b004af6e957024si5320315edx.580.2023.04.04.06.52.32; Tue, 04 Apr 2023 06:52:56 -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 S234885AbjDDNum (ORCPT + 99 others); Tue, 4 Apr 2023 09:50:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47330 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235301AbjDDNuf (ORCPT ); Tue, 4 Apr 2023 09:50:35 -0400 Received: from frasgout.his.huawei.com (frasgout.his.huawei.com [185.176.79.56]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 502DA10F6; Tue, 4 Apr 2023 06:50:33 -0700 (PDT) Received: from lhrpeml500005.china.huawei.com (unknown [172.18.147.226]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4PrTcd3swxz6J7Bm; Tue, 4 Apr 2023 21:48:33 +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:50:30 +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 16/32] perf/imx_ddr: Assign parents for event_source devices Date: Tue, 4 Apr 2023 14:42:09 +0100 Message-ID: <20230404134225.13408-17-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: lhrpeml500004.china.huawei.com (7.191.163.9) 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 this device appear 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/ Cc: Frank Li Signed-off-by: Jonathan Cameron --- drivers/perf/fsl_imx8_ddr_perf.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/perf/fsl_imx8_ddr_perf.c b/drivers/perf/fsl_imx8_ddr_perf.c index 5222ba1e79d0..e73b83487bb0 100644 --- a/drivers/perf/fsl_imx8_ddr_perf.c +++ b/drivers/perf/fsl_imx8_ddr_perf.c @@ -592,6 +592,7 @@ static int ddr_perf_init(struct ddr_pmu *pmu, void __iomem *base, *pmu = (struct ddr_pmu) { .pmu = (struct pmu) { .module = THIS_MODULE, + .parent = dev, .capabilities = PERF_PMU_CAP_NO_EXCLUDE, .task_ctx_nr = perf_invalid_context, .attr_groups = attr_groups, -- 2.37.2