Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp6017726rwl; Tue, 4 Apr 2023 06:53:19 -0700 (PDT) X-Google-Smtp-Source: AKy350bNl10lS1NAPYWiRT3gtBKyPt0RJEhVB+RhHpiu74nvfFMF6pNry4a3p/njIeuRJMtBm9Xf X-Received: by 2002:a17:907:c00a:b0:947:d3d0:ae1c with SMTP id ss10-20020a170907c00a00b00947d3d0ae1cmr2691833ejc.0.1680616399491; Tue, 04 Apr 2023 06:53:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680616399; cv=none; d=google.com; s=arc-20160816; b=QQarpxh3GMiTA7uqAHBd+bf2j49lrjiRoQYf1utLTnQ0zs7H8gLVTUJFhDvnM44cs2 XBN5gbIYAeTsDhtr4iqnN9lx0M9MHSz2uRFOE7KkekOneZ+O5NIzyNEgPuHd5ACG5tPC drMV+xLs8fzYoBRWBEZNhVVyEWZRM6i7dXdbWvldqnGqoyhHFSnsQS50v4hBMQcm8lT8 0y/+EKqbuImCn7eUXietPn9dTc3dYG4fSMS9ZPNbSLULSF4zuxyhtXTeXhokBgQlo21q KDdMB8mNoyZe/pPvf57Fa9zR467jVUqtKTSevig+iLstx2H72XU3PUL+Kp4n/wzPuKkV UvlQ== 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=ixx/iSTwlvmTvl0X+x++2j6AT7HKoKPwxXN6OozB2m8=; b=D+Kd3rw8eAZDhklVy4l7bIWow0T5q6zjtgDwHxw0st6h7tv3kzsIt0o8TiG+6VteJe PkWSa6y6PD5yhXp+7xdM+euWimZ2zcOMJKl7WASHAm763pWzzSLew5enhwhcSvNUfFaB coD7HrpDKkxnS6sVW4Ux17YH7Udx5rNBXefg69x6LoRKrRxZ6iVAOLeZ+XwfVcq6X+ve JhT9PWGPhIQDQkw8SjNkrEWQtOe4SSanCcWy6SVfO7sdPiaOP020tIdnRh6R3EizfHQh DNXgckQEW7WC9Nnin+2LWRTEewbSawKrBu3s3pBJYLv8P7t886xCGOzGzCNFwtKklSxF nl6w== 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 fj16-20020a1709069c9000b00947d0d7390esi279595ejc.552.2023.04.04.06.52.55; Tue, 04 Apr 2023 06:53:19 -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 S235434AbjDDNvk (ORCPT + 99 others); Tue, 4 Apr 2023 09:51:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50102 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235454AbjDDNvi (ORCPT ); Tue, 4 Apr 2023 09:51:38 -0400 Received: from frasgout.his.huawei.com (frasgout.his.huawei.com [185.176.79.56]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C81F71BD0; Tue, 4 Apr 2023 06:51:34 -0700 (PDT) Received: from lhrpeml500005.china.huawei.com (unknown [172.18.147.201]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4PrTgB2k2qz67VxZ; Tue, 4 Apr 2023 21:50:46 +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:51:31 +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 18/32] perf/alibaba_uncore: Assign parents for event_source device Date: Tue, 4 Apr 2023 14:42:11 +0100 Message-ID: <20230404134225.13408-19-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 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/ Cc: Shuai Xue Signed-off-by: Jonathan Cameron --- drivers/perf/alibaba_uncore_drw_pmu.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/perf/alibaba_uncore_drw_pmu.c b/drivers/perf/alibaba_uncore_drw_pmu.c index a7689fecb49d..0d129acf3f84 100644 --- a/drivers/perf/alibaba_uncore_drw_pmu.c +++ b/drivers/perf/alibaba_uncore_drw_pmu.c @@ -683,6 +683,7 @@ static int ali_drw_pmu_probe(struct platform_device *pdev) drw_pmu->pmu = (struct pmu) { .module = THIS_MODULE, + .parent = &pdev->dev, .task_ctx_nr = perf_invalid_context, .event_init = ali_drw_pmu_event_init, .add = ali_drw_pmu_add, -- 2.37.2