Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp6061590rwl; Tue, 4 Apr 2023 07:22:03 -0700 (PDT) X-Google-Smtp-Source: AKy350b1UH42GZdmOZ15LxbMuffbAn8tMgxaqQ+XVFgxtAKRGE/tKJG4N7e5oK5qVOysZGYf7+EW X-Received: by 2002:a05:6a20:6a04:b0:d9:7a97:a7b9 with SMTP id p4-20020a056a206a0400b000d97a97a7b9mr20079408pzk.6.1680618122806; Tue, 04 Apr 2023 07:22:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680618122; cv=none; d=google.com; s=arc-20160816; b=gmHOBVbx/znOZ1S33ecTkbOVO6WbLP2qa/M8tlE8XMCV9Vuur6GoZ+8Q5Z/fT5mv5c N7PforhgeMYEhK1iS1eTmwuAP55iOB2W4N7YK0PenRQzikmj1j2WfKvPyGxa6Lbm+JjR ksdEGPz9NBr/QBBX5bbp8EmOeS6h56K4nlQCTARtVoGEw6NMwxcbLtRrVS4Ur/JEYSkW LA3idFaq2DrVV8FG5rUvFNkpn6G38q5tLlcHI8zcHr0ApbGUn8iGlV3O53tFFUNCDOzP x22UzS/RFgf9My9im/LE1h3PV9t9UUtkDhnpVfkp09U1w6OYBNEMlalAiizvDembHQWT C8CA== 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=sQrEIhQ/EmrlizdcDYJgqLgkjfCzdQik2f2HOH3wEdw=; b=vK6SxnEf1JT9hFiT5yNm3jSoXBsnZQDBaAbaJ8JXmU9cfJIQAC4Cx3ldZOGJVIngAG g9NZO4KYk1GFAO04uZAn4wEXVHrDV9wQ4b54RtNtwGG24qqFMMfxU5TJ4JJEU3cCzs11 o9wncdPg/jMV2E49oBY3HdxCMCsSy3PYwX/w5g7+UWYTyQswcyqaU1ZiR9zNF5fgnVOH rPPd/3292nf5Fte+x7cmeIx9EmK80BlHRmSV4qPk1IIhlGrgmcHNTKnJY+df+YjLA+kX D7ovwwtLSzxYdqZv6IxOTsjf5ZMgCOliNkJj8WWIyOGaq1DuGBRaRvI7DsK0+gv1CG6n VidQ== 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 s7-20020a632c07000000b00513b2e2e7c4si10415213pgs.784.2023.04.04.07.21.50; Tue, 04 Apr 2023 07:22:02 -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 S234748AbjDDOMV (ORCPT + 99 others); Tue, 4 Apr 2023 10:12:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33992 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235500AbjDDOMK (ORCPT ); Tue, 4 Apr 2023 10:12:10 -0400 Received: from frasgout.his.huawei.com (frasgout.his.huawei.com [185.176.79.56]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CF5823AB9; Tue, 4 Apr 2023 07:12:06 -0700 (PDT) Received: from lhrpeml500005.china.huawei.com (unknown [172.18.147.201]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4PrTmX1Qxvz67XcG; Tue, 4 Apr 2023 21:55:24 +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:56:09 +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 27/32] ARM: imx: Assign parents for mmdc event_source devices Date: Tue, 4 Apr 2023 14:42:20 +0100 Message-ID: <20230404134225.13408-28-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: Shawn Guo Signed-off-by: Jonathan Cameron --- arch/arm/mach-imx/mmdc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/mach-imx/mmdc.c b/arch/arm/mach-imx/mmdc.c index b9efe9da06e0..a015e0ea915d 100644 --- a/arch/arm/mach-imx/mmdc.c +++ b/arch/arm/mach-imx/mmdc.c @@ -436,6 +436,7 @@ static int mmdc_pmu_init(struct mmdc_pmu *pmu_mmdc, { *pmu_mmdc = (struct mmdc_pmu) { .pmu = (struct pmu) { + .parent = dev, .task_ctx_nr = perf_invalid_context, .attr_groups = attr_groups, .event_init = mmdc_pmu_event_init, -- 2.37.2