Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp6019894rwl; Tue, 4 Apr 2023 06:55:10 -0700 (PDT) X-Google-Smtp-Source: AKy350ZLkwZMnSwc3RA8P/Is+mK+AP5OByQUIuyWlZH3LheqXsz8rZHz+9ffQGsKNjemHqTmsCWj X-Received: by 2002:a17:907:7286:b0:923:812c:a5d3 with SMTP id dt6-20020a170907728600b00923812ca5d3mr25114757ejc.25.1680616509418; Tue, 04 Apr 2023 06:55:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680616509; cv=none; d=google.com; s=arc-20160816; b=tfdkVSH/rVXLo3dN2kcM56rrwi+0sDELt7RD7Ob6CBxvoanBh9NE3rdxUwyTZgsjux uc91SPfS/O6SZaTbgIiyqTjlroQYKFcEKqxcBisOYvicxzMTB0IuofyJU/2lrRXiR8FF wIQIjixyrOlSGGUazpyh1w5J+6izaRuMPbZvy5sQg47I4DLITiIdd1eZdIB2y3AJyb9W zbKcJJYTl8VrJ0MFhkF5mpkc2SGjUPtVhmHByFy22d9PZ1ub5VI6bQMLaAyowzMzBZlz 4suljwHis1LH3S8EJG2vnvMItTSic4wesNcWAz60bT/HWaHprtaVkJD4mFwfK0b2fj6x fVZg== 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=CLDaKeaFSubb6ml5HiRzoh3Lhgo5vvD6qZDnea3myT0=; b=0Nf8YZO2XO8OG61EE/0+gk82zG3czrq3nwCcF9qruAZyMvu5dp3SEaXx+l/lDnEkOu LxktoWTKb1+r1V71dBC0Iey6r4iAqXdemNRhd9/zFaPoNeRYA3ftshK9VnQT+gSBXFKo UvVe5C1avqNJQItBl0m1aM839ahI7UUDD/Bs7YHVKhJlX9DaHbpSWZoAfuKapKl/vfpu PCFw04EZjFZIqI7+1FqPGeWuLc4dY8pt7BKO7zN+BGnQzSqXWivydeIPNSf6XoNFpG2g E4RNbw/NCDbT6WoIKDDOPXISmkPEuOf4NuuEP8ouuDmsgXnriH6EtqAWSFM+6n+dTv6G LqPw== 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 lr21-20020a170906fb9500b008bdd66bbcb6si2733648ejb.323.2023.04.04.06.54.45; Tue, 04 Apr 2023 06:55:09 -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 S235503AbjDDNyE (ORCPT + 99 others); Tue, 4 Apr 2023 09:54:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55302 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235753AbjDDNxn (ORCPT ); Tue, 4 Apr 2023 09:53:43 -0400 Received: from frasgout.his.huawei.com (frasgout.his.huawei.com [185.176.79.56]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 46B13AF; Tue, 4 Apr 2023 06:53:38 -0700 (PDT) Received: from lhrpeml500005.china.huawei.com (unknown [172.18.147.206]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4PrThB5X5vz6J6rq; Tue, 4 Apr 2023 21:51: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:53:35 +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 22/32] perf/arm-dmc620: Assign parents for event_source device Date: Tue, 4 Apr 2023 14:42:15 +0100 Message-ID: <20230404134225.13408-23-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_dmc620_pmu.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/perf/arm_dmc620_pmu.c b/drivers/perf/arm_dmc620_pmu.c index 54aa4658fb36..c99360cc8f6d 100644 --- a/drivers/perf/arm_dmc620_pmu.c +++ b/drivers/perf/arm_dmc620_pmu.c @@ -644,6 +644,7 @@ static int dmc620_pmu_device_probe(struct platform_device *pdev) dmc620_pmu->pmu = (struct pmu) { .module = THIS_MODULE, + .parent = &pdev->dev, .capabilities = PERF_PMU_CAP_NO_EXCLUDE, .task_ctx_nr = perf_invalid_context, .event_init = dmc620_pmu_event_init, -- 2.37.2