Received: by 2002:ab2:69cc:0:b0:1f4:be93:e15a with SMTP id n12csp20401lqp; Fri, 12 Apr 2024 09:22:58 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWf6pOG/LLpWv4deLzEk0ivzDuW77Ttc5FK9564heqGR4/42udSPbTMOPjVYfNp3RtVUt99bg6iUaf/mE7vCDsFRsjAJGdN4QhyZs80vg== X-Google-Smtp-Source: AGHT+IEV3nLVaZRFbgZA8xz6jXRsxwJI0uwyleWZaqmNWyNHHsfmqZiJ/LDMyIKVNvdLhZGZl2Zn X-Received: by 2002:a05:6102:54a7:b0:47a:40df:e799 with SMTP id bk39-20020a05610254a700b0047a40dfe799mr4886571vsb.5.1712938977990; Fri, 12 Apr 2024 09:22:57 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712938977; cv=pass; d=google.com; s=arc-20160816; b=ghN1tamf8pis7pVCEfSmt96LRxsjGWtt4EJGgzoAVSU6NygPV0IpoQPm1PBHvOE6yh ySTWBlZ9XzvvrKqWtX5paBWmWU929gKhaLsdmeeZ3kz54gQGBmIyJmcfaIXu0x9qjoTH a78cTiApD9myzzDThjXa1e+E6ce09ho+jCUT/GJQnwgGKb/y936WJR/ncHEebMP6+uFc s4cFY9t6HnYFmiPJRwW4TJg9HkAFY7O8NoTj+grqGCuMzqBZoRyxwFqpKujddC99Dkm1 EESQgLivO9vC9IEwl5wNbrCdmcqb1ghgtntXpfnGvv1ALW4cDgUPYY8K8G9r9M2kvlB9 hWFg== 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=CKBGb5sAmq74XP51LOWhteNA5XhubWT2IAaRvC2k2VE=; fh=22aR/NFsCqnOGZIQzPDG1h79gcfY6gTV1vkpxQGj2A0=; b=XtomQqtBSO1Bzq0KFHOQYoC51KyNuS6Rwyw+QlteTwDgoJFwVUfECl4ZkGOO1C1yq5 /bsCY/4a5nTUK8qBSN7OaTmVnbOIRipGmrMjfFN/kdEbQe2D0/kFT4vOhq0WMTRsJSxh b0ht31x36qk9bfC2Ef8i6nEAIEDbx1cykMrVxbdE3SMpmzWQyYBHpBJqkgeaJ4Okf2vJ nNpjFsztqj/o2glXlxjOzwV2P3Wp72JYJDyDq44W55/m2nXcBKQxGvyk6f3V/mWNCh9d lyh0yhjFeYUE5cd/xVK+KApSrp445EbXhCxt3qD+2eA7VvTlbmjq690D9wEyMVcoZdNB p6Eg==; 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-143058-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-143058-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id cu30-20020a056102161e00b0047a1a34dd39si808349vsb.106.2024.04.12.09.22.57 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Apr 2024 09:22:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-143058-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; 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-143058-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-143058-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id E35441C21E1F for ; Fri, 12 Apr 2024 16:22:34 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7C9F11494B4; Fri, 12 Apr 2024 16:20:43 +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 BE1BA147C7D; Fri, 12 Apr 2024 16:20:41 +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=1712938843; cv=none; b=h35XrNUmzSH6cBV2X0RxnoZZAlFIC61p8Ovf7/FheNfwobI52X5VBHq6D4/jnjs4IlsH75eqJ2jIT+mAi8A4Nw2gFiaHF/kjokL0aNxeU3sF7CA3Cg5eYHcsOkEd8fRuIZoPh2TVah+vyA6GgpzLgMzzGyg9rhMnrJQh6IXBOso= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712938843; c=relaxed/simple; bh=b2qFMR2+iwr3b0+J+yiyFFDMF9xfEF73dqW/f28sbH4=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=IvhuMdHpmCCaOzd+KDfpY5nVEnsbnVUid5oLq1YmRzpIYY03K+Myv1Jd5+KmCsFatab8R7UjLdpy/wqEAW6KYpkb8Uzi1v3vDVLu6J9K9gRVI3AN9144vQr68cnlrOtq9qslPQ/iVr3fluQ3/OYg+rTH5BON7k4OLHtrMv5X1XA= 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.231]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4VGMFT4qnKz6J9hN; Sat, 13 Apr 2024 00:18:53 +0800 (CST) Received: from lhrpeml500005.china.huawei.com (unknown [7.191.163.240]) by mail.maildlp.com (Postfix) with ESMTPS id 9A2321400CF; Sat, 13 Apr 2024 00:20:39 +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:38 +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 19/30] perf/arm-ccn: Assign parents for event_source device Date: Fri, 12 Apr 2024 17:10:46 +0100 Message-ID: <20240412161057.14099-20-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/ Acked-by: Suzuki K Poulose Signed-off-by: Jonathan Cameron --- 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 641471bd5eff..f4495ff6525f 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, -- 2.39.2