From patchwork Tue Apr 4 13:42:13 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Cameron X-Patchwork-Id: 79155 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:6358:3d4a:b0:114:e959:cc0c with SMTP id b10csp2976222rwc; Tue, 4 Apr 2023 07:12:27 -0700 (PDT) X-Google-Smtp-Source: AKy350ZB7glA+8nna/NCFNoa17nZ4sas8vaG5ftaW/YWn5tKlx2bEAoChdLz5dcEx7fAiRPhwv8Q X-Received: by 2002:a17:90b:4f81:b0:233:76bd:9faa with SMTP id qe1-20020a17090b4f8100b0023376bd9faamr2867485pjb.47.1680617546994; Tue, 04 Apr 2023 07:12:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680617546; cv=none; d=google.com; s=arc-20160816; b=qUNd8Jajv0ToVbAy6xDBnSDUJxYx+uHT722OQfRcKsbGxpHY2RF3aAFymJIGZRWQ8Y Mnfj0hWCOvNQhsLBRcTURWqDMaT/5U4WMcCORW8ygLe+hgMMTOQ5soM4Twxx0x2ocU8m edcgnS+0CEME7i/jcRYBQYRcgKvLLQrS4aroHpeWYRgmsqYi5dSIbdyRgDU3OgtVsPit OPQbkAeR/HknoL/mpUQtSigfc83FXuVagctRvTBEskkYtyuS9G4noxcVUb39cFfXmz55 dma9WgnRLe1FyuzILdTRfCxgLfof5u7YQbTm8cIew4Mh7wCyE62S79CeE0m6i66MwxPO kuJg== 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=qL/kg/ZR90oF31+jnf4MDwu6MMW+tojLgTYJAD2/BLs=; b=sZz8LXhipjl6RywKJ20pxO0wsGPiUr61OqjtNAVQEfDyFEGbu2Eb3CAzg7Bt9PgBnY IfIxkVCN86E7TvOyUdybUfvOVntQXChPOtzm+SxTAnEIe/qEQyqN954LxMfD0GZngu/m zBIgWOz1VCLzGBiAALN55Ohj9XIoDa6+gFeZbdXx1s2XQ42FZAVOK2h80O8UWSHlMluF VC1AQ3rquDEfz9KX/yo9s/D7b+B/cErN9rUEjCI/2wrTYEmugttPAQiNSdglMFuGsgmf 02X1b0HCt+18U8Wma0eoRxv1Rv/+Vz1Xy7TKbLl4jUBvaEGUZ/dluXwxtP/LqNY3K541 4YKw== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s1-20020a63dc01000000b0050f79e158a1si10666424pgg.737.2023.04.04.07.12.14; Tue, 04 Apr 2023 07:12:26 -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 S235647AbjDDNxH (ORCPT + 99 others); Tue, 4 Apr 2023 09:53:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52864 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235588AbjDDNwp (ORCPT ); Tue, 4 Apr 2023 09:52:45 -0400 Received: from frasgout.his.huawei.com (frasgout.his.huawei.com [185.176.79.56]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 032BF44AE; Tue, 4 Apr 2023 06:52:37 -0700 (PDT) Received: from lhrpeml500005.china.huawei.com (unknown [172.18.147.206]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4PrThN1FC6z67XcG; Tue, 4 Apr 2023 21:51:48 +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:52:33 +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 20/32] perf/arm-ccn: Assign parents for event_source device Date: Tue, 4 Apr 2023 14:42:13 +0100 Message-ID: <20230404134225.13408-21-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 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1762255224998452214?= X-GMAIL-MSGID: =?utf-8?q?1762255224998452214?= 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 Acked-by: Suzuki K Poulose --- drivers/perf/arm-ccn.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/perf/arm-ccn.c b/drivers/perf/arm-ccn.c index 728d13d8e98a..dc8b0dcb436e 100644 --- a/drivers/perf/arm-ccn.c +++ b/drivers/perf/arm-ccn.c @@ -1265,6 +1265,7 @@ static int arm_ccn_pmu_init(struct arm_ccn *ccn) /* Perf driver registration */ ccn->dt.pmu = (struct pmu) { .module = THIS_MODULE, + .parent = ccn->dev, .attr_groups = arm_ccn_pmu_attr_groups, .task_ctx_nr = perf_invalid_context, .event_init = arm_ccn_pmu_event_init,