Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp6014560rwl; Tue, 4 Apr 2023 06:50:44 -0700 (PDT) X-Google-Smtp-Source: AKy350bt1/qf42Vgg340GQZtkvIAn8A20QHcaHEjG4SyGALfENwNZCcXKrG1exqF8i9QDDjyMOs6 X-Received: by 2002:a17:907:bb86:b0:8aa:c090:a9ef with SMTP id xo6-20020a170907bb8600b008aac090a9efmr2210160ejc.55.1680616244164; Tue, 04 Apr 2023 06:50:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680616244; cv=none; d=google.com; s=arc-20160816; b=J76VQPTKnMDl/+VGm/JBmlP7de6OAJD8kARu0Aim4o6AzMPSe43yKJkTw3driqE98f Rqi3hAgHQDrSduWBftV9p+ZBYaoyx+Og7vAUxLyxP0SzvdYtsLsa78760HhIW/X/1QBA 3Acby/nMg65Z0l2MFzEWI6dIRell8ONQ1+E4KuJO+Yx5Qk7zq+k5Cs6DSwgvnLcOdm+o aGnYhpj0TpNS1fEeRCJd/hso6qn6xOkc2KBRD4PNVm7I70qrv4anb1owP9eGMnJweUgq ghif3cyK8xA/ZShVpe33v39QPE1/35sOmEsHcZKThCKzup5YSYHitbMAY+xwblQtVaKk 0BAQ== 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=p/+fhma5KlZAm/ySdzzQNeSidYKMD8XhkFSILukPB7U=; b=Y+4sfPai+IWkX0Dedi53nzYy9xECgI0DKLdOc5pZEEh142fAZv2t/GQ2eqCCryYUuv JSQOS5ZsBxa7r2CcWyqgPRCY99/0o+DB+BrlsSQ8wjrLAtQyXon8+l0PBkE3tvucTsko 89b9XPnpjRs0SuLKKtuDklyPqxe2VaZHFuZi6HRVVjJC9QH/N7PvXM5L8Xl4RIT/gu8M E+9DJ0DH6mTgOLCLPBMHGdsK5dRo72a/RPIasCw1OJ80/6EAAH0Ho+MfrHZRB0tB8iKU +YVePhbnqEdHtbsMqqz8IzA2mIt0SNQMaUnthmG8opz+WE55Ihn6v65wz+ErrGL1aTgb iE3A== 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 e3-20020a17090658c300b009485b3b5a7esi1191101ejs.768.2023.04.04.06.50.19; Tue, 04 Apr 2023 06:50:44 -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 S235313AbjDDNpx (ORCPT + 99 others); Tue, 4 Apr 2023 09:45:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35198 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235441AbjDDNpe (ORCPT ); Tue, 4 Apr 2023 09:45:34 -0400 Received: from frasgout.his.huawei.com (frasgout.his.huawei.com [185.176.79.56]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5FD754ECF; Tue, 4 Apr 2023 06:45:24 -0700 (PDT) Received: from lhrpeml500005.china.huawei.com (unknown [172.18.147.200]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4PrTSM2J44z67lVS; Tue, 4 Apr 2023 21:41:23 +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:45:21 +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 06/32] perf/hisi-hns3: Assign parents for event_source device Date: Tue, 4 Apr 2023 14:41:59 +0100 Message-ID: <20230404134225.13408-7-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 PCI device. Link: https://lore.kernel.org/linux-cxl/ZCLI9A40PJsyqAmq@kroah.com/ Signed-off-by: Jonathan Cameron --- drivers/perf/hisilicon/hns3_pmu.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/perf/hisilicon/hns3_pmu.c b/drivers/perf/hisilicon/hns3_pmu.c index e0457d84af6b..8ddffd8cc1f1 100644 --- a/drivers/perf/hisilicon/hns3_pmu.c +++ b/drivers/perf/hisilicon/hns3_pmu.c @@ -1419,6 +1419,7 @@ static int hns3_pmu_alloc_pmu(struct pci_dev *pdev, struct hns3_pmu *hns3_pmu) hns3_pmu->pmu = (struct pmu) { .name = name, .module = THIS_MODULE, + .parent = &pdev->dev, .event_init = hns3_pmu_event_init, .pmu_enable = hns3_pmu_enable, .pmu_disable = hns3_pmu_disable, -- 2.37.2