Received: by 2002:a05:6358:579e:b0:115:34ad:32ad with SMTP id m30csp2707111rwf; Tue, 4 Apr 2023 06:59:51 -0700 (PDT) X-Google-Smtp-Source: AKy350Z68O+zPWR110/9o3zR1w7bpj+V6HItZMsoh/Y1ewcVYQFwJO0dG7XmnGRtPHmCBelEN8Bt X-Received: by 2002:a17:907:75d7:b0:886:7e24:82eb with SMTP id jl23-20020a17090775d700b008867e2482ebmr1877958ejc.21.1680616770526; Tue, 04 Apr 2023 06:59:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680616770; cv=none; d=google.com; s=arc-20160816; b=mYMDhx24R8/Oj7SrB52OR7Z5P3uhGD/eev/pDYtTIbnTgcBlsiZcAgIUrN/M5dRH5+ dHhmq1YKAkiSNlzkg4wqDGLuYqI8BEaNa6DGFt5Rbh9zf0GY3JE+iShMAuGO8cgvAoNa mcCgP4eEi4ACg+fWCR88zpnFXwCln5RlNiHp8/c2kkDJf60LqvpiIMUa4tYH38lp+zrT QRY7oGHitKCJCH32YWxQWSw8KmDM6aSTcgg2H5qjlCWSnGJ+88I2VpZqwQiEZRPQy7V3 RsMhRSY7V6hjgGT7aVJEEK4rywCSDplGqpe3OdAoe7NHKDdE0kfqV7NJ7i8zw1Bb/KBZ 2Wjg== 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=i0rRIt7dypV30Hw8lLDTjptoUo3PJY4OPZ9B0xF2fCE=; b=iDbqAXCI5RiCT/v0VPSC7xo3V+L6AA7ytpUcOc6WsutKCBT15H7pjfb/WUs4Q7nbaX kieG8u+a9tMCpSQm15TrsjHjuh1b19BT3oMuc25r+pSC5D0Z1YRoLIlKOrRJq9Yno9yc 4FRQAoJPA2SRr7ofmTIf7Xc8YMhI6QH7MBTFwExJnOyBpecH0KtS0lT5oXZpdl8jkwRc KlAiJumBgJAbzrLnYaaC1LriSUN2YFIK/yoOwubvROhkFtViVcE+E8J5WVL333w2C8U0 /yK7BSJY+MnsYURqCOkTz/tBOGfgkx6UtOnWR9oezM+GtyJOmLEOPt46Hwbj8E2Y8+84 d4/w== 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 k1-20020a1709062a4100b009318c913c59si8629953eje.525.2023.04.04.06.59.06; Tue, 04 Apr 2023 06:59:30 -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 S235473AbjDDN5j (ORCPT + 99 others); Tue, 4 Apr 2023 09:57:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58020 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235655AbjDDN5M (ORCPT ); Tue, 4 Apr 2023 09:57:12 -0400 Received: from frasgout.his.huawei.com (frasgout.his.huawei.com [185.176.79.56]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BD7E35278; Tue, 4 Apr 2023 06:56:30 -0700 (PDT) Received: from lhrpeml500005.china.huawei.com (unknown [172.18.147.200]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4PrTlx1cJrz67TK2; Tue, 4 Apr 2023 21:54:53 +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:55:38 +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 26/32] arc: Assign parents for event_source devices Date: Tue, 4 Apr 2023 14:42:19 +0100 Message-ID: <20230404134225.13408-27-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: Vineet Gupta 002 Signed-off-by: Jonathan Cameron --- arch/arc/kernel/perf_event.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arc/kernel/perf_event.c b/arch/arc/kernel/perf_event.c index adff957962da..bd4c2c110afe 100644 --- a/arch/arc/kernel/perf_event.c +++ b/arch/arc/kernel/perf_event.c @@ -788,6 +788,7 @@ static int arc_pmu_device_probe(struct platform_device *pdev) arc_pmu->attr_groups[ARCPMU_ATTR_GR_FORMATS] = &arc_pmu_format_attr_gr; arc_pmu->pmu = (struct pmu) { + .parent = &pdev->dev, .pmu_enable = arc_pmu_enable, .pmu_disable = arc_pmu_disable, .event_init = arc_pmu_event_init, -- 2.37.2