Received: by 2002:ab2:69cc:0:b0:1f4:be93:e15a with SMTP id n12csp30376lqp; Fri, 12 Apr 2024 09:38:39 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUM5XoiYJBaSg3aMqo1PAVvecrGVzR/Prj8XedqkeWVu8l+r4S/zPx6cvbTfUX00ebaPIVj9UYXd7cnIwNxF9ff730U6omNFCzat8uREQ== X-Google-Smtp-Source: AGHT+IGfKIKGMtAHF9LKfV25y08VpXhBl02H+i0v51n6yEK0yYISzPIne/Ya45cHruHJXwNuK/15 X-Received: by 2002:a05:6359:5f07:b0:17e:a9b7:2636 with SMTP id lf7-20020a0563595f0700b0017ea9b72636mr3324904rwc.22.1712939919224; Fri, 12 Apr 2024 09:38:39 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712939919; cv=pass; d=google.com; s=arc-20160816; b=M+PVmz54NOWazNpauzfZU0n/T31SGh4lgjRgckfk0TSz5XZmQrdf/5NLtfJhbawfAV GB6228BerS2unNrpihKjN98Vet8QmwMiQV/DYgpkbkpO4aVlBq2sE7g5yPZDblwlVki8 YcYbMwI5cbP/Nb3crT4DanTGUwgk9uYNHY4fApSzGPnaWho2NsOgvvrKVO76jEujYrng a8RByH7lbuaYrrcBPQagNlIT8NnfuhoAoFE3f5PurgYgs6LBxg34lSeydnAjcSjrtUKk 81Dx5tUxznHElkcx0ZhNaEvWKcEtX/fYvnh8vnwjJbLPDpSApR8v4F6R9yGxrQ9h2jpy XvPQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from; bh=fr8cA/a6xHdn882xknM57T7VZa18LbSpP13QcMbnKAs=; fh=22aR/NFsCqnOGZIQzPDG1h79gcfY6gTV1vkpxQGj2A0=; b=HVyTEbdFq/cRMl11yUlIHf0bZDtLwLlSg3LnutuwUsiEwkpXU05ZHjxSm+Abn4E3Rx TbUuk3yavulgy98QkjdZfOyyOwzgseSC5ATGNCIgI9vfdxgSYXsFu0ZkjQB/3ibLsq9j gpxihpkDuqBqu/+duUyvGPH39Dvzs+Y069RMWPB8Y6xKySoC7HqDtOfaXuyq4C3dVwxz V3yFOAfAqHTvHZh+ndKDw+Wh6xZAhiPf1Gu0+WzIIh9MjhvOw/Y8Tx6WrDi78iDT5F1u UV5VaUKDETwGRvOlAiUuY8mauVCXiqzk/xP1xt2jUORKfshgcuUt3KNYuteyQENhSN1B lgGQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=huawei.com dmarc=pass fromdomain=huawei.com); spf=pass (google.com: domain of linux-kernel+bounces-143053-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-143053-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id 33-20020a631461000000b005e43cb2a1ccsi3455612pgu.325.2024.04.12.09.38.38 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Apr 2024 09:38:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-143053-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=huawei.com dmarc=pass fromdomain=huawei.com); spf=pass (google.com: domain of linux-kernel+bounces-143053-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-143053-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 515BBB20D8B for ; Fri, 12 Apr 2024 16:21:08 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 73EC41494C2; Fri, 12 Apr 2024 16:20:14 +0000 (UTC) Received: from frasgout.his.huawei.com (frasgout.his.huawei.com [185.176.79.56]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 06D3C149C4C; Fri, 12 Apr 2024 16:20:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.176.79.56 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712938813; cv=none; b=crITsuVgtpV1esSuw0W9NYpguE1SL2g6w4JW1avBoz4mfMF9c4n9NvslPnLRiVQpaeSf37pSFEjvYh0fxSq0LXpphvQIV9OXvTbzxJPLlgkobrOM/f/C6TMccZCiGU53R8+IgUNN2GzJwBxW8Xv9dUlagDixFjXI6kumGAHJ1J0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712938813; c=relaxed/simple; bh=0qrYwaqfdvUjWOJJnNV5Jz5XmUlpEiLxFrP0SFtaR3M=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=dxZ76M5eu3dG8hi9UNDrHiHgtb0+kVwQQmgYYYe5chLGJ8zAjV8QnILNQidaJc7dBldEErIdZmYhrr1Kq58vmtHVVTUDhrgcMYtrCr1nZ3LKLAXdab0uRCwZ2TZ8COSQyAh5InhKlcCj2p7m/PB+fRU0CM56KqXxc1eOifI2BBc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com; spf=pass smtp.mailfrom=huawei.com; arc=none smtp.client-ip=185.176.79.56 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=huawei.com Received: from mail.maildlp.com (unknown [172.18.186.31]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4VGMDw2YRQz685ZJ; Sat, 13 Apr 2024 00:18:24 +0800 (CST) Received: from lhrpeml500005.china.huawei.com (unknown [7.191.163.240]) by mail.maildlp.com (Postfix) with ESMTPS id E228E1400F4; Sat, 13 Apr 2024 00:20:08 +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_256_GCM_SHA384) id 15.1.2507.35; Fri, 12 Apr 2024 17:20:08 +0100 From: Jonathan Cameron To: Mark Rutland , Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Will Deacon , , , CC: , Shaokun Zhang , Yicong Yang , Jiucheng Xu , Khuong Dinh , 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 v2 18/30] perf/arm-cci: Assign parents for event_source device Date: Fri, 12 Apr 2024 17:10:45 +0100 Message-ID: <20240412161057.14099-19-Jonathan.Cameron@huawei.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240412161057.14099-1-Jonathan.Cameron@huawei.com> References: <20240412161057.14099-1-Jonathan.Cameron@huawei.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: lhrpeml100003.china.huawei.com (7.191.160.210) To lhrpeml500005.china.huawei.com (7.191.163.240) 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/ Reviewed-by: Suzuki K Poulose Signed-off-by: Jonathan Cameron --- drivers/perf/arm-cci.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/perf/arm-cci.c b/drivers/perf/arm-cci.c index 6be03f81ae5d..a7fd80677919 100644 --- a/drivers/perf/arm-cci.c +++ b/drivers/perf/arm-cci.c @@ -1409,6 +1409,7 @@ static int cci_pmu_init(struct cci_pmu *cci_pmu, struct platform_device *pdev) cci_pmu->pmu = (struct pmu) { .module = THIS_MODULE, + .parent = &pdev->dev, .name = cci_pmu->model->name, .task_ctx_nr = perf_invalid_context, .pmu_enable = cci_pmu_enable, -- 2.39.2