Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp6023084rwl; Tue, 4 Apr 2023 06:57:58 -0700 (PDT) X-Google-Smtp-Source: AKy350avW3twByXPN0wodromhEDtRmJ+tJB1K0gQ6m1QJjUodQ0/Y9cb9iFUr+NeiDZJZXWIq2RA X-Received: by 2002:a17:906:a44e:b0:92f:fbac:69c4 with SMTP id cb14-20020a170906a44e00b0092ffbac69c4mr2950036ejb.56.1680616678661; Tue, 04 Apr 2023 06:57:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680616678; cv=none; d=google.com; s=arc-20160816; b=kyP2evDaOFmZOzhKhV4XtgK7HcPMuj8UhBR9POGsAsCdXZCLsHPiPBBtAatcr9NfkQ 3kGQYunfQnQXitLlgAVc35IOqZzRHF23yuPgIs5hbbaXDDLa/S9764iwnX2F3OIvHN70 hjz4AH2sUZdcNRsEPsiOLuUfrMEhtCrf+ICrlPNIpepSVMDSKjwy4QsTHfMJRVmT7XMT MOFreRzttPlYbPH1i/qMHQl0+4WT1FmtX/cr7yiTg/zBgTALH/pt1AtKdiDFosrnXDTn Cc6KKXCD6h9belsJ8ATQn7LFcx32QsjOwPTg44MTJVI2L+qR+tNU2RScNCksXiyQLgE/ yQ/w== 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=Jrlj4tqh3HqtatpRv1g3GBGG2wT6dM9NxlNZXGE73gI=; b=IAC34p7Kwvbw/Rif2jFTKLH+Mw1BOCyv6fWvDSxd39keMfGfc3Dah0mS8UZX5zq0Mq uQCeRP/ylSN7+MnOm3ZsqomjCudl4M20/msy3DZTtQic3viQtQIEP7dtqYgubXZK/Hke m/tPLY5SeiobuAj+olRRKqcZbfHRiRiuxom2AElgt1tNvac6PdG23iq+Qxqem8PbNaNC 1rR64i+ufTDj7VG/4LPWQ1rZJJxLs/ZDt5Qs0jMNVrz1tRIBviImpVVqm9GRzdpXugNd 9/eMHpJeoALWO3vsAac5+hgZLZJJ3gqUkx/p+8oB5Mic46wHJDtbVlNdh0mueuRfnTB8 VGkg== 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 p7-20020a170906614700b009285f242673si3397674ejl.209.2023.04.04.06.57.34; Tue, 04 Apr 2023 06:57:58 -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 S235653AbjDDN4s (ORCPT + 99 others); Tue, 4 Apr 2023 09:56:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51966 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235808AbjDDNy6 (ORCPT ); Tue, 4 Apr 2023 09:54:58 -0400 Received: from frasgout.his.huawei.com (frasgout.his.huawei.com [185.176.79.56]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ED23844AB; Tue, 4 Apr 2023 06:54:39 -0700 (PDT) Received: from lhrpeml500005.china.huawei.com (unknown [172.18.147.200]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4PrTg26rbhz67fjf; Tue, 4 Apr 2023 21:50:38 +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:36 +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 24/32] perf/arm-smmuv3: Assign parents for event_source device Date: Tue, 4 Apr 2023 14:42:17 +0100 Message-ID: <20230404134225.13408-25-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_smmuv3_pmu.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/perf/arm_smmuv3_pmu.c b/drivers/perf/arm_smmuv3_pmu.c index 25a269d431e4..7b3edccae535 100644 --- a/drivers/perf/arm_smmuv3_pmu.c +++ b/drivers/perf/arm_smmuv3_pmu.c @@ -826,6 +826,7 @@ static int smmu_pmu_probe(struct platform_device *pdev) smmu_pmu->pmu = (struct pmu) { .module = THIS_MODULE, + .parent = &pdev->dev, .task_ctx_nr = perf_invalid_context, .pmu_enable = smmu_pmu_enable, .pmu_disable = smmu_pmu_disable, -- 2.37.2