Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp6018201rwl; Tue, 4 Apr 2023 06:53:43 -0700 (PDT) X-Google-Smtp-Source: AKy350YNaG0UDtVaoJZSNrHfcFRGaevwMNr0qs+W0LKMJgRANZbzobmUTQSQozTSfuxXSwFYz0bz X-Received: by 2002:a17:902:f301:b0:1a2:1f8b:4ba8 with SMTP id c1-20020a170902f30100b001a21f8b4ba8mr2173371ple.60.1680616422714; Tue, 04 Apr 2023 06:53:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680616422; cv=none; d=google.com; s=arc-20160816; b=SXUmI0v6cY3LBphM8mzx70pJRv78DJm1G16INjQ/yymSrQWACEATISJB0S7vTy9z8q F/nfc8g7jXdtdlR1P/vDYTkqiLXHhUbONrECI/o6jH/Y7wpnGZ6nTISmuQIOltg7Ozg3 vJfKmD1mOh/oQsf3fP56nios92S4rlpS3fcA6vgWGV0vPYFwDeIf1J4tcVLajvf1MS3s Y6G+82Tx4yXfDtBMYaAyZrQociBvxVcSl6u8tkiztFCMtzrVi3+X1voUk1kq6twERqrL njkqKjntMHiKDSZwi3ncinU6NQzG540rgCBP71y9Yj820gkn4zGtal3tTtvFUJyfdJzg gVbA== 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=AtEiaakRG173RS0BdgsA2YsAzphUYt/CNGIXEpn4q3w=; b=AAeaH2HMx9wKbQ1kJiTsBc3wzEWNgwPTdhblwtjI/kumHOOm9qnyhfhvX46LHsSR6M 3cNNW08Qo2mxNTL+6Fte8wWtvbjvXoEovAiNoJpZ3r65IuRG0R2WZ4r3KNZ5oavjGApy DoiePLp8xPtRU4d0hxrV34dvzWxOayR2LUFfJ8f5qr+IqCteKUsWt3bQ+huL7wc0sd4z gXXGaRdiv+QF4rA4vPfIAnPdFVMdyRpHjpLA8AjcO87Ni+oA7tc/aOVaktM+HxqXhvIP d5d9URNVEMk8efaaI4bDP7RE10ZSFs5zXCvfPHcnxNCG1vjqX2xo88bspChiy6e6jSjW c9DQ== 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 t2-20020a170902e84200b001a1dfd26c37si10743720plg.532.2023.04.04.06.53.30; Tue, 04 Apr 2023 06:53:42 -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 S235526AbjDDNw0 (ORCPT + 99 others); Tue, 4 Apr 2023 09:52:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51646 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235500AbjDDNwS (ORCPT ); Tue, 4 Apr 2023 09:52:18 -0400 Received: from frasgout.his.huawei.com (frasgout.his.huawei.com [185.176.79.56]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C7CDC469A; Tue, 4 Apr 2023 06:52:05 -0700 (PDT) Received: from lhrpeml500005.china.huawei.com (unknown [172.18.147.201]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4PrTfQ2FXwz6J76Q; Tue, 4 Apr 2023 21:50:06 +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:52:02 +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 19/32] perf/arm-cci: Assign parents for event_source device Date: Tue, 4 Apr 2023 14:42:12 +0100 Message-ID: <20230404134225.13408-20-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 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-cci.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/perf/arm-cci.c b/drivers/perf/arm-cci.c index 03b1309875ae..502581ba7d15 100644 --- a/drivers/perf/arm-cci.c +++ b/drivers/perf/arm-cci.c @@ -1412,6 +1412,7 @@ static int cci_pmu_init(struct cci_pmu *cci_pmu, struct platform_device *pdev) cci_pmu->pmu = (struct pmu) { .module = THIS_MODULE, + .parent = &pdev->dev, .name = cci_pmu->model->name, .task_ctx_nr = perf_invalid_context, .pmu_enable = cci_pmu_enable, -- 2.37.2