Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp6015723rwl; Tue, 4 Apr 2023 06:51:38 -0700 (PDT) X-Google-Smtp-Source: AKy350YboSXwg3tsy3GrdKhdZWi/0dx19RdXCdTHMC+1ECeeNeNspE1+AQrUUqxjCmrqMFCiU5X3 X-Received: by 2002:a17:906:fb85:b0:878:66bc:2280 with SMTP id lr5-20020a170906fb8500b0087866bc2280mr2458896ejb.12.1680616297979; Tue, 04 Apr 2023 06:51:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680616297; cv=none; d=google.com; s=arc-20160816; b=RegytWQqK3bzOL1yAfRGFEuC2B2gc0jK4/JTUBNcZWlQyoofI0/IvA78WsxKuHk812 mrevHG6kXxfwxu9l4NJ8JZx045ZShYCCCr85ArHTFojd3mwzP7SAF4RGnzS6DPLJ/h4D ttAv1fTEPubdOEi4ndQhcDBodWHPvZYSc3YdETZ5UydPN3TDeJ4j73jeHsQLCJ8TZdqd /ZxTfEkroMZbztCPdyZ4YSxdDn64Y91Pmm1owUXHMXqI4kQzd+qFZCzCV70dIuB8A3Yi dXBCUCTNRu94iB2rKbJlG0MAaUL6NZP8KHGqp9whlUZwBJGf9MgFj7JerYVyYvMfbCJm yq9g== 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=7+9Jz4COnayClW48QdVh8y5m4fxoQQ+VLPi8m0yw7wY=; b=pGId0oZ2AZYlCxIVNoNiZIyv8qWTwzDRuByASXgiFzleLWwu6Xp/0qkxzMl5UhKEls dBYH6hUH0PPEgbZCXfMk2CN2LzKnPyCkOWNM1BF5SsiZ5yh6yalNbwTznjzTrbqM0BkA pS6TG6Wn+5TEuS5tZWrOH0Xz2lHxs/sQ9rzQelgOql5Uu5L25qXMt9brMNDFXcVyh73U GIFJyJUfLFmh/xEekQOa4JJbIfXzVhZnkzdYa53xbb8DXQ7uXHM1yR6bIzhAig10Ldc8 tb0P3dnDUKUsh4xFJN+s/cnk8q4jHaSKHLcsNF8VHZAMzbQOzIRKxh8z1WGUqgKb5c0Z 20JQ== 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 v13-20020aa7d9cd000000b004fc7cbc9c09si569750eds.551.2023.04.04.06.51.13; Tue, 04 Apr 2023 06:51:37 -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 S234936AbjDDNr4 (ORCPT + 99 others); Tue, 4 Apr 2023 09:47:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37998 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234372AbjDDNrb (ORCPT ); Tue, 4 Apr 2023 09:47:31 -0400 Received: from frasgout.his.huawei.com (frasgout.his.huawei.com [185.176.79.56]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CA56B1BCD; Tue, 4 Apr 2023 06:47:27 -0700 (PDT) Received: from lhrpeml500005.china.huawei.com (unknown [172.18.147.207]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4PrTY42VhBz6J6qW; Tue, 4 Apr 2023 21:45:28 +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:47:24 +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 10/32] perf/xgene: Assign parents for event_source devices Date: Tue, 4 Apr 2023 14:42:03 +0100 Message-ID: <20230404134225.13408-11-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 all these devices appear directly under /sys/devices/ Only root busses should appear there, so instead assign the pmu->dev parents to be the hardware related struct device. Link: https://lore.kernel.org/linux-cxl/ZCLI9A40PJsyqAmq@kroah.com/ Cc: Khuong Dinh Signed-off-by: Jonathan Cameron --- drivers/perf/xgene_pmu.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/perf/xgene_pmu.c b/drivers/perf/xgene_pmu.c index 0c32dffc7ede..451c01dbc1d6 100644 --- a/drivers/perf/xgene_pmu.c +++ b/drivers/perf/xgene_pmu.c @@ -1104,6 +1104,7 @@ static int xgene_init_perf(struct xgene_pmu_dev *pmu_dev, char *name) /* Perf driver registration */ pmu_dev->pmu = (struct pmu) { + .parent = pmu_dev->parent->dev, .attr_groups = pmu_dev->attr_groups, .task_ctx_nr = perf_invalid_context, .pmu_enable = xgene_perf_pmu_enable, -- 2.37.2