Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp6097361rwl; Tue, 4 Apr 2023 07:50:12 -0700 (PDT) X-Google-Smtp-Source: AKy350YpgqjY0U6JJcc/+Lq0QvBTRkFRv7A1K89eUzV8vBUT8pUC3LwMJ6rhyWN0Qsz4c3GJKZ/g X-Received: by 2002:a62:17c7:0:b0:625:dcc1:620b with SMTP id 190-20020a6217c7000000b00625dcc1620bmr2705583pfx.34.1680619811931; Tue, 04 Apr 2023 07:50:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680619811; cv=none; d=google.com; s=arc-20160816; b=kS2X2s8AIeR6HCaJqAsCPLcr32WFfi+PpBp8xcdkORJ4b6/jjYakCsOHvGf8I6qYmz 6114TNa2FoWJM9L0RRVOCLJjd+fKIkud/dyUTmV+cnegnq/7fggTmOEbeEYCNahEALV0 gtpBmXDcq45K2RJPFIF5yb7YECuGw/OyyB7MF2fDcWwZGnXRRe1pqltTgXkyQvLLE2gl mRETJD7hg8GZ8rBryiYXIEQyDmjA/PG/9e/QgZ1N+7A68ClaGsmaZDBVjGGr/2o4rPg1 AZ/hKcgs1QB/E0g4R88dTlpmFpTBqwAZPQuNSBrMs5dT2wHgNzbtf/zCWTf3xmTl1WGq OlyQ== 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=m3qcfe1EScFbgTp+J/V7UPVw9CYyRRGHEOWsHtcEuWw=; b=Iz8EnF/FmWia5U7zH0eIHcWlBK7BlomTu0180SlKsVLGk28tueuNX7sP9UvD7FP0aL MZW1qtrZESAh2/OIPWdVt21nw7dWFVZnihNd9EtA93u9CS8MJk9QyTKODW/Am6IfHmMj l/fF9t1NxL8WcTGnO+ZUCttqRuriIpz78SQ0mVieHXWEZTisFFta7H9dyChGsF7DNhd6 wMrF7h91BlMqqavvgIfyZ+nv+QdJRr4UHukqNPAl+abK6MNtEh50tIVxNE+INxggYekt mA58S6JPuJwH82fFLvQNutXuoqX627e4PC3nNIpfIcXH849A9NbVaLdgayrtxcxowtp6 vggQ== 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 a8-20020aa78e88000000b0062a450c329asi10780709pfr.97.2023.04.04.07.49.59; Tue, 04 Apr 2023 07:50:11 -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 S235094AbjDDOfJ (ORCPT + 99 others); Tue, 4 Apr 2023 10:35:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39698 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234223AbjDDOfH (ORCPT ); Tue, 4 Apr 2023 10:35:07 -0400 Received: from frasgout.his.huawei.com (frasgout.his.huawei.com [185.176.79.56]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AE68A3C02; Tue, 4 Apr 2023 07:35:05 -0700 (PDT) Received: from lhrpeml500005.china.huawei.com (unknown [172.18.147.200]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4PrTlp3vfmz67fjf; Tue, 4 Apr 2023 21:54:46 +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:58:44 +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 32/32] hwtracing: hisi_ptt: Assign parent for event_source device Date: Tue, 4 Apr 2023 14:42:25 +0100 Message-ID: <20230404134225.13408-33-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 PCI device. Link: https://lore.kernel.org/linux-cxl/ZCLI9A40PJsyqAmq@kroah.com/ Cc: Yicong Yang Cc: Suzuki K Poulose Signed-off-by: Jonathan Cameron --- drivers/hwtracing/ptt/hisi_ptt.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/hwtracing/ptt/hisi_ptt.c b/drivers/hwtracing/ptt/hisi_ptt.c index 30f1525639b5..3868d43e9e3c 100644 --- a/drivers/hwtracing/ptt/hisi_ptt.c +++ b/drivers/hwtracing/ptt/hisi_ptt.c @@ -871,6 +871,7 @@ static int hisi_ptt_register_pmu(struct hisi_ptt *hisi_ptt) hisi_ptt->hisi_ptt_pmu = (struct pmu) { .module = THIS_MODULE, + .parent = &hisi_ptt->pdev->dev, .capabilities = PERF_PMU_CAP_EXCLUSIVE | PERF_PMU_CAP_ITRACE, .task_ctx_nr = perf_sw_context, .attr_groups = hisi_ptt_pmu_groups, -- 2.37.2