Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp6020379rwl; Tue, 4 Apr 2023 06:55:36 -0700 (PDT) X-Google-Smtp-Source: AKy350Y8ByXv69Lw5Lv8uAWL56+ZjirIRSvb8KNdxBEu+tdxYdYj/Y9jCHX7IvoRF1B9rCNxf0ap X-Received: by 2002:aa7:cb4f:0:b0:4fc:725:e670 with SMTP id w15-20020aa7cb4f000000b004fc0725e670mr2883360edt.11.1680616536097; Tue, 04 Apr 2023 06:55:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680616536; cv=none; d=google.com; s=arc-20160816; b=Or/eof4sYbNTndpiowpoHO/iY1DA1oqQM60wHacC6PZZ7BkdsYmOZzmNXK1PnV7fiU w+4vUrvL4e6KfXaM3othQOqQTETl1Cv/qu3vibyKwoWYdhJM0lXjZ0fxhR7cS6E04ApI arEpHWs0epcxQOWkAvdvBOlvgKMFICrQk6o5joA0UQldWm6Euq2zMthlPHMNUvSr+DiE mnqs4EVul/e4igbgfIEv5gUKJP2MEzLatMFHI9bDtlc6FmycT+maL5V1/AVzEtc+2hIN rNYMJPCUpcUusetr8sVwsv5+gWDy6yAnGW+D9T7fzF6zhwbvFTpGjlKXdkfimaq/tiEa GLow== 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=QqJroT3oXdOigEEM2SD2rj/tgFlMVR63EkQeFamKEV8=; b=IC2yeHQMsZmEJXAOgedzpRRH9GdYX91e4pwkWiW426ac/M2IJsxOXBytfymJT74cTX Z3XN3P9bMyBOtrr9KecV4S9lDfQsvVSy1Ogvn5QnssHd1INd6ifCxowSpJA/LkZCT852 GUTXU4A+8w4wThLBBCe9Zj6vsw4G2tTM87FYqAvrtb46mtGoslcswnTYQm+uljMjYJkO KyHRXjw6AvmhXjBB9moPw0h66/K7izIWI/IJqnHb0rsDIdiRZOViaqVN1dc/bf4OVjWd 5h/+lhSYTCqaErWTyoI1+ywIkvgrthhAQD8o1I4ulJFvVM1lsRoEIcTfbBMWQ6KLooeJ eP1w== 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 q22-20020a056402033600b00501d50c1416si2767155edw.411.2023.04.04.06.55.10; Tue, 04 Apr 2023 06:55:36 -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 S235695AbjDDNyb (ORCPT + 99 others); Tue, 4 Apr 2023 09:54:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52544 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235732AbjDDNyQ (ORCPT ); Tue, 4 Apr 2023 09:54:16 -0400 Received: from frasgout.his.huawei.com (frasgout.his.huawei.com [185.176.79.56]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5D4094C25; Tue, 4 Apr 2023 06:54:09 -0700 (PDT) Received: from lhrpeml500005.china.huawei.com (unknown [172.18.147.207]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4PrTfS0xHSz67lVY; Tue, 4 Apr 2023 21:50:08 +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:54:06 +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 23/32] perf/arm-dsu: Assign parents for event_source device Date: Tue, 4 Apr 2023 14:42:16 +0100 Message-ID: <20230404134225.13408-24-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/ Signed-off-by: Jonathan Cameron --- drivers/perf/arm_dsu_pmu.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/perf/arm_dsu_pmu.c b/drivers/perf/arm_dsu_pmu.c index fe2abb412c00..de75c00cb456 100644 --- a/drivers/perf/arm_dsu_pmu.c +++ b/drivers/perf/arm_dsu_pmu.c @@ -751,6 +751,7 @@ static int dsu_pmu_device_probe(struct platform_device *pdev) dsu_pmu->pmu = (struct pmu) { .task_ctx_nr = perf_invalid_context, + .parent = &pdev->dev, .module = THIS_MODULE, .pmu_enable = dsu_pmu_enable, .pmu_disable = dsu_pmu_disable, -- 2.37.2